1 2 #ifndef KRB5_AUTH_CONTEXT 3 #define KRB5_AUTH_CONTEXT 4 5 struct _krb5_auth_context { 6 krb5_magic magic; 7 krb5_address * remote_addr; 8 krb5_address * remote_port; 9 krb5_address * local_addr; 10 krb5_address * local_port; 11 krb5_keyblock * keyblock; 12 krb5_keyblock * send_subkey; 13 krb5_keyblock * recv_subkey; 14 15 krb5_int32 auth_context_flags; 16 krb5_ui_4 remote_seq_number; 17 krb5_ui_4 local_seq_number; 18 krb5_authenticator *authentp; /* mk_req, rd_req, mk_rep, ...*/ 19 krb5_cksumtype req_cksumtype; /* mk_safe, ... */ 20 krb5_cksumtype safe_cksumtype; /* mk_safe, ... */ 21 krb5_pointer i_vector; /* mk_priv, rd_priv only */ 22 krb5_rcache rcache; 23 krb5_enctype * permitted_etypes; /* rd_req */ 24 krb5_mk_req_checksum_func checksum_func; 25 void *checksum_func_data; 26 }; 27 28 29 /* Internal auth_context_flags */ 30 #define KRB5_AUTH_CONN_INITIALIZED 0x00010000 31 #define KRB5_AUTH_CONN_USED_W_MK_REQ 0x00020000 32 #define KRB5_AUTH_CONN_USED_W_RD_REQ 0x00040000 33 #define KRB5_AUTH_CONN_SANE_SEQ 0x00080000 34 #define KRB5_AUTH_CONN_HEIMDAL_SEQ 0x00100000 35 36 #endif 37