summaryrefslogtreecommitdiff
path: root/lib/x509/privkey_pkcs8.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-25 14:14:49 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-03 11:57:52 +0200
commitf24d8170bdfe14d1fdffb7e8239e2c6cd512ec6b (patch)
treee3a3f5a79302c73026f2bf30bf032bbb36f805b6 /lib/x509/privkey_pkcs8.c
parentfe47976a6db5b2da86d5b5c53b2bf58ea7dd28b6 (diff)
downloadgnutls-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.c2
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, &params, 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.
*/