summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-06-15 18:30:10 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-06-15 18:30:10 +0000
commit89a5b2a64acd4dceab0bb098f91d3d631dddef7c (patch)
tree972eef3742c4652df1d43804bcd9609a858d663a /lib/libcrypto
parent0a747282005b619b30caf45a95464b15d0d7432a (diff)
Teach the grotty X509_certificate_type() about Ed25519 certs
ok jsing
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/x509/x509type.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libcrypto/x509/x509type.c b/lib/libcrypto/x509/x509type.c
index ebc02c59297..5da808cd04d 100644
--- a/lib/libcrypto/x509/x509type.c
+++ b/lib/libcrypto/x509/x509type.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509type.c,v 1.18 2023/02/16 08:38:17 tb Exp $ */
+/* $OpenBSD: x509type.c,v 1.19 2023/06/15 18:30:09 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -89,6 +89,9 @@ X509_certificate_type(const X509 *x, const EVP_PKEY *pkey)
case EVP_PKEY_EC:
ret = EVP_PK_EC|EVP_PKT_SIGN|EVP_PKT_EXCH;
break;
+ case EVP_PKEY_ED25519:
+ ret = EVP_PKT_SIGN;
+ break;
case EVP_PKEY_DH:
ret = EVP_PK_DH|EVP_PKT_EXCH;
break;