- if((dlhandle = dlopen(PKGLIBDIR "libblowfish.so.0", RTLD_LAZY)) == NULL)
- {
- syslog(LOG_ERR, "%s: %m", PKGLIBDIR "libblowfish.so.0");
- return -1;
- }
-
- blowfish_cfb64_encrypt = dlsym(dlhandle, "BF_cfb64_encrypt");
- if((error = dlerror()) != NULL)
- {
- syslog(LOG_ERR, "%s", error);
- return -1;
- }
- blowfish_set_key = dlsym(dlhandle, "BF_set_key");