diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-25 14:14:49 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-03 11:57:52 +0200 |
commit | f24d8170bdfe14d1fdffb7e8239e2c6cd512ec6b (patch) | |
tree | e3a3f5a79302c73026f2bf30bf032bbb36f805b6 /lib/x509/privkey_pkcs8.c | |
parent | fe47976a6db5b2da86d5b5c53b2bf58ea7dd28b6 (diff) | |
download | gnutls-f24d8170bdfe14d1fdffb7e8239e2c6cd512ec6b.tar.gz |
_decode_pkcs8_rsa_pss_key: ensure we set the PSS PK identifier
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/x509/privkey_pkcs8.c')
-rw-r--r-- | lib/x509/privkey_pkcs8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c index 43c1ebe4e2..7042cca997 100644 --- a/lib/x509/privkey_pkcs8.c +++ b/lib/x509/privkey_pkcs8.c @@ -979,6 +979,7 @@ _decode_pkcs8_rsa_pss_key(ASN1_TYPE pkcs8_asn, gnutls_x509_privkey_t pkey) goto error; } + pkey->params.algo = GNUTLS_PK_RSA_PSS; memcpy(&pkey->params.spki, ¶ms, sizeof(gnutls_x509_spki_st)); ret = 0; @@ -1193,7 +1194,6 @@ decode_private_key_info(const gnutls_datum_t * der, result = _gnutls_asn2err(result); goto error; } - /* we only support RSA and DSA private keys. */ |