AFAICS lst1 stands for "lshift test" not "list".
[oweals/openssl.git] / crypto / dh / dh_gen.c
index 32237e8b95e8d18d42734c03713dfdaa4a58692e..b7bcd2c7a4183b44b622dab42b7c5a1e4779435a 100644 (file)
@@ -84,7 +84,7 @@
  */
 
 DH *DH_generate_parameters(int prime_len, int generator,
-            void (*callback)(P_I_I_P), char *cb_arg)
+            void (*callback)(int,int,void *), void *cb_arg)
        {
        BIGNUM *p=NULL,*t1,*t2;
        DH *ret=NULL;
@@ -92,6 +92,7 @@ DH *DH_generate_parameters(int prime_len, int generator,
        BN_CTX *ctx=NULL;
 
        ret=DH_new();
+       if (ret == NULL) goto err;
        ctx=BN_CTX_new();
        if (ctx == NULL) goto err;
        t1= &(ctx->bn[0]);