X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=cipher%2Fcipher.c;h=3f8593d3bbf07a7a77456f694657c745c922e590;hp=c504b7e76c618891a9a6988ac10e6c701fd595c8;hb=ae17572e6b94c6e7a2123ddeb45bf66d389ac7a0;hpb=4dde583bc91985c3ff19ac1d1f1bc791b50658ff diff --git a/cipher/cipher.c b/cipher/cipher.c index c504b7e7..3f8593d3 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -1,6 +1,6 @@ /* cipher.c -- wrapper functions for encryption algorithms - Copyright (C) 1999,2000 Ivo Timmermans + Copyright (C) 1999,2000 Ivo Timmermans This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -88,19 +88,8 @@ int cipher_init(int which) void *dlhandle; char *error; - 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"); + blowfish_cfb64_encrypt = BF_cfb64_encrypt; + blowfish_set_key = BF_set_key; return 0; }