fix DH_generate_parameters for general 'generator'
[openssl.git] / crypto / dh / dh.h
index 32ea17a4f514a4d707b225a1feae7fcd4d5079ae..05851f84294c3bc53b68793ed69f0c18aacfa80c 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,7 +180,6 @@ 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
@@ -196,9 +195,10 @@ 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_BAD_GENERATOR                              101
 #define DH_R_NO_PRIVATE_VALUE                           100
 
 #ifdef  __cplusplus