Home
last modified time | relevance | path

Searched refs:tokenname (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dgenkeypair.c325 char *tokenname = NULL; in pk_genkeypair() local
363 if (tokenname) in pk_genkeypair()
365 tokenname = optarg_av; in pk_genkeypair()
485 if (tokenname == NULL || !strlen(tokenname)) { in pk_genkeypair()
487 tokenname = "internal"; in pk_genkeypair()
489 tokenname = PK_DEFAULT_PK11TOKEN; in pk_genkeypair()
493 (void) get_token_password(kstype, tokenname, &tokencred); in pk_genkeypair()
501 tokenname, label, dir, prefix, keyAlg, keylen, in pk_genkeypair()
506 tokenname, label, keyAlg, keylen, in pk_genkeypair()
H A Dgenkey.c365 char *tokenname = NULL; in pk_genkey() local
399 if (tokenname) in pk_genkey()
401 tokenname = optarg_av; in pk_genkey()
521 if (kstype == KMF_KEYSTORE_PK11TOKEN && tokenname == NULL) { in pk_genkey()
522 tokenname = PK_DEFAULT_PK11TOKEN; in pk_genkey()
523 } else if (kstype == KMF_KEYSTORE_NSS && tokenname == NULL) { in pk_genkey()
524 tokenname = DEFAULT_NSS_TOKEN; in pk_genkey()
529 (void) get_token_password(kstype, tokenname, &tokencred); in pk_genkey()
537 rv = genkey_nss(kmfhandle, tokenname, dir, prefix, in pk_genkey()
543 rv = genkey_pkcs11(kmfhandle, tokenname, keylabel, keyAlg, in pk_genkey()
H A Dgencsr.c375 char *tokenname = NULL; in pk_gencsr() local
449 if (tokenname) in pk_gencsr()
451 tokenname = optarg_av; in pk_gencsr()
696 if (tokenname == NULL || !strlen(tokenname)) { in pk_gencsr()
698 tokenname = "internal"; in pk_gencsr()
700 tokenname = PK_DEFAULT_PK11TOKEN; in pk_gencsr()
704 (void) get_token_password(kstype, tokenname, &tokencred); in pk_gencsr()
718 tokenname, subname, altname, alttype, altcrit, in pk_gencsr()
726 tokenname, subname, altname, alttype, altcrit, in pk_gencsr()
H A Dgencert.c577 char *tokenname = NULL; in pk_gencert() local
648 if (tokenname) in pk_gencert()
650 tokenname = optarg_av; in pk_gencert()
912 if (tokenname == NULL || !strlen(tokenname)) { in pk_gencert()
914 tokenname = "internal"; in pk_gencert()
916 tokenname = PK_DEFAULT_PK11TOKEN; in pk_gencert()
920 (void) get_token_password(kstype, tokenname, &tokencred); in pk_gencert()
928 tokenname, subname, altname, alttype, altcrit, in pk_gencert()
935 tokenname, subname, altname, alttype, altcrit, in pk_gencert()
/illumos-gate/usr/src/head/
H A Dldap.h1513 (void *context, char **tokenname);
1515 (void *context, const char *tokenname, char **tokenpin);