summaryrefslogtreecommitdiffstats
path: root/crypto/pem/pem.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-07-14 16:54:31 +0000
committerBodo Möller <bodo@openssl.org>2002-07-14 16:54:31 +0000
commit5dbd3efce784cb5621de8402430eda23d1762568 (patch)
treeb9fec0675747eaab2d8a5539d3def0c16aabad3d /crypto/pem/pem.h
parent876811e2af12fe7f5b05104ad2187516cff2aee2 (diff)
Replace 'ecdsaparam' commandline utility by 'ecparam'
(the same keys can be used for ECC schemes other than ECDSA) and add some new options. Similarly, use string "EC PARAMETERS" instead of "ECDSA PARAMETERS" in 'PEM' format. Fix ec_asn1.c (take into account the desired conversion form). 'make update'. Submitted by: Nils Larsch
Diffstat (limited to 'crypto/pem/pem.h')
-rw-r--r--crypto/pem/pem.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/crypto/pem/pem.h b/crypto/pem/pem.h
index a0feea36c5..3e8c37b25c 100644
--- a/crypto/pem/pem.h
+++ b/crypto/pem/pem.h
@@ -93,7 +93,7 @@ extern "C" {
#define PEM_OBJ_PRIV_RSA_PUBLIC 19
#define PEM_OBJ_PRIV_ECDSA 20
#define PEM_OBJ_PUB_ECDSA 21
-#define PEM_OBJ_ECDSAPARAMS 22
+#define PEM_OBJ_ECPARAMETERS 22
#define PEM_ERROR 30
#define PEM_DEK_DES_CBC 40
@@ -131,7 +131,7 @@ extern "C" {
#define PEM_STRING_DSAPARAMS "DSA PARAMETERS"
#define PEM_STRING_ECDSA "ECDSA PRIVATE KEY"
#define PEM_STRING_ECDSA_PUBLIC "ECDSA PUBLIC KEY"
-#define PEM_STRING_ECDSAPARAMS "ECDSA PARAMETERS"
+#define PEM_STRING_ECPARAMETERS "EC PARAMETERS"
/* Note that this structure is initialised by PEM_SealInit and cleaned up
by PEM_SealFinal (at least for now) */
@@ -581,7 +581,10 @@ DECLARE_PEM_rw(DSAparams, DSA)
#ifndef OPENSSL_NO_ECDSA
DECLARE_PEM_rw_cb(ECDSAPrivateKey, ECDSA)
DECLARE_PEM_rw(ECDSA_PUBKEY, ECDSA)
-DECLARE_PEM_rw(ECDSAParameters, ECDSA)
+#endif
+
+#ifndef OPENSSL_NO_EC
+DECLARE_PEM_rw(ECPKParameters, EC_GROUP)
#endif
#ifndef OPENSSL_NO_DH