Lines Matching defs:libname

184 list_mechlist_for_lib(char *libname, mechlist_t *mlist,
207 if (libname == NULL) {
210 cryptodebug("list_mechlist_for_lib() - libname is NULL.");
215 if ((puent = getent_uef(libname)) == NULL) {
217 gettext("%s does not exist."), libname);
223 if (strlcpy(buf, libname, sizeof (buf)) >= sizeof (buf)) {
225 libname);
234 (void) strlcpy(libpath, libname, sizeof (libpath));
247 libname, dl_error != NULL ? dl_error : "Unknown");
256 "from %s", libname);
265 libname);
274 "return code = %d", libname, rv);
287 cryptodebug("failed to get the slotlist from %s.", libname);
293 libname);
310 libname);
341 cryptodebug("failed to get slotinfo from %s", libname);
373 "token info from %s", libname);
408 "from %s.", libname);
432 "from %s.", libname);
464 libname);
497 "%s: failed to retrieve the mechanism list.\n"), libname);
520 list_policy_for_lib(char *libname)
525 if (libname == NULL) {
528 cryptodebug("list_policy_for_lib() - libname is NULL.");
533 if ((puent = getent_uef(libname)) == NULL) {
535 gettext("%s does not exist."), libname);
551 disable_uef_lib(char *libname, boolean_t rndflag, boolean_t allflag,
557 if (libname == NULL) {
560 cryptodebug("disable_uef_lib() - libname is NULL.");
565 if ((puent = getent_uef(libname)) == NULL) {
567 gettext("%s does not exist."), libname);
630 enable_uef_lib(char *libname, boolean_t rndflag, boolean_t allflag,
636 if (libname == NULL) {
639 cryptodebug("enable_uef_lib() - libname is NULL.");
644 if ((puent = getent_uef(libname)) == NULL) {
646 gettext("%s does not exist."), libname);
710 install_uef_lib(char *libname)
718 if (libname == NULL) {
721 cryptodebug("install_uef_lib() - libname is NULL.");
726 if ((puent = getent_uef(libname)) != NULL) {
728 libname);
737 if (strlcpy(libbuf, libname, MAXPATHLEN) >= MAXPATHLEN) {
739 gettext("the provider name is too long - %s"), libname);
749 (void) strlcpy(libpath, libname, sizeof (libpath));
756 libname);
761 cryptoerror(LOG_STDERR, gettext("%s not found"), libname);
765 /* Need to add "\n" to libname for adding into the config file */
766 if (strlcat(libname, "\n", MAXPATHLEN) >= MAXPATHLEN) {
768 "can not install %s; the name is too long."), libname);
772 return (update_conf(_PATH_PKCS11_CONF, libname));
781 uninstall_uef_lib(char *libname)
795 if (libname == NULL) {
798 cryptodebug("uninstall_uef_lib() - libname is NULL.");
803 if ((puent = getent_uef(libname)) == NULL) {
805 gettext("%s does not exist."), libname);
885 } else if (strcmp(libname, name) == 0) {
894 "%s%s%s", "#", libname, "\n");