RT3676 add: Export ASN.1 DHparams
authorRich Salz <rsalz@akamai.com>
Thu, 10 Mar 2016 01:56:43 +0000 (20:56 -0500)
committerRich Salz <rsalz@akamai.com>
Thu, 10 Mar 2016 01:58:08 +0000 (20:58 -0500)
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
crypto/dh/dh_asn1.c
include/openssl/dh.h
util/libcrypto.num

index d8ac810d22025950f43240c1b0b2de19619bdfde..8ea9550000d620fcb285128f3e7f6fc578f903ec 100644 (file)
@@ -84,7 +84,7 @@ ASN1_SEQUENCE_cb(DHparams, dh_cb) = {
         ASN1_SIMPLE(DH, p, BIGNUM),
         ASN1_SIMPLE(DH, g, BIGNUM),
         ASN1_OPT(DH, length, ZLONG),
-} static_ASN1_SEQUENCE_END_cb(DH, DHparams)
+} ASN1_SEQUENCE_END_cb(DH, DHparams)
 
 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams)
 
index 50f8e51c088a12a2dd5b5abef929871d6581666b..e852cbe446c261fbfff1eb99ac821b0a60f63812 100644 (file)
@@ -66,6 +66,7 @@
 # endif
 
 # include <openssl/bio.h>
+# include <openssl/asn1.h>
 # include <openssl/ossl_typ.h>
 # if OPENSSL_API_COMPAT < 0x10100000L
 #  include <openssl/bn.h>
@@ -159,6 +160,8 @@ struct dh_st {
     CRYPTO_RWLOCK *lock;
 };
 
+DECLARE_ASN1_ITEM(DHparams)
+
 # define DH_GENERATOR_2          2
 /* #define DH_GENERATOR_3       3 */
 # define DH_GENERATOR_5          5
index 78c66df81bbeec30062c7b0729bb1b4c640e2a95..727948da48b8da5ead5fefdcf8c1e2923ec532f2 100644 (file)
@@ -4058,3 +4058,5 @@ ECPARAMETERS_it                         3922      1_1_0   EXIST:EXPORT_VAR_AS_FUNCTION:
 ECPKPARAMETERS_it                       3923   1_1_0   EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE:EC
 ECPKPARAMETERS_it                       3923   1_1_0   EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:EC
 EC_GROUP_get_ecparameters               3924   1_1_0   EXIST::FUNCTION:EC
+DHparams_it                             3925   1_1_0   EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE:DH
+DHparams_it                             3925   1_1_0   EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:DH