summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-08-16 13:55:34 +0900
committerMatt Caswell <matt@openssl.org>2016-08-22 15:10:02 +0100
commit9ba6f347fedbe103a06c8fd303912b358eacb11c (patch)
treed0ca4ec450510ea1084af913716ce96d0b576c90
parentfb2141c773ab0c5dfc78cc97d2445362b8048389 (diff)
Expose alloc functions for EC{PK,}PARAMETERS
Declare EC{PK,}PARAMETERS_{new,free} functions in public headers. The free functions are necessary because EC_GROUP_get_ec{pk,}parameters() was made public by commit 60b350a3ef96 ("RT3676: Expose ECgroup i2d functions"). Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
-rw-r--r--doc/crypto/X509_dup.pod4
-rw-r--r--include/openssl/ec.h2
-rw-r--r--util/libcrypto.num4
3 files changed, 10 insertions, 0 deletions
diff --git a/doc/crypto/X509_dup.pod b/doc/crypto/X509_dup.pod
index 03a81f0731..574994d00c 100644
--- a/doc/crypto/X509_dup.pod
+++ b/doc/crypto/X509_dup.pod
@@ -39,6 +39,10 @@ DIST_POINT_NAME_new,
DIST_POINT_free,
DIST_POINT_new,
DSAparams_dup,
+ECPARAMETERS_free,
+ECPARAMETERS_new,
+ECPKPARAMETERS_free,
+ECPKPARAMETERS_new,
EDIPARTYNAME_free,
EDIPARTYNAME_new,
ESS_CERT_ID_dup,
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index b6db22da8c..656cb410e6 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -699,7 +699,9 @@ int EC_GROUP_have_precompute_mult(const EC_GROUP *group);
/********************************************************************/
DECLARE_ASN1_ITEM(ECPKPARAMETERS)
+DECLARE_ASN1_ALLOC_FUNCTIONS(ECPKPARAMETERS)
DECLARE_ASN1_ITEM(ECPARAMETERS)
+DECLARE_ASN1_ALLOC_FUNCTIONS(ECPARAMETERS)
/*
* EC_GROUP_get_basis_type() returns the NID of the basis type used to
diff --git a/util/libcrypto.num b/util/libcrypto.num
index 78b39c7c21..7a9391556d 100644
--- a/util/libcrypto.num
+++ b/util/libcrypto.num
@@ -4203,3 +4203,7 @@ OPENSSL_utf82uni 4149 1_1_0 EXIST::FUNCTION:
PKCS12_add_friendlyname_utf8 4150 1_1_0 EXIST::FUNCTION:
OPENSSL_uni2utf8 4151 1_1_0 EXIST::FUNCTION:
PKCS12_key_gen_utf8 4152 1_1_0 EXIST::FUNCTION:
+ECPKPARAMETERS_free 4153 1_1_0 EXIST::FUNCTION:EC
+ECPARAMETERS_free 4154 1_1_0 EXIST::FUNCTION:EC
+ECPKPARAMETERS_new 4155 1_1_0 EXIST::FUNCTION:EC
+ECPARAMETERS_new 4156 1_1_0 EXIST::FUNCTION:EC