]> git.ipfire.org Git - thirdparty/krb5.git/commit
Handle PKINIT DH replies with no certs
authorGreg Hudson <ghudson@mit.edu>
Thu, 21 Jun 2012 21:20:29 +0000 (17:20 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 22 Jun 2012 15:44:17 +0000 (11:44 -0400)
commitdb83abc7dcfe369bd4467c78eebb7028ba0c0e0d
tree129335b75f355346182c42d62affa371b60f0989
parent3fd8ac32acb5616adf0ac5d4bfcaa88cf2d4946e
Handle PKINIT DH replies with no certs

If a PKINIT Diffie-Hellman reply contains no certificates in the
SignedData object, that may be because the signer certificate was a
trust anchor as transmitted to the KDC.  Heimdal's KDC, for instance,
filters client trust anchors out of the returned set of certificates.
Match against idctx->trustedCAs and idctx->intermediateCAs to handle
this case.  This fix only works with OpenSSL 1.0 or later; when built
against OpenSSL 0.9.x, the client will still require a cert in the
reply.

Code changes suggested by nalin@redhat.com.

ticket: 7183
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c