From 2f4615fcd2782ab629c10d6f5aea51b198715b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 27 Nov 2006 13:46:04 +0000 Subject: [PATCH] (build_auth_pack): set supportedCMSTypes. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19158 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/pkinit.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/krb5/pkinit.c b/lib/krb5/pkinit.c index cd344d167..0fb079b57 100644 --- a/lib/krb5/pkinit.c +++ b/lib/krb5/pkinit.c @@ -405,6 +405,19 @@ build_auth_pack(krb5_context context, a->clientPublicValue->subjectPublicKey.data = dhbuf.data; } + { + a->supportedCMSTypes = calloc(1, sizeof(*a->supportedCMSTypes)); + if (a->supportedCMSTypes == NULL) + return ENOMEM; + + ret = hx509_crypto_available(ctx->id->hx509ctx, HX509_SELECT_ALL, NULL, + &a->supportedCMSTypes->val, + &a->supportedCMSTypes->len); + if (ret) + return ret; + } + + return ret; }