Commit caf9c034 authored by Mikhail Zabaluev's avatar Mikhail Zabaluev

Initialize libgcrypt for SecretFileCollection

Make sure libgcrypt is initialized before any SecretFileCollection
instance uses it.
parent ac51524c
......@@ -16,6 +16,7 @@
#include "secret-file-collection.h"
#include "egg/egg-libgcrypt.h"
#include "egg/egg-secure-memory.h"
EGG_SECURE_DECLARE (secret_file_collection);
......@@ -271,6 +272,8 @@ secret_file_collection_class_init (SecretFileCollectionClass *klass)
g_param_spec_boxed ("password", "password", "Password",
SECRET_TYPE_VALUE,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
egg_libgcrypt_initialize ();
}
static void
......
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