From: Nikos Mavrogiannopoulos Date: Tue, 25 Jul 2017 12:14:49 +0000 (+0200) Subject: _decode_pkcs8_rsa_pss_key: ensure we set the PSS PK identifier X-Git-Tag: gnutls_3_6_0~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f24d8170bdfe14d1fdffb7e8239e2c6cd512ec6b;p=thirdparty%2Fgnutls.git _decode_pkcs8_rsa_pss_key: ensure we set the PSS PK identifier Signed-off-by: Nikos Mavrogiannopoulos --- 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. */