diff options
author | tb <> | 2023-11-13 15:36:55 +0000 |
---|---|---|
committer | tb <> | 2023-11-13 15:36:55 +0000 |
commit | b7e820711e5fb068e2744d5970cf5cc80cc2b70f (patch) | |
tree | 0da65f220ea793a1870a5328bcb6e6cf8c6c6c62 | |
parent | db4f0c111d3d2ec9fb666f340137159c7cbf1030 (diff) | |
download | openbsd-b7e820711e5fb068e2744d5970cf5cc80cc2b70f.tar.gz openbsd-b7e820711e5fb068e2744d5970cf5cc80cc2b70f.tar.bz2 openbsd-b7e820711e5fb068e2744d5970cf5cc80cc2b70f.zip |
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
-rw-r--r-- | src/lib/libcrypto/x509/x509type.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509type.c b/src/lib/libcrypto/x509/x509type.c index 5da808cd04..91e1fe8f32 100644 --- a/src/lib/libcrypto/x509/x509type.c +++ b/src/lib/libcrypto/x509/x509type.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509type.c,v 1.19 2023/06/15 18:30:09 tb Exp $ */ | 1 | /* $OpenBSD: x509type.c,v 1.20 2023/11/13 15:36:55 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -83,6 +83,9 @@ X509_certificate_type(const X509 *x, const EVP_PKEY *pkey) | |||
83 | case EVP_PKEY_RSA: | 83 | case EVP_PKEY_RSA: |
84 | ret = EVP_PK_RSA|EVP_PKT_SIGN|EVP_PKT_ENC; | 84 | ret = EVP_PK_RSA|EVP_PKT_SIGN|EVP_PKT_ENC; |
85 | break; | 85 | break; |
86 | case EVP_PKEY_RSA_PSS: | ||
87 | ret = EVP_PK_RSA|EVP_PKT_SIGN; | ||
88 | break; | ||
86 | case EVP_PKEY_DSA: | 89 | case EVP_PKEY_DSA: |
87 | ret = EVP_PK_DSA|EVP_PKT_SIGN; | 90 | ret = EVP_PK_DSA|EVP_PKT_SIGN; |
88 | break; | 91 | break; |