1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use red_asn1::{Asn1Object, OctetString, BitString};
use red_asn1_derive::Sequence;
use crate::{PrincipalName, UInt32, Realm};
#[derive(Sequence, Default, Debug, Clone, PartialEq)]
pub struct S4uUserId {
#[seq_field(context_tag = 0)]
pub nonce: UInt32,
#[seq_field(context_tag = 1)]
pub cname: Option<PrincipalName>,
#[seq_field(context_tag = 2)]
pub crealm: Realm,
#[seq_field(context_tag = 3)]
pub subject_certificate: Option<OctetString>,
#[seq_field(context_tag = 4)]
pub options: Option<BitString>,
}