Cope with lack of gnutls_certificate_set_key() in GnuTLS 2.12
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 14 Jun 2012 16:02:18 +0000 (17:02 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 14 Jun 2012 16:06:16 +0000 (17:06 +0100)
commit25d9be59356678d5f98de7020ad8874932da7792
treecc9b12d7f03fdc0f389f8dcb91968a06990ca909
parent6e4ce246106c7fa890d7b30ed6c722c2bf2f68b8
Cope with lack of gnutls_certificate_set_key() in GnuTLS 2.12

We *can* use arbitrary privkeys, by using the cert_callback to provide
them on demand.

And even without gnutls_privkey_import_ext() to give us a constructed
privkey that represents the TPM key, we can cope by registering a
sign_callback on the TLS session.

This means that we can support the TPM, and also fix the lack of extra
supporting certs and expiry check when using PKCS#11 certs with GnuTLS 2.12.

It also means my code is an even bigger mess of #ifdefs than it was before.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
configure.ac
gnutls.c
openconnect-internal.h
www/changelog.xml