Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_identity.c140 opts->token_label = NULL; in pkinit_init_identity_opts()
210 if (src_opts->token_label != NULL) { in pkinit_dup_identity_opts()
211 newopts->token_label = strdup(src_opts->token_label); in pkinit_dup_identity_opts()
212 if (newopts->token_label == NULL) in pkinit_dup_identity_opts()
262 if (idopts->token_label != NULL) in pkinit_fini_identity_opts()
263 free(idopts->token_label); in pkinit_fini_identity_opts()
325 if (idopts->token_label != NULL) in parse_pkcs11_options()
326 free(idopts->token_label); in parse_pkcs11_options()
327 idopts->token_label = strdup(vp); in parse_pkcs11_options()
328 if (idopts->token_label == NULL) in parse_pkcs11_options()
H A Dpkinit_crypto_openssl.h89 char *token_label; member
H A Dpkinit.h200 char *token_label; member
H A Dpkinit_crypto_openssl.c852 ctx->token_label = NULL; in pkinit_init_pkcs11()
892 if (ctx->token_label != NULL) in pkinit_fini_pkcs11()
893 free(ctx->token_label); in pkinit_fini_pkcs11()
4302 if (cctx->token_label == NULL) { in pkinit_open_session()
4341 slotlist[i], tokenlabelstr, (char *) cctx->token_label); in pkinit_open_session()
4343 if (!strcmp(cctx->token_label, tokenlabelstr)) { in pkinit_open_session()
5374 if (idopts->token_label != NULL) {
5375 id_cryptoctx->token_label = strdup(idopts->token_label);
5376 if (id_cryptoctx->token_label == NULL)
/illumos-gate/usr/src/cmd/cmd-crypto/elfsign/
H A Delfsign.c96 char *token_label; /* -T <token_label> */ member
174 cmd_info.token_label = NULL; in main()
261 if (cmd_info.token_label != NULL || in main()
274 cmd_info.token_label = optarg; in main()
306 (cmd_info.token_label == NULL)) || in main()
316 (cmd_info.token_label == NULL)) || in main()
511 if (cmd_info.token_label && in do_sign()
514 cmd_info.token_label); in do_sign()
546 cmd_info.token_label, pin)) { in do_sign()
548 "in token %s"), cmd_info.token_label); in do_sign()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c90 static char *token_label = NULL; /* tokensSpec: tokenName[:manufId[:serial]] */ variable
196 token_label = optarg; in main()
416 if (token_label == NULL || in execute_cmd()
417 !strlen(token_label)) { in execute_cmd()
418 token_label = pkcs11_default_token(); in execute_cmd()
421 status = pkcs11_get_pass(token_label, in execute_cmd()
535 kmfrv = kmf_pk11_token_lookup(NULL, token_label, in execute_cmd()
/illumos-gate/usr/src/cmd/cmd-crypto/decrypt/
H A Ddecrypt.c179 static char *token_label = NULL; /* name of PKCS#11 token */ variable
245 token_label = optarg; in main()
478 if (token_label == NULL || !strlen(token_label)) { in execute_cmd()
479 token_label = pkcs11_default_token(); in execute_cmd()
482 status = pkcs11_get_pass(token_label, in execute_cmd()
586 kmfrv = kmf_pk11_token_lookup(NULL, token_label, in execute_cmd()
/illumos-gate/usr/src/lib/libelfsign/common/
H A Delfcertlib.c397 const char *token_label, const char *pin) in elfcertlib_loadtokenkey() argument
472 cryptodebug("key found in %s", token_label); in elfcertlib_loadtokenkey()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dikeadm.c564 parse_token(int argc, char **argv, char *token_label) in parse_token() argument
569 if (strlcpy(token_label, argv[0], PKCS11_TOKSIZE) >= PKCS11_TOKSIZE) in parse_token()
2503 char token_label[PKCS11_TOKSIZE]; in do_setdel_pin() local
2515 if (parse_token(argc, argv, token_label) != 0) in do_setdel_pin()
2518 "Enter PIN for PKCS#11 token \'%s\': ", token_label); in do_setdel_pin()
2525 if (parse_token(argc, argv, token_label) != 0) in do_setdel_pin()
2532 (void) strlcpy(preq->pkcs11_token, token_label, PKCS11_TOKSIZE); in do_setdel_pin()