diff options
author | tb <> | 2023-06-15 18:30:09 +0000 |
---|---|---|
committer | tb <> | 2023-06-15 18:30:09 +0000 |
commit | 0bcb6c7de733ac6e261836c48994a12b1afcaf49 (patch) | |
tree | 2a36f9d167e6f5c42fb69161412aa98cb0c2e48d /src | |
parent | 047fd407e84ddf5d20bed36e9a935fc72101add7 (diff) | |
download | openbsd-0bcb6c7de733ac6e261836c48994a12b1afcaf49.tar.gz openbsd-0bcb6c7de733ac6e261836c48994a12b1afcaf49.tar.bz2 openbsd-0bcb6c7de733ac6e261836c48994a12b1afcaf49.zip |
Teach the grotty X509_certificate_type() about Ed25519 certs
ok jsing
Diffstat (limited to 'src')
-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 ebc02c5929..5da808cd04 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.18 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: x509type.c,v 1.19 2023/06/15 18:30:09 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 | * |
@@ -89,6 +89,9 @@ X509_certificate_type(const X509 *x, const EVP_PKEY *pkey) | |||
89 | case EVP_PKEY_EC: | 89 | case EVP_PKEY_EC: |
90 | ret = EVP_PK_EC|EVP_PKT_SIGN|EVP_PKT_EXCH; | 90 | ret = EVP_PK_EC|EVP_PKT_SIGN|EVP_PKT_EXCH; |
91 | break; | 91 | break; |
92 | case EVP_PKEY_ED25519: | ||
93 | ret = EVP_PKT_SIGN; | ||
94 | break; | ||
92 | case EVP_PKEY_DH: | 95 | case EVP_PKEY_DH: |
93 | ret = EVP_PK_DH|EVP_PKT_EXCH; | 96 | ret = EVP_PK_DH|EVP_PKT_EXCH; |
94 | break; | 97 | break; |