Lines Matching refs:libname

181 list_mechlist_for_lib(char *libname, mechlist_t *mlist,
204 if (libname == NULL) {
207 cryptodebug("list_mechlist_for_lib() - libname is NULL.");
212 if ((puent = getent_uef(libname)) == NULL) {
214 gettext("%s does not exist."), libname);
220 if (strlcpy(buf, libname, sizeof (buf)) >= sizeof (buf)) {
222 libname);
231 (void) strlcpy(libpath, libname, sizeof (libpath));
244 libname, dl_error != NULL ? dl_error : "Unknown");
253 "from %s", libname);
262 libname);
271 "return code = %d", libname, rv);
284 cryptodebug("failed to get the slotlist from %s.", libname);
290 libname);
307 libname);
338 cryptodebug("failed to get slotinfo from %s", libname);
370 "token info from %s", libname);
405 "from %s.", libname);
429 "from %s.", libname);
461 libname);
494 "%s: failed to retrieve the mechanism list.\n"), libname);
517 list_policy_for_lib(char *libname)
522 if (libname == NULL) {
525 cryptodebug("list_policy_for_lib() - libname is NULL.");
530 if ((puent = getent_uef(libname)) == NULL) {
532 gettext("%s does not exist."), libname);
548 disable_uef_lib(char *libname, boolean_t rndflag, boolean_t allflag,
554 if (libname == NULL) {
557 cryptodebug("disable_uef_lib() - libname is NULL.");
562 if ((puent = getent_uef(libname)) == NULL) {
564 gettext("%s does not exist."), libname);
627 enable_uef_lib(char *libname, boolean_t rndflag, boolean_t allflag,
633 if (libname == NULL) {
636 cryptodebug("enable_uef_lib() - libname is NULL.");
641 if ((puent = getent_uef(libname)) == NULL) {
643 gettext("%s does not exist."), libname);
707 install_uef_lib(char *libname)
715 if (libname == NULL) {
718 cryptodebug("install_uef_lib() - libname is NULL.");
723 if ((puent = getent_uef(libname)) != NULL) {
725 libname);
734 if (strlcpy(libbuf, libname, MAXPATHLEN) >= MAXPATHLEN) {
736 gettext("the provider name is too long - %s"), libname);
746 (void) strlcpy(libpath, libname, sizeof (libpath));
753 libname);
758 cryptoerror(LOG_STDERR, gettext("%s not found"), libname);
762 /* Need to add "\n" to libname for adding into the config file */
763 if (strlcat(libname, "\n", MAXPATHLEN) >= MAXPATHLEN) {
765 "can not install %s; the name is too long."), libname);
769 return (update_conf(_PATH_PKCS11_CONF, libname));
778 uninstall_uef_lib(char *libname)
792 if (libname == NULL) {
795 cryptodebug("uninstall_uef_lib() - libname is NULL.");
800 if ((puent = getent_uef(libname)) == NULL) {
802 gettext("%s does not exist."), libname);
882 } else if (strcmp(libname, name) == 0) {
891 "%s%s%s", "#", libname, "\n");