Searched refs:global_keys (Results 1 - 8 of 8) sorted by relevance

/dovecot/src/plugins/mail-crypt/
H A Dmail-crypt-global-key.h24 void mail_crypt_global_keys_free(struct mail_crypt_global_keys *global_keys);
27 struct mail_crypt_global_keys *global_keys,
31 struct mail_crypt_global_keys *global_keys,
35 mail_crypt_global_key_find(struct mail_crypt_global_keys *global_keys,
H A Dmail-crypt-global-key.c14 struct mail_crypt_global_keys *global_keys,
34 if (!dcrypt_key_load_public(&global_keys->public_key, key_data, &error)) {
78 struct mail_crypt_global_keys *global_keys,
127 array_append_space(&global_keys->private_keys);
140 void mail_crypt_global_keys_free(struct mail_crypt_global_keys *global_keys) argument
144 if (global_keys->public_key != NULL)
145 dcrypt_key_unref_public(&global_keys->public_key);
147 if (!array_is_created(&global_keys->private_keys))
149 array_foreach_modifiable(&global_keys->private_keys, priv_key) {
154 array_free(&global_keys
13 mail_crypt_load_global_public_key(const char *set_key, const char *key_data, struct mail_crypt_global_keys *global_keys, const char **error_r) argument
76 mail_crypt_load_global_private_key(const char *set_key, const char *key_data, const char *set_pw, const char *key_password, struct mail_crypt_global_keys *global_keys, const char **error_r) argument
158 mail_crypt_global_key_find(struct mail_crypt_global_keys *global_keys, const char *pubkey_digest) argument
[all...]
H A Dmail-crypt-plugin.h18 struct mail_crypt_global_keys global_keys; member in struct:mail_crypt_user
H A Dmail-crypt-userenv.c11 struct mail_crypt_global_keys *global_keys,
27 global_keys,
9 mail_crypt_load_global_private_keys(struct mail_user *user, const char *set_prefix, struct mail_crypt_global_keys *global_keys, bool ignore_errors, const char **error_r) argument
H A Dmail-crypt-pluginenv.c58 struct mail_crypt_global_keys *global_keys,
73 global_keys, error_r) < 0)
56 mail_crypt_load_global_private_keys(const struct fs_crypt_settings *set, const char *set_prefix, struct mail_crypt_global_keys *global_keys, const char **error_r) argument
H A Dmail-crypt-plugin.c128 *priv_key_r = mail_crypt_global_key_find(&muser->global_keys,
271 if (muser->global_keys.public_key != NULL)
272 pub_key = muser->global_keys.public_key;
376 if (muser->global_keys.public_key == NULL)
390 mail_crypt_global_keys_free(&muser->global_keys);
444 &muser->global_keys, FALSE, &error) < 0) {
H A Dtest-mail-global-key.c32 struct mail_crypt_global_keys *global_keys,
H A Dmail-crypt-key.c173 struct mail_crypt_global_keys global_keys; local
175 if (mail_crypt_global_keys_load(user, "mail_crypt", &global_keys,
177 mail_crypt_global_keys_free(&global_keys);
183 mail_crypt_global_key_find(&global_keys, pubid);
191 mail_crypt_global_keys_free(&global_keys);

Completed in 1254 milliseconds