X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=cipher%2Fcipher.c;h=c9b7e3f5ac50d310768132f0245f913c2ea81227;hp=bf74519c5b00a9d3d1e601162a7cf844520c5f57;hb=2228b16159a7aff64e6559ee1635716154e67fe6;hpb=1243156a5e03a666b36bc4400f1402243a85c9a7 diff --git a/cipher/cipher.c b/cipher/cipher.c index bf74519c..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,8 +25,7 @@ #include -#include "blowfish/blowfish.h" -#include "idea/idea.h" +#include #include "net.h" @@ -89,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; }