X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=cipher%2Fcipher.c;h=c9b7e3f5ac50d310768132f0245f913c2ea81227;hp=afe173ad625f53267aff5887561568e9f7f44edc;hb=2228b16159a7aff64e6559ee1635716154e67fe6;hpb=cfecc82c9a3f5e8c4648eec058da2c6427cd76af diff --git a/cipher/cipher.c b/cipher/cipher.c index afe173ad..c9b7e3f5 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -1,6 +1,6 @@ /* cipher.c -- wrapper functions for encryption algorithms - Copyright (C) 1999 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 @@ -25,7 +25,7 @@ #include -#include "blowfish/blowfish.h" +#include #include "net.h" @@ -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; }