From 03e756c87432e5584ddd3a739ced6ed79d5481c2 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 19 Sep 2011 00:51:39 +0000 Subject: 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 --- src/plugins/preauth/pkinit/pkinit_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/preauth/pkinit/pkinit_lib.c b/src/plugins/preauth/pkinit/pkinit_lib.c index 8eb64019c..034587b13 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 -- cgit