diff options
author | Tom Yu <tlyu@mit.edu> | 2003-05-10 00:01:04 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2003-05-10 00:01:04 +0000 |
commit | 508e90e51619c79d2680eaeca754d516c7f88fdf (patch) | |
tree | 99bed617bdb438c95c55d7c265f9ef4beb9e23f3 /src/lib/krb5/krb/mk_safe.c | |
parent | 919b3a91b573c746a62a704fc5cdf883605d6aa9 (diff) | |
download | krb5-508e90e51619c79d2680eaeca754d516c7f88fdf.tar.gz krb5-508e90e51619c79d2680eaeca754d516c7f88fdf.tar.xz krb5-508e90e51619c79d2680eaeca754d516c7f88fdf.zip |
Rename the local_subkey and remote_subkey fields in the auth_context
to send_subkey and recv_subkey, respectively. Add new APIs to query
and set these fields. Change the behavior of mk_req_ext, rd_req_dec,
and rd_rep to set both subkeys. Applications wanting to set
unidirectional subkeys may still do so by saving the values of subkeys
and doing overrides. Cause mk_cred, mk_priv, and mk_safe to never use
the recv_subkey. Cause rd_cred, rd_priv, and rd_safe to never use the
send_subkey.
ticket: 1415
status: open
tags: pullup
target_version: 1.3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15407 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/mk_safe.c')
-rw-r--r-- | src/lib/krb5/krb/mk_safe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/krb5/krb/mk_safe.c b/src/lib/krb5/krb/mk_safe.c index 992a456a90..eefcab7cd4 100644 --- a/src/lib/krb5/krb/mk_safe.c +++ b/src/lib/krb5/krb/mk_safe.c @@ -120,9 +120,8 @@ krb5_mk_safe(krb5_context context, krb5_auth_context auth_context, const krb5_da memset((char *) &replaydata, 0, sizeof(krb5_replay_data)); /* Get keyblock */ - if ((keyblock = auth_context->local_subkey) == NULL) - if ((keyblock = auth_context->remote_subkey) == NULL) - keyblock = auth_context->keyblock; + if ((keyblock = auth_context->send_subkey) == NULL) + keyblock = auth_context->keyblock; /* Get replay info */ if ((auth_context->auth_context_flags & KRB5_AUTH_CONTEXT_DO_TIME) && |