mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 20:58:52 +00:00
Initialize libgcrypt for SecretFileCollection
Make sure libgcrypt is initialized before any SecretFileCollection instance uses it.
This commit is contained in:
parent
ac51524c2b
commit
caf9c0345c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user