diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-11-01 02:54:08 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-11-01 02:54:08 +0200 |
commit | 6773d2ddb01d86fa283ce154b419e989916ab3f7 (patch) | |
tree | c3e38318016acfd0c50c8a4f6d694f5aa6d6f08a /lib/openpgp/gnutls_openpgp.c | |
parent | 9a262d093744f37b26f45c4e74d22f3a5a425211 (diff) | |
download | gnutls-6773d2ddb01d86fa283ce154b419e989916ab3f7.tar.gz |
Improved TLS 1.2 support. Added support for the SignatureAlgorithm extension
as well for the SignatureAlgorithm in certificate request.
Limitation for TLS 1.2 clients:
Only SHA1 or SHA256 are supported for generating signatures in
certificate verify message. That is to avoid storing all handshake
messages in memory. To be reconsidered in the future.
Diffstat (limited to 'lib/openpgp/gnutls_openpgp.c')
-rw-r--r-- | lib/openpgp/gnutls_openpgp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/openpgp/gnutls_openpgp.c b/lib/openpgp/gnutls_openpgp.c index 16d18d8946..fb50075390 100644 --- a/lib/openpgp/gnutls_openpgp.c +++ b/lib/openpgp/gnutls_openpgp.c @@ -800,6 +800,8 @@ _gnutls_openpgp_crt_to_gcert (gnutls_cert * gcert, gnutls_openpgp_crt_t cert) memset (gcert, 0, sizeof (gnutls_cert)); gcert->cert_type = GNUTLS_CRT_OPENPGP; + gcert->sign_algo = GNUTLS_SIGN_UNKNOWN; /* N/A here */ + gcert->version = gnutls_openpgp_crt_get_version (cert); gcert->params_size = MAX_PUBLIC_PARAMS_SIZE; |