summaryrefslogtreecommitdiffstats
path: root/src/plugins/preauth
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2011-09-19 00:51:39 +0000
committerSam Hartman <hartmans@mit.edu>2011-09-19 00:51:39 +0000
commit03e756c87432e5584ddd3a739ced6ed79d5481c2 (patch)
treedc9d6758c8eaaf38053dd97ee09c3b2d3b707276 /src/plugins/preauth
parent27a69f059a3c57ac7c0c415cfb59656ff3803365 (diff)
downloadkrb5-03e756c87432e5584ddd3a739ced6ed79d5481c2.tar.gz
krb5-03e756c87432e5584ddd3a739ced6ed79d5481c2.tar.xz
krb5-03e756c87432e5584ddd3a739ced6ed79d5481c2.zip
Implement encoding and decoding for supportedKDFs and kdfID
pkinit: ASN.1 encoders and decoders for new KDF git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25195 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/plugins/preauth')
-rw-r--r--src/plugins/preauth/pkinit/pkinit_lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/preauth/pkinit/pkinit_lib.c b/src/plugins/preauth/pkinit/pkinit_lib.c
index 8eb64019cb..034587b138 100644
--- a/src/plugins/preauth/pkinit/pkinit_lib.c
+++ b/src/plugins/preauth/pkinit/pkinit_lib.c
@@ -163,7 +163,7 @@ free_krb5_auth_pack(krb5_auth_pack **in)
free((*in)->pkAuthenticator.paChecksum.contents);
if ((*in)->supportedCMSTypes != NULL)
free_krb5_algorithm_identifiers(&((*in)->supportedCMSTypes));
- if (*(*in)->supportedKDFs) {
+ if ((*in)->supportedKDFs) {
krb5_octet_data **supportedKDFs =
(*in)->supportedKDFs;
unsigned i;
@@ -356,6 +356,7 @@ init_krb5_auth_pack(krb5_auth_pack **in)
(*in)->clientDHNonce.length = 0;
(*in)->clientDHNonce.data = NULL;
(*in)->pkAuthenticator.paChecksum.contents = NULL;
+ (*in)->supportedKDFs = NULL;
}
void
@@ -377,6 +378,7 @@ init_krb5_pa_pk_as_rep(krb5_pa_pk_as_rep **in)
(*in)->u.dh_Info.dhSignedData.data = NULL;
(*in)->u.encKeyPack.length = 0;
(*in)->u.encKeyPack.data = NULL;
+ (*in)->u.dh_Info.kdfID = NULL;
}
void