From: tb Date: Mon, 13 Nov 2023 15:36:55 +0000 (+0000) Subject: X509_certificate_type() needs to know about RSA-PSS X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=78e8dcfe88134e4057713b448f23426df4593fba;p=openbsd X509_certificate_type() needs to know about RSA-PSS This doesn't do much right now, but is part of the tangle that is adding RSA-PSS support. ok beck jsing --- diff --git a/lib/libcrypto/x509/x509type.c b/lib/libcrypto/x509/x509type.c index 5da808cd04d..91e1fe8f32c 100644 --- a/lib/libcrypto/x509/x509type.c +++ b/lib/libcrypto/x509/x509type.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509type.c,v 1.19 2023/06/15 18:30:09 tb Exp $ */ +/* $OpenBSD: x509type.c,v 1.20 2023/11/13 15:36:55 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -83,6 +83,9 @@ X509_certificate_type(const X509 *x, const EVP_PKEY *pkey) case EVP_PKEY_RSA: ret = EVP_PK_RSA|EVP_PKT_SIGN|EVP_PKT_ENC; break; + case EVP_PKEY_RSA_PSS: + ret = EVP_PK_RSA|EVP_PKT_SIGN; + break; case EVP_PKEY_DSA: ret = EVP_PK_DSA|EVP_PKT_SIGN; break;