Home
last modified time | relevance | path

Searched refs:token_spec (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dsetpin.c44 char *token_spec, char *dir, char *prefix) in setpin_nss() argument
62 if (token_spec != NULL) { in setpin_nss()
65 token_spec, strlen(token_spec)); in setpin_nss()
130 if (token_spec == NULL) { in setpin_pkcs11()
241 char *token_spec = NULL; in pk_setpin() local
260 if (token_spec) in pk_setpin()
262 token_spec = optarg_av; in pk_setpin()
291 token_spec = PK_DEFAULT_PK11TOKEN; in pk_setpin()
293 token_spec = DEFAULT_NSS_TOKEN; in pk_setpin()
310 rv = setpin_pkcs11(handle, token_spec, souser); in pk_setpin()
[all …]
H A Dexport.c175 if (token_spec == NULL) in pk_export_pk12_nss()
176 token_spec = DEFAULT_NSS_TOKEN; in pk_export_pk12_nss()
214 token_spec, strlen(token_spec)); in pk_export_pk12_nss()
330 if (token_spec != NULL) { in pk_export_nss_objects()
333 strlen(token_spec)); in pk_export_nss_objects()
679 char *token_spec = NULL; in pk_export() local
721 if (token_spec) in pk_export()
723 token_spec = optarg_av; in pk_export()
887 token_spec, certlabel, in pk_export()
907 token_spec, dir, prefix, in pk_export()
[all …]
H A Dimport.c245 if (token_spec != NULL) { in pk_import_pk12_nss()
248 strlen(token_spec)); in pk_import_pk12_nss()
296 if (token_spec != NULL) { in pk_import_pk12_nss()
299 strlen(token_spec)); in pk_import_pk12_nss()
399 if (token_spec != NULL) { in pk_import_cert()
402 token_spec, strlen(token_spec)); in pk_import_cert()
800 char *token_spec = NULL; in pk_import() local
838 if (token_spec) in pk_import()
840 token_spec = optarg_av; in pk_import()
1093 label, token_spec, in pk_import()
[all …]
H A Dlist.c730 if (token_spec && strlen(token_spec)) { in list_nss_objects()
733 strlen(token_spec)); in list_nss_objects()
828 if (token_spec != NULL) { in list_nss_objects()
831 strlen(token_spec)); in list_nss_objects()
851 if (token_spec != NULL) { in list_nss_objects()
854 token_spec, strlen(token_spec)); in list_nss_objects()
903 char *token_spec = NULL; in pk_list() local
973 if (token_spec) in pk_list()
975 token_spec = optarg_av; in pk_list()
1025 token_spec = PK_DEFAULT_PK11TOKEN; in pk_list()
[all …]
H A Ddelete.c722 char *token_spec = NULL; in pk_delete() local
753 if (token_spec) in pk_delete()
755 token_spec = optarg_av; in pk_delete()
834 token_spec = PK_DEFAULT_PK11TOKEN; in pk_delete()
836 token_spec = DEFAULT_NSS_TOKEN; in pk_delete()
870 (void) get_token_password(kstype, token_spec, in pk_delete()
882 token_spec, oclass, in pk_delete()
895 token_spec, object_label, in pk_delete()
914 dir, prefix, token_spec, in pk_delete()
923 dir, prefix, token_spec, in pk_delete()
[all …]
H A Dsigncsr.c526 char *token_spec = NULL; in pk_signcsr() local
616 if (token_spec) in pk_signcsr()
618 token_spec = optarg_av; in pk_signcsr()
699 if (kstype == KMF_KEYSTORE_PK11TOKEN && EMPTYSTRING(token_spec)) { in pk_signcsr()
700 token_spec = PK_DEFAULT_PK11TOKEN; in pk_signcsr()
701 } else if (kstype == KMF_KEYSTORE_NSS && EMPTYSTRING(token_spec)) { in pk_signcsr()
702 token_spec = DEFAULT_NSS_TOKEN; in pk_signcsr()
727 (void) get_token_password(kstype, token_spec, in pk_signcsr()
778 kstype, dir, prefix, token_spec, &tokencred, in pk_signcsr()
788 kstype, dir, prefix, token_spec, &tokencred, in pk_signcsr()
H A Dcommon.c1109 char *token_spec, KMF_CREDENTIAL *cred) in get_token_password() argument
1119 p = strchr(token_spec, ':'); in get_token_password()
1123 len = strlen(token_spec); in get_token_password()
1127 (void) strncpy(temptoken, token_spec, len); in get_token_password()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpk11tokens.c234 parse_token_spec(char *token_spec, char **token_name, char **manuf_id, in parse_token_spec() argument
239 if (token_spec == NULL || *token_spec == '\0') { in parse_token_spec()
248 mark = find_unescaped_colon(token_spec); in parse_token_spec()
249 *token_name = token_spec; in parse_token_spec()
260 token_spec = mark; in parse_token_spec()
263 mark = find_unescaped_colon(token_spec); in parse_token_spec()
264 *manuf_id = token_spec; in parse_token_spec()
271 token_spec = mark; in parse_token_spec()
274 mark = find_unescaped_colon(token_spec); in parse_token_spec()
275 *serial_no = token_spec; in parse_token_spec()
/illumos-gate/usr/src/cmd/lofiadm/
H A Dmain.c87 typedef struct token_spec { struct