Home
last modified time | relevance | path

Searched refs:uri (Results 1 – 19 of 19) sorted by relevance

/systemd-251/src/home/
Dhomectl-pkcs11.c16 const char *uri, in add_pkcs11_encrypted_key() argument
25 assert(uri); in add_pkcs11_encrypted_key()
42 JSON_BUILD_PAIR("uri", JSON_BUILD_STRING(uri)), in add_pkcs11_encrypted_key()
66 static int add_pkcs11_token_uri(JsonVariant **v, const char *uri) { in add_pkcs11_token_uri() argument
72 assert(uri); in add_pkcs11_token_uri()
80 if (strv_contains(l, uri)) in add_pkcs11_token_uri()
84 r = strv_extend(&l, uri); in add_pkcs11_token_uri()
146 const char *uri, in acquire_pkcs11_certificate() argument
152 …return pkcs11_acquire_certificate(uri, askpw_friendly_name, askpw_icon_name, ret_cert, ret_pin_use… in acquire_pkcs11_certificate()
159 int identity_add_pkcs11_key_data(JsonVariant **v, const char *uri) { in identity_add_pkcs11_key_data() argument
[all …]
Dhomework-pkcs11.c14 P11KitUri *uri, in pkcs11_callback() argument
29 assert(uri); in pkcs11_callback()
91 r = pkcs11_token_find_private_key(m, session, uri, &object); in pkcs11_callback()
Dhomework-pkcs11.h20 …d, const CK_SLOT_INFO *slot_info, const CK_TOKEN_INFO *token_info, P11KitUri *uri, void *userdata);
Dhomework.c133 r = pkcs11_find_token(data.encrypted_key->uri, pkcs11_callback, &data); in user_record_authenticate()
164 …red PKCS#11 security token %s does not decrypt encrypted key correctly.", data.encrypted_key->uri); in user_record_authenticate()
166 …"Decrypted password from PKCS#11 security token %s unlocks user record.", data.encrypted_key->uri); in user_record_authenticate()
1186 r = pkcs11_find_token(data.encrypted_key->uri, pkcs11_callback, &data); in user_record_compile_effective_passwords()
/systemd-251/src/shared/
Dpkcs11-util.c20 bool pkcs11_uri_valid(const char *uri) { in pkcs11_uri_valid() argument
25 if (isempty(uri)) in pkcs11_uri_valid()
28 p = startswith(uri, "pkcs11:"); in pkcs11_uri_valid()
44 _cleanup_(p11_kit_uri_freep) P11KitUri *uri = NULL; in uri_from_string()
49 uri = p11_kit_uri_new(); in uri_from_string()
50 if (!uri) in uri_from_string()
53 if (p11_kit_uri_parse(p, P11_KIT_URI_FOR_ANY, uri) != P11_KIT_URI_OK) in uri_from_string()
56 *ret = TAKE_PTR(uri); in uri_from_string()
61 P11KitUri *uri; in uri_from_module_info() local
65 uri = p11_kit_uri_new(); in uri_from_module_info()
[all …]
Dpkcs11-util.h15 bool pkcs11_uri_valid(const char *uri);
46 …d, const CK_SLOT_INFO *slot_info, const CK_TOKEN_INFO *token_info, P11KitUri *uri, void *userdata);
50 int pkcs11_acquire_certificate(const char *uri, const char *askpw_friendly_name, const char *askpw_…
72 P11KitUri *uri,
Duser-record.h179 char *uri; member
Duser-record.c98 free(k->uri); in pkcs11_encrypted_key_done()
759 …SON_VARIANT_STRING, dispatch_pkcs11_uri, offsetof(Pkcs11EncryptedKey, uri), JSON_… in dispatch_pkcs11_key()
/systemd-251/src/cryptsetup/
Dcryptsetup-pkcs11.c98 _cleanup_free_ char *uri = NULL; in find_pkcs11_auto_data() local
130 if (uri) in find_pkcs11_auto_data()
142 uri = strdup(json_variant_string(w)); in find_pkcs11_auto_data()
143 if (!uri) in find_pkcs11_auto_data()
146 if (!pkcs11_uri_valid(uri)) in find_pkcs11_auto_data()
162 if (!uri) in find_pkcs11_auto_data()
166 log_info("Automatically discovered security PKCS#11 token '%s' unlocks volume.", uri); in find_pkcs11_auto_data()
168 *ret_uri = TAKE_PTR(uri); in find_pkcs11_auto_data()
Dcryptsetup.c1104 const char *uri = NULL; in attach_luks_or_plain_or_bitlk_by_pkcs11() local
1120 uri = discovered_uri; in attach_luks_or_plain_or_bitlk_by_pkcs11()
1125 uri = arg_pkcs11_uri; in attach_luks_or_plain_or_bitlk_by_pkcs11()
1142 uri, in attach_luks_or_plain_or_bitlk_by_pkcs11()
1166 uri, friendly); in attach_luks_or_plain_or_bitlk_by_pkcs11()
/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dluks2-pkcs11.c31 P11KitUri *uri, in luks2_pkcs11_callback() argument
44 assert(uri); in luks2_pkcs11_callback()
82 r = pkcs11_token_find_private_key(m, session, uri, &object); in luks2_pkcs11_callback()
236 _cleanup_free_ char *uri = NULL; in parse_luks2_pkcs11_data() local
254 uri = strdup(json_variant_string(w)); in parse_luks2_pkcs11_data()
255 if (!uri) in parse_luks2_pkcs11_data()
266 *ret_uri = TAKE_PTR(uri); in parse_luks2_pkcs11_data()
/systemd-251/src/cryptenroll/
Dcryptenroll-pkcs11.c15 const char *uri) { in enroll_pkcs11() argument
31 assert_se(uri); in enroll_pkcs11()
35 … r = pkcs11_acquire_certificate(uri, "volume enrollment operation", "drive-harddisk", &cert, NULL); in enroll_pkcs11()
88 JSON_BUILD_PAIR("pkcs11-uri", JSON_BUILD_STRING(uri)), in enroll_pkcs11()
Dcryptenroll-pkcs11.h10 …l_pkcs11(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const char *uri);
12 …_pkcs11(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const char *uri) { in enroll_pkcs11() argument
Dcryptenroll.c225 _cleanup_free_ char *uri = NULL; in parse_argv() local
235 r = pkcs11_find_token_auto(&uri); in parse_argv()
242 uri = strdup(optarg); in parse_argv()
243 if (!uri) in parse_argv()
248 arg_pkcs11_token_uri = TAKE_PTR(uri); in parse_argv()
/systemd-251/man/
Dyubikey-crypttab.sh21 sudo systemd-cryptenroll --pkcs11-token-uri=auto /dev/sdXn
24 sudo /usr/lib/systemd/systemd-cryptsetup attach mytest /dev/sdXn - pkcs11-uri=auto
/systemd-251/shell-completion/bash/
Dhomectl63 --pkcs11-token-uri
/systemd-251/docs/
DUSER_RECORD.md637 an object consisting of three string fields: `uri` shall contain a PKCS#11
/systemd-251/
DTODO1585 …- when "homectl --pkcs11-token-uri=" is used, synthesize ssh-authorized-keys records for all keys …
DNEWS3616 * homectl's --pkcs11-uri= setting now accepts two special parameters:
3988 pkcs11-uri= option in /etc/crypttab.