Initialise libgcrypt properly

* This prevents blocking on entropy
This commit is contained in:
Stef Walter 2012-03-25 12:36:20 +02:00
parent 441f8554e3
commit 9e49677afa

View File

@ -76,6 +76,8 @@ request_open_session_aes (SecretSession *session)
g_assert (session->privat == NULL);
g_assert (session->publi == NULL);
egg_libgcrypt_initialize ();
/* Initialize our local parameters and values */
if (!egg_dh_default_params ("ietf-ike-grp-modp-1024",
&session->prime, &base))