提交 f8d3ab49 编写于 作者: R Richard Levitte

Move the definitions of EC_KEY and EC_KEY_METHOD to ossl_typ.h

Most of all, that has inclusion of openssl/engine.h work even if EC
has been disabled.  This is the same as has been done for DH, DSA, RSA
and more...
Reviewed-by: NStephen Henson <steve@openssl.org>
上级 5e030525
...@@ -740,9 +740,6 @@ int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); ...@@ -740,9 +740,6 @@ int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off);
/* EC_KEY functions */ /* EC_KEY functions */
/********************************************************************/ /********************************************************************/
typedef struct ec_key_st EC_KEY;
typedef struct ec_key_method_st EC_KEY_METHOD;
/* some values for the encoding_flag */ /* some values for the encoding_flag */
# define EC_PKEY_NO_PARAMETERS 0x001 # define EC_PKEY_NO_PARAMETERS 0x001
# define EC_PKEY_NO_PUBKEY 0x002 # define EC_PKEY_NO_PUBKEY 0x002
......
...@@ -148,6 +148,9 @@ typedef struct dsa_method DSA_METHOD; ...@@ -148,6 +148,9 @@ typedef struct dsa_method DSA_METHOD;
typedef struct rsa_st RSA; typedef struct rsa_st RSA;
typedef struct rsa_meth_st RSA_METHOD; typedef struct rsa_meth_st RSA_METHOD;
typedef struct ec_key_st EC_KEY;
typedef struct ec_key_method_st EC_KEY_METHOD;
typedef struct rand_meth_st RAND_METHOD; typedef struct rand_meth_st RAND_METHOD;
typedef struct x509_st X509; typedef struct x509_st X509;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册