Lines Matching defs:puent

71 	uentry_t *puent;
79 if ((puent = getent_uef(METASLOT_KEYWORD)) == NULL) {
92 (void) printf(gettext("Status: %s\n"), puent->flag_metaslot_enabled ?
95 puent->flag_metaslot_auto_key_migrate ? gettext("enabled") :
99 if (memcmp(puent->metaslot_ks_slot, buf, SLOT_DESCRIPTION_SIZE) != 0) {
101 puent->metaslot_ks_slot);
104 if (memcmp(puent->metaslot_ks_token, buf, TOKEN_LABEL_SIZE) != 0) {
106 puent->metaslot_ks_token);
334 uentry_t *puent;
337 if ((puent = getent_uef(METASLOT_KEYWORD)) == NULL) {
343 rc = display_policy(puent);
345 free_uentry(puent);
363 uentry_t *puent;
366 if ((puent = getent_uef(METASLOT_KEYWORD)) == NULL) {
375 puent->flag_metaslot_enabled = B_FALSE;
381 puent->flag_metaslot_auto_key_migrate = B_FALSE;
390 free_umechlist(puent->policylist);
391 puent->policylist = NULL;
392 puent->count = 0;
393 puent->flag_enabledlist = B_TRUE;
396 if (puent->flag_enabledlist == B_TRUE) {
403 rc = update_policylist(puent, mechlist, DELETE_MODE);
411 rc = update_policylist(puent, mechlist, ADD_MODE);
420 if ((puent->flag_enabledlist) && (puent->count == 0)) {
421 puent->flag_metaslot_enabled = B_FALSE;
426 rc = update_pkcs11conf(puent);
429 free_uentry(puent);
451 uentry_t *puent;
454 if ((puent = getent_uef(METASLOT_KEYWORD)) == NULL) {
460 puent->flag_metaslot_enabled = B_TRUE;
464 puent->flag_metaslot_auto_key_migrate = B_TRUE;
473 free_umechlist(puent->policylist);
474 puent->policylist = NULL;
475 puent->count = 0;
476 puent->flag_enabledlist = B_FALSE;
480 if (puent->flag_enabledlist == B_TRUE) {
487 rc = update_policylist(puent, mechlist,
496 rc = update_policylist(puent, mechlist,
511 (void) bzero((char *)puent->metaslot_ks_token, TOKEN_LABEL_SIZE);
512 (void) bzero((char *)puent->metaslot_ks_slot, SLOT_DESCRIPTION_SIZE);
515 (void) strlcpy((char *)puent->metaslot_ks_token,
517 (void) strlcpy((char *)puent->metaslot_ks_slot,
522 (void) strlcpy((char *)puent->metaslot_ks_token, token,
527 (void) strlcpy((char *)puent->metaslot_ks_slot, slot,
535 rc = update_pkcs11conf(puent);
538 free_uentry(puent);