Commit 74095c52 authored by levlam's avatar levlam

Fix warnings.

parent 04282c7e
......@@ -685,7 +685,7 @@ static void parse_option_engine_builtin (const char *name, int arg, int *var, in
assert (vasprintf (&h, help, ap) >= 0);
va_end (ap);
parse_option_ex (name, arg, var, val, flags, f_parse_option_engine, h);
parse_option_ex (name, arg, var, val, flags, f_parse_option_engine, "%s", h);
free (h);
}
......
......@@ -147,7 +147,7 @@ void create_g_a (unsigned char g_a[256], unsigned char a[256]) {
rpc_BN_ctx = BN_CTX_new ();
}
do {
assert (RAND_pseudo_bytes (a, 256) >= 0); /* if you write '>0', the assert will fail. It's very sad */
assert (RAND_bytes (a, 256) >= 0); /* if you write '>0', the assert will fail. It's very sad */
BIGNUM *dh_power = BN_new ();
assert (BN_bin2bn (a, 256, dh_power) == dh_power);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment