/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | utility.c | 352 td->token_info.manufacturerID, in init_slot_info() 353 strlen((char *)td->token_info.manufacturerID)); in init_slot_info() 355 slot_info.hardwareVersion = nv_token_data->token_info.hardwareVersion; in init_slot_info() 356 slot_info.firmwareVersion = nv_token_data->token_info.firmwareVersion; in init_slot_info() 371 CK_TOKEN_INFO *token_info = NULL; in init_token_info() local 373 token_info = &td->token_info; in init_token_info() 375 (void) memset(token_info->model, ' ', in init_token_info() 376 sizeof (token_info->model)); in init_token_info() 377 (void) memset(token_info->serialNumber, ' ', in init_token_info() 378 sizeof (token_info->serialNumber)); in init_token_info() [all …]
|
H A D | loadsave.c | 485 READ_TOKEN_INFO_STR(fp, td->token_info.label, in load_token_data() 486 sizeof (td->token_info.label)); in load_token_data() 487 READ_TOKEN_INFO_STR(fp, td->token_info.manufacturerID, in load_token_data() 488 sizeof (td->token_info.manufacturerID)); in load_token_data() 489 READ_TOKEN_INFO_STR(fp, td->token_info.model, in load_token_data() 490 sizeof (td->token_info.model)); in load_token_data() 491 READ_TOKEN_INFO_STR(fp, td->token_info.serialNumber, in load_token_data() 492 sizeof (td->token_info.serialNumber)); in load_token_data() 493 READ_TOKEN_INFO_UINT32(fp, td->token_info.flags); in load_token_data() 494 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulMaxSessionCount); in load_token_data() [all …]
|
H A D | new_host.c | 263 (void) memcpy(pInfo, &nv_token_data->token_info, in SC_GetTokenInfo() 405 if (newtoken.token_info.flags & CKF_SO_PIN_LOCKED) { in SC_InitToken() 428 (void) strncpy((char *)newtoken.token_info.label, (char *)pLabel, in SC_InitToken() 429 sizeof (newtoken.token_info.label)); in SC_InitToken() 434 newtoken.token_info.flags |= CKF_TOKEN_INITIALIZED; in SC_InitToken() 472 nv_token_data->token_info.flags) == TRUE) { in SC_InitPIN() 484 flags = &nv_token_data->token_info.flags; in SC_InitPIN() 529 nv_token_data->token_info.flags) == TRUE) { in SC_SetPIN() 768 flags = &nv_token_data->token_info.flags; in SC_Login() 899 nv_token_data->token_info.flags) == TRUE) { in SC_CreateObject() [all …]
|
H A D | tpm_specific.c | 569 bzero(td->token_info.manufacturerID, in token_get_tpm_info() 570 sizeof (td->token_info.manufacturerID)); in token_get_tpm_info() 572 (void) memset(td->token_info.manufacturerID, ' ', in token_get_tpm_info() 573 sizeof (td->token_info.manufacturerID) - 1); in token_get_tpm_info() 575 (void) memcpy(td->token_info.manufacturerID, in token_get_tpm_info() 578 (void) memset(td->token_info.label, ' ', in token_get_tpm_info() 579 sizeof (td->token_info.label) - 1); in token_get_tpm_info() 581 (void) memcpy(td->token_info.label, "TPM", 3); in token_get_tpm_info() 583 td->token_info.hardwareVersion.major = tpmvinfo.version.major; in token_get_tpm_info() 584 td->token_info.hardwareVersion.minor = tpmvinfo.version.minor; in token_get_tpm_info() [all …]
|
H A D | api_interface.c | 1359 &(td.token_info.manufacturerID), in C_GetInfo() 1362 pInfo->flags = td.token_info.flags; in C_GetInfo()
|
H A D | tpmtok_int.h | 372 CK_TOKEN_INFO token_info; member
|
/titanic_41/usr/src/cmd/cmd-crypto/pktool/ |
H A D | tokens.c | 48 CK_TOKEN_INFO token_info; in pk_tokens() local 82 if ((rv = C_GetTokenInfo(slots[i], &token_info)) != CKR_OK) { in pk_tokens() 89 (void) fprintf(stdout, fmt, token_info.label, in pk_tokens() 90 token_info.manufacturerID, token_info.serialNumber, in pk_tokens() 91 (token_info.flags & CKF_USER_PIN_TO_BE_CHANGED) ? in pk_tokens()
|
H A D | setpin.c | 121 CK_TOKEN_INFO token_info; in setpin_pkcs11() local 138 if (C_GetTokenInfo(slot_id, &token_info) != CKR_OK) in setpin_pkcs11() 141 pin_state = token_info.flags & CKF_USER_PIN_TO_BE_CHANGED; in setpin_pkcs11() 143 token_name = (char *)token_info.label; in setpin_pkcs11()
|
/titanic_41/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_metaslot.c | 63 CK_TOKEN_INFO token_info; in list_metaslot_info() local 203 rv = funcs->C_GetTokenInfo(METASLOT_ID, &token_info); in list_metaslot_info() 220 token_info.label, in list_metaslot_info() 221 token_info.manufacturerID, in list_metaslot_info() 222 token_info.model, in list_metaslot_info() 223 token_info.serialNumber, in list_metaslot_info() 224 token_info.hardwareVersion.major, in list_metaslot_info() 225 token_info.hardwareVersion.minor, in list_metaslot_info() 226 token_info.firmwareVersion.major, in list_metaslot_info() 227 token_info.firmwareVersion.minor, in list_metaslot_info() [all …]
|
/titanic_41/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11tokens.c | 296 CK_TOKEN_INFO token_info; in kmf_pk11_token_lookup() local 352 if (C_GetTokenInfo(slot_list[i], &token_info) != CKR_OK) { in kmf_pk11_token_lookup() 358 max_sz = sizeof (token_info.label); in kmf_pk11_token_lookup() 359 if (memcmp_pad_max(&(token_info.label), max_sz, token_name, in kmf_pk11_token_lookup() 368 max_sz = sizeof ((char *)(token_info.manufacturerID)); in kmf_pk11_token_lookup() 369 if (memcmp_pad_max(&(token_info.manufacturerID), max_sz, in kmf_pk11_token_lookup() 382 max_sz = sizeof ((char *)(token_info.serialNumber)); in kmf_pk11_token_lookup() 383 if (memcmp_pad_max(&(token_info.serialNumber), max_sz, in kmf_pk11_token_lookup()
|
/titanic_41/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaSession.c | 514 CK_TOKEN_INFO token_info; in meta_Login() local 560 rv = FUNCLIST(fw_st_id)->C_GetTokenInfo(true_id, &token_info); in meta_Login() 566 if (token_info.flags & CKF_USER_PIN_TO_BE_CHANGED) { in meta_Login()
|
/titanic_41/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_crypto_openssl.c | 3535 CK_TOKEN_INFO token_info; member 3598 char tmplabel[sizeof (token_choices->token_array->token_info.label) + 1]; in pkinit_choose_tokens() 3612 trim_token_label(&token_choices->token_array[i].token_info, tmplabel, in pkinit_choose_tokens() 4198 token_choices.token_array[token_choices.numtokens].token_info = tinfo; in pkinit_open_session() 4234 if ((token_choices.token_array[0].token_info.flags & CKF_LOGIN_REQUIRED) && in pkinit_open_session() 4305 if ((token_choices.token_array[choice].token_info.flags & CKF_LOGIN_REQUIRED) && in pkinit_open_session() 4307 r = pkinit_login(context, cctx, &token_choices.token_array[choice].token_info); in pkinit_open_session()
|