added framework for auth server
This commit is contained in:
parent
2296b42ea4
commit
7582f36795
7 changed files with 620 additions and 21 deletions
|
|
@ -0,0 +1,14 @@
|
|||
use std::net::Ipv4Addr;
|
||||
use rc4::Rc4;
|
||||
|
||||
pub trait AuthModule{
|
||||
fn get_auth_key(addr: Ipv4Addr) -> [u8; 32];
|
||||
}
|
||||
/*
|
||||
struct AuthServerAuthModule;
|
||||
|
||||
impl AuthModule for AuthServerAuthModule{
|
||||
fn get_auth_key(addr: Ipv4Addr) -> rc4 {
|
||||
|
||||
}
|
||||
}*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue