/opensolaris-onvv-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | tokens.c | 48 CK_TOKEN_INFO token_info; local 82 if ((rv = C_GetTokenInfo(slots[i], &token_info)) != CKR_OK) { 89 (void) fprintf(stdout, fmt, token_info.label, 90 token_info.manufacturerID, token_info.serialNumber, 91 (token_info.flags & CKF_USER_PIN_TO_BE_CHANGED) ?
|
H A D | setpin.c | 120 CK_TOKEN_INFO token_info; local 137 if (C_GetTokenInfo(slot_id, &token_info) != CKR_OK) 140 pin_state = token_info.flags & CKF_USER_PIN_TO_BE_CHANGED; 142 token_name = (char *)token_info.label;
|
/opensolaris-onvv-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | utility.c | 352 td->token_info.manufacturerID, 353 strlen((char *)td->token_info.manufacturerID)); 355 slot_info.hardwareVersion = nv_token_data->token_info.hardwareVersion; 356 slot_info.firmwareVersion = nv_token_data->token_info.firmwareVersion; 371 CK_TOKEN_INFO *token_info = NULL; local 373 token_info = &td->token_info; 375 (void) memset(token_info->model, ' ', 376 sizeof (token_info->model)); 377 (void) memset(token_info [all...] |
H A D | loadsave.c | 485 READ_TOKEN_INFO_STR(fp, td->token_info.label, 486 sizeof (td->token_info.label)); 487 READ_TOKEN_INFO_STR(fp, td->token_info.manufacturerID, 488 sizeof (td->token_info.manufacturerID)); 489 READ_TOKEN_INFO_STR(fp, td->token_info.model, 490 sizeof (td->token_info.model)); 491 READ_TOKEN_INFO_STR(fp, td->token_info.serialNumber, 492 sizeof (td->token_info.serialNumber)); 493 READ_TOKEN_INFO_UINT32(fp, td->token_info.flags); 494 READ_TOKEN_INFO_UINT32(fp, td->token_info [all...] |
H A D | new_host.c | 263 (void) memcpy(pInfo, &nv_token_data->token_info, 405 if (newtoken.token_info.flags & CKF_SO_PIN_LOCKED) { 428 (void) strncpy((char *)newtoken.token_info.label, (char *)pLabel, 429 sizeof (newtoken.token_info.label)); 434 newtoken.token_info.flags |= CKF_TOKEN_INITIALIZED; 472 nv_token_data->token_info.flags) == TRUE) { 484 flags = &nv_token_data->token_info.flags; 529 nv_token_data->token_info.flags) == TRUE) { 768 flags = &nv_token_data->token_info.flags; 899 nv_token_data->token_info [all...] |
H A D | tpm_specific.c | 541 * Get details about the TPM to put into the token_info structure. 571 bzero(td->token_info.manufacturerID, 572 sizeof (td->token_info.manufacturerID)); 574 (void) memset(td->token_info.manufacturerID, ' ', 575 sizeof (td->token_info.manufacturerID) - 1); 577 (void) memcpy(td->token_info.manufacturerID, 580 (void) memset(td->token_info.label, ' ', 581 sizeof (td->token_info.label) - 1); 583 (void) memcpy(td->token_info.label, "TPM", 3); 585 td->token_info [all...] |
H A D | api_interface.c | 1361 &(td.token_info.manufacturerID), 1364 pInfo->flags = td.token_info.flags;
|
H A D | tpmtok_int.h | 372 CK_TOKEN_INFO token_info; member in struct:_TOKEN_DATA
|
/opensolaris-onvv-gate/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_metaslot.c | 63 CK_TOKEN_INFO token_info; local 203 rv = funcs->C_GetTokenInfo(METASLOT_ID, &token_info); 220 token_info.label, 221 token_info.manufacturerID, 222 token_info.model, 223 token_info.serialNumber, 224 token_info.hardwareVersion.major, 225 token_info.hardwareVersion.minor, 226 token_info.firmwareVersion.major, 227 token_info [all...] |
/opensolaris-onvv-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11tokens.c | 296 CK_TOKEN_INFO token_info; local 352 if (C_GetTokenInfo(slot_list[i], &token_info) != CKR_OK) { 358 max_sz = sizeof (token_info.label); 359 if (memcmp_pad_max(&(token_info.label), max_sz, token_name, 368 max_sz = sizeof ((char *)(token_info.manufacturerID)); 369 if (memcmp_pad_max(&(token_info.manufacturerID), max_sz, 382 max_sz = sizeof ((char *)(token_info.serialNumber)); 383 if (memcmp_pad_max(&(token_info.serialNumber), max_sz,
|
/opensolaris-onvv-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaSession.c | 514 CK_TOKEN_INFO token_info; local 560 rv = FUNCLIST(fw_st_id)->C_GetTokenInfo(true_id, &token_info); 566 if (token_info.flags & CKF_USER_PIN_TO_BE_CHANGED) {
|
/opensolaris-onvv-gate/usr/src/cmd/filebench/common/ |
H A D | auto_comp.c | 314 static ac_tokinfo_t token_info[] = { variable 1026 get_curtok = token_info[toktype].get_curtok; 1030 iterp = token_info[toktype].iter; 1031 cont_suffix = token_info[toktype].cont_suffix;
|
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/engine/ |
H A D | hw_pk11.c | 2964 CK_TOKEN_INFO token_info; 3031 rv = pFuncList->C_GetTokenInfo(current_slot, &token_info); 3036 fprintf(stderr, "%s: token label: %.32s\n", PK11_DBG, token_info.label); 3039 if (token_info.flags & CKF_RNG) 3065 rv = pFuncList->C_GetTokenInfo(current_slot, &token_info); 3070 fprintf(stderr, "%s: token label: %.32s\n", PK11_DBG, token_info.label); 3510 CK_TOKEN_INFO token_info; 3623 if (pflist->C_GetTokenInfo(pSlotList[i], &token_info) != CKR_OK) 3627 fprintf(stderr, "%s: token label: %.32s\n", PK11_DBG, token_info.label);
|
/opensolaris-onvv-gate/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_crypto_openssl.c | 3534 CK_TOKEN_INFO token_info; member in struct:_token_entry 3597 char tmplabel[sizeof (token_choices->token_array->token_info.label) + 1]; 3611 trim_token_label(&token_choices->token_array[i].token_info, tmplabel, 4197 token_choices.token_array[token_choices.numtokens].token_info = tinfo; 4233 if ((token_choices.token_array[0].token_info.flags & CKF_LOGIN_REQUIRED) && 4304 if ((token_choices.token_array[choice].token_info.flags & CKF_LOGIN_REQUIRED) && 4306 r = pkinit_login(context, cctx, &token_choices.token_array[choice].token_info);
|