Initialize libgcrypt for SecretFileCollection

Make sure libgcrypt is initialized before any SecretFileCollection
instance uses it.
This commit is contained in:
Mikhail Zabaluev 2020-06-15 08:39:47 +03:00
parent ac51524c2b
commit caf9c0345c

View File

@ -16,6 +16,7 @@
#include "secret-file-collection.h" #include "secret-file-collection.h"
#include "egg/egg-libgcrypt.h"
#include "egg/egg-secure-memory.h" #include "egg/egg-secure-memory.h"
EGG_SECURE_DECLARE (secret_file_collection); EGG_SECURE_DECLARE (secret_file_collection);
@ -271,6 +272,8 @@ secret_file_collection_class_init (SecretFileCollectionClass *klass)
g_param_spec_boxed ("password", "password", "Password", g_param_spec_boxed ("password", "password", "Password",
SECRET_TYPE_VALUE, SECRET_TYPE_VALUE,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
egg_libgcrypt_initialize ();
} }
static void static void