summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509type.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-02-13 18:21:51 +0000
committerBodo Möller <bodo@openssl.org>2002-02-13 18:21:51 +0000
commit4d94ae00d5614d64d4dd065860c4b00161a81f82 (patch)
treee993aa323ea753b3c0782439eb78f4f8c896a67e /crypto/x509/x509type.c
parent60d8bae30d1040a4f955e3247443b2dd4c674cde (diff)
ECDSA support
Submitted by: Nils Larsch <nla@trustcenter.de>
Diffstat (limited to 'crypto/x509/x509type.c')
-rw-r--r--crypto/x509/x509type.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/x509/x509type.c b/crypto/x509/x509type.c
index 8e78b34458..7673c1ba03 100644
--- a/crypto/x509/x509type.c
+++ b/crypto/x509/x509type.c
@@ -86,6 +86,9 @@ int X509_certificate_type(X509 *x, EVP_PKEY *pkey)
case EVP_PKEY_DSA:
ret=EVP_PK_DSA|EVP_PKT_SIGN;
break;
+ case EVP_PKEY_ECDSA:
+ ret=EVP_PK_ECDSA|EVP_PKT_SIGN;
+ break;
case EVP_PKEY_DH:
ret=EVP_PK_DH|EVP_PKT_EXCH;
break;
@@ -102,6 +105,9 @@ int X509_certificate_type(X509 *x, EVP_PKEY *pkey)
case EVP_PKS_DSA:
ret|=EVP_PKS_DSA;
break;
+ case EVP_PKS_ECDSA:
+ ret|=EVP_PKS_ECDSA;
+ break;
default:
break;
}