simplify
[oweals/openssl.git] / apps / dsaparam.c
index 63e2cab45f545f055514cc11aab901180816d0c8..b6abe785abd9aa9a738cc492964cc050f8dfaff7 100644 (file)
@@ -97,7 +97,7 @@
 
 static int stop_keygen_flag = 0;
 
-void timebomb_sigalarm(int foo)
+static void timebomb_sigalarm(int foo)
        {
        stop_keygen_flag = 1;
        }
@@ -281,10 +281,7 @@ bad:
        if (numbits > 0)
                {
                BN_GENCB cb;
-               cb.ver = 2;
-               cb.cb_2 = dsa_cb;
-               cb.arg = bio_err;
-
+               BN_GENCB_set(&cb, dsa_cb, bio_err);
                assert(need_rand);
                dsa = DSA_new();
                if(!dsa)