Some support for KRB5_AUTH_CONTEXT_DO_SEQUENCE

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1807 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-06-01 14:37:54 +00:00
parent a44adf98c8
commit 9cb6e5dddc
8 changed files with 81 additions and 9 deletions

View File

@@ -21,7 +21,14 @@ krb5_mk_rep(krb5_context context,
body.ctime = (*auth_context)->authenticator->ctime;
body.cusec = (*auth_context)->authenticator->cusec;
body.subkey = NULL;
body.seq_number = NULL;
if ((*auth_context)->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) {
krb5_generate_seq_number (context,
&(*auth_context)->key,
&(*auth_context)->local_seqnumber);
body.seq_number = malloc (sizeof(*body.seq_number));
*(body.seq_number) = (*auth_context)->local_seqnumber;
} else
body.seq_number = NULL;
ap.enc_part.etype = (*auth_context)->key.keytype;
ap.enc_part.kvno = NULL;