New function EC_GROUP_check_discriminant().
[openssl.git] / crypto / dh / dh.h
index e9cb99d994339a8eefe1a85390c65f778bf3ff8e..15cf70de0b6badf3bd3669bcbc0409de8de2142b 100644 (file)
@@ -101,7 +101,7 @@ struct dh_st
        int version;
        BIGNUM *p;
        BIGNUM *g;
-       int length; /* optional */
+       long length; /* optional */
        BIGNUM *pub_key;        /* g^x */
        BIGNUM *priv_key;       /* x */
 
@@ -180,12 +180,12 @@ int       DHparams_print(BIO *bp, const DH *x);
 #else
 int    DHparams_print(char *bp, const DH *x);
 #endif
-void   ERR_load_DH_strings(void);
 
 /* BEGIN ERROR CODES */
 /* The following lines are auto generated by the script mkerr.pl. Any changes
  * made after this point may be overwritten when the script is next run.
  */
+void ERR_load_DH_strings(void);
 
 /* Error codes for the DH functions. */
 
@@ -195,7 +195,7 @@ void        ERR_load_DH_strings(void);
 #define DH_F_DH_COMPUTE_KEY                             102
 #define DH_F_DH_GENERATE_KEY                            103
 #define DH_F_DH_GENERATE_PARAMETERS                     104
-#define DH_F_DH_NEW                                     105
+#define DH_F_DH_NEW_METHOD                              105
 
 /* Reason codes. */
 #define DH_R_NO_PRIVATE_VALUE                           100
@@ -204,4 +204,3 @@ void        ERR_load_DH_strings(void);
 }
 #endif
 #endif
-