You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let gss_bytes = hex!("604806062b0601050502a03e303ca00e300c060a2b06010401823702020aa22a04284e544c4d535350000100000005028862000000000000000000000000000000000601b01d0000000f");
134
-
let inner_bytes = hex!("303ca00e300c060a2b06010401823702020aa22a04284e544c4d535350000100000005028862000000000000000000000000000000000601b01d0000000f");
Copy file name to clipboardExpand all lines: gss-api/src/negotiation.rs
+10-4
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
//! Negotiation-related types
2
2
use der::{
3
-
asn1::{BitString,OctetStringRef},
4
3
AnyRef,Choice,Enumerated,Sequence,
4
+
asn1::{BitString,OctetStringRef},
5
5
};
6
6
7
7
usecrate::MechType;
@@ -378,7 +378,9 @@ mod tests {
378
378
379
379
#[test]
380
380
fntoken_init(){
381
-
let neg_token_init_bytes = hex!("303ca00e300c060a2b06010401823702020aa32a3028a0261b246e6f745f646566696e65645f696e5f5246433431373840706c656173655f69676e6f7265");
let neg_token = NegTokenInit2::from_der(&neg_token_init_bytes).unwrap();
383
385
assert_eq!(
384
386
1,
@@ -393,7 +395,9 @@ mod tests {
393
395
394
396
#[test]
395
397
fntoken_response(){
396
-
let neg_token_resp_bytes = hex!("308199a0030a0101a10c060a2b06010401823702020aa281830481804e544c4d53535000020000000a000a003800000005028a6234805409a0e0e1f900000000000000003e003e0042000000060100000000000f530041004d004200410002000a00530041004d004200410001000a00530041004d00420041000400000003000a00730061006d00620061000700080036739dbd327fd90100000000");
let neg_token_targ_bytes = hex!("308199a0030a0101a10c060a2b06010401823702020aa281830481804e544c4d53535000020000000a000a003800000005028a6234805409a0e0e1f900000000000000003e003e0042000000060100000000000f530041004d004200410002000a00530041004d004200410001000a00530041004d00420041000400000003000a00730061006d00620061000700080036739dbd327fd90100000000");
0 commit comments