Lines Matching defs:puent
196 uentry_t *puent = NULL;
215 if ((puent = getent_uef(libname)) == NULL) {
220 free_uentry(puent);
522 uentry_t *puent = NULL;
533 if ((puent = getent_uef(libname)) == NULL) {
540 rc = print_uef_policy(puent);
541 free_uentry(puent);
554 uentry_t *puent;
565 if ((puent = getent_uef(libname)) == NULL) {
581 free_umechlist(puent->policylist);
582 puent->policylist = NULL;
583 puent->count = 0;
584 puent->flag_enabledlist = B_TRUE;
587 if (puent->flag_enabledlist == B_TRUE) {
594 rc = update_policylist(puent, marglist, DELETE_MODE);
602 rc = update_policylist(puent, marglist, ADD_MODE);
612 puent->flag_norandom = B_TRUE;
615 free_uentry(puent);
620 rc = update_pkcs11conf(puent);
621 free_uentry(puent);
633 uentry_t *puent;
644 if ((puent = getent_uef(libname)) == NULL) {
661 free_umechlist(puent->policylist);
662 puent->policylist = NULL;
663 puent->count = 0;
664 puent->flag_enabledlist = B_FALSE;
667 if (puent->flag_enabledlist == B_TRUE) {
674 rc = update_policylist(puent, marglist, ADD_MODE);
682 rc = update_policylist(puent, marglist, DELETE_MODE);
692 puent->flag_norandom = B_FALSE;
695 free_uentry(puent);
700 rc = update_pkcs11conf(puent);
701 free_uentry(puent);
712 uentry_t *puent;
726 if ((puent = getent_uef(libname)) != NULL) {
729 free_uentry(puent);
783 uentry_t *puent;
803 if ((puent = getent_uef(libname)) == NULL) {
808 free_uentry(puent);
966 display_policy(uentry_t *puent)
972 if (puent == NULL) {
976 if (puent->flag_enabledlist == B_FALSE) {
978 puent->name);
979 ptr = puent->policylist;
1010 } else { /* puent->flag_enabledlist == B_TRUE */
1012 puent->name);
1013 ptr = puent->policylist;
1045 * Print out the mechanism policy for a user-level provider pointed by puent.
1048 print_uef_policy(uentry_t *puent)
1052 if (puent == NULL) {
1057 if (list_mechlist_for_lib(puent->name, NULL, &rng_flag, B_TRUE,
1060 gettext("%s internal error."), puent->name);
1064 if (display_policy(puent) != SUCCESS) {
1069 if (puent->flag_norandom == B_TRUE)
1122 update_pkcs11conf(uentry_t *puent)
1135 if (puent == NULL) {
1215 } else if (strcmp(puent->name, name) == 0) {
1225 if ((str = uent2str(puent)) == NULL) {
1302 uent2str(uentry_t *puent)
1309 if (puent == NULL) {
1321 if (strlcpy(buf, puent->name, BUFSIZ) >= BUFSIZ) {
1328 if (puent->flag_enabledlist == B_TRUE) {
1339 phead = puent->policylist;
1356 } else if (puent->policylist != NULL) {
1366 phead = puent->policylist;
1385 if (puent->flag_norandom == B_TRUE) {
1398 if (strcmp(puent->name, METASLOT_KEYWORD) == 0) {
1412 if (puent->flag_metaslot_enabled) {
1439 if (puent->flag_metaslot_auto_key_migrate) {
1454 if (memcmp(puent->metaslot_ks_token, blank_buf,
1469 (const char *)puent->metaslot_ks_token, BUFSIZ)
1477 if (memcmp(puent->metaslot_ks_slot, blank_buf,
1492 (const char *)puent->metaslot_ks_slot, BUFSIZ)
1516 update_policylist(uentry_t *puent, mechlist_t *marglist, int update_mode)
1526 if ((puent == NULL) || (marglist == NULL)) {
1529 cryptodebug("update_policylist()- puent or marglist is NULL.");
1568 phead = pcur = puent->policylist;
1580 puent->policylist =
1581 puent->policylist->next;
1587 puent->count--;
1588 if (puent->count == 0) {
1589 puent->policylist = NULL;
1594 puent->policylist)) {
1600 phead = puent->policylist;
1601 puent->policylist = pumech;
1603 puent->count++;