feat(auth): finish protocol 10 method 2 and 3
This commit is contained in:
parent
8a3f443d85
commit
d18ba43aed
24 changed files with 490 additions and 43 deletions
|
|
@ -8,6 +8,8 @@ use crate::prudp::packet::PacketOption::FragmentId;
|
|||
use crate::prudp::packet::types::DATA;
|
||||
use crate::prudp::socket::{ConnectionData, SocketData};
|
||||
|
||||
|
||||
|
||||
pub enum RMCResponseResult {
|
||||
Success{
|
||||
call_id: u32,
|
||||
|
|
@ -389,6 +391,7 @@ mod test{
|
|||
use hmac::digest::consts::U5;
|
||||
use hmac::digest::KeyInit;
|
||||
use rc4::{Rc4, StreamCipher};
|
||||
use crate::rmc::response::ErrorCode;
|
||||
|
||||
#[test]
|
||||
fn test(){
|
||||
|
|
@ -410,4 +413,10 @@ mod test{
|
|||
assert_eq!(data_orig, data);
|
||||
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_enum_equivilance(){
|
||||
let val: u32 = ErrorCode::Core_Unknown.into();
|
||||
assert_eq!(val, 0x00010001)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue