Move the definitions of EC_KEY and EC_KEY_METHOD to ossl_typ.h
[openssl.git] / include / openssl / ec.h
index df9cfd206185a3b379305fd1e36f1dad6a391939..a7793b82718b87de6312aca958392bfa7f99c842 100644 (file)
@@ -740,9 +740,6 @@ int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off);
 /*                      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 */
 # define EC_PKEY_NO_PARAMETERS   0x001
 # define EC_PKEY_NO_PUBKEY       0x002
@@ -1131,6 +1128,10 @@ int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,
  */
 int ECDSA_size(const EC_KEY *eckey);
 
+/********************************************************************/
+/*  EC_KEY_METHOD constructors, destructors, writers and accessors  */
+/********************************************************************/
+
 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth);
 void EC_KEY_METHOD_free(EC_KEY_METHOD *meth);
 void EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,