Initialize g and p in create_dh factory method
This commit is contained in:
@@ -360,7 +360,7 @@ METHOD(crypto_factory_t, create_dh, diffie_hellman_t*,
|
|||||||
enumerator_t *enumerator;
|
enumerator_t *enumerator;
|
||||||
entry_t *entry;
|
entry_t *entry;
|
||||||
va_list args;
|
va_list args;
|
||||||
chunk_t g, p;
|
chunk_t g = chunk_empty, p = chunk_empty;
|
||||||
diffie_hellman_t *diffie_hellman = NULL;
|
diffie_hellman_t *diffie_hellman = NULL;
|
||||||
|
|
||||||
if (group == MODP_CUSTOM)
|
if (group == MODP_CUSTOM)
|
||||||
|
|||||||
Reference in New Issue
Block a user