Lines Matching refs:user_key
197 const char *mail_crypt_get_key_path(bool user_key, bool public, const char *pubid)
200 user_key ? USER_CRYPT_PREFIX :
296 bool user_key, bool shared,
311 const char *attr_name = mail_crypt_get_key_path(user_key, FALSE, pubid);
409 bool user_key, bool shared, const char *pubid,
416 i_assert(user_key || shared || enc_key != NULL);
424 const char *attr_name = mail_crypt_get_key_path(user_key, FALSE, pubid);
430 } else if (user_key &&
519 struct dcrypt_public_key *user_key,
526 if ((ret = mail_crypt_set_private_key(t, FALSE, FALSE, pubid, user_key,
540 bool user_key, struct dcrypt_public_key **key_r,
556 const char *attr_name = mail_crypt_get_key_path(user_key, TRUE, pubid);
665 bool user_key, const char *pubid,
670 const char *attr_name = mail_crypt_get_key_path(user_key, TRUE, pubid);
807 struct dcrypt_public_key *user_key,
811 if (mail_crypt_box_set_private_key(box, pubid, privkey, user_key,
874 struct dcrypt_public_key *user_key,
883 i_assert(target_uid == NULL || user_key != NULL);
903 NULL, user_key, error_r)) {
1012 struct dcrypt_public_key *user_key,
1022 if (user_key == NULL) {
1024 &user_key,
1040 user_key = user_pair.pub;
1044 dcrypt_key_ref_public(user_key);
1050 pair->priv, user_key, pair->pub,
1058 dcrypt_key_unref_public(&user_key);
1175 struct dcrypt_public_key *user_key;
1176 if (mail_crypt_user_get_or_gen_public_key(user, &user_key,
1183 if (mail_crypt_box_generate_keypair(box, &pair, user_key,
1188 dcrypt_key_unref_public(&user_key);