diff options
author | markm <markm@FreeBSD.org> | 2000-02-24 21:10:28 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-02-24 21:10:28 +0000 |
commit | 4dfdc66cab217db1c43f8f5db234a731900d85b0 (patch) | |
tree | f8ea8e6a6680b0fc9f39e56667dfb083b48e64dd /usr.sbin/keyserv | |
parent | 7926f9a427cf41d969d72340286db7efb8743a66 (diff) | |
download | FreeBSD-src-4dfdc66cab217db1c43f8f5db234a731900d85b0.zip FreeBSD-src-4dfdc66cab217db1c43f8f5db234a731900d85b0.tar.gz |
Use libcrypto instead of libdes.
Diffstat (limited to 'usr.sbin/keyserv')
-rw-r--r-- | usr.sbin/keyserv/crypt_server.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/keyserv/crypt_server.c b/usr.sbin/keyserv/crypt_server.c index 79b7923..51024b6 100644 --- a/usr.sbin/keyserv/crypt_server.c +++ b/usr.sbin/keyserv/crypt_server.c @@ -170,11 +170,11 @@ static void *dlhandle; #define _PATH_USRLIB "/usr/lib" #endif -#ifndef LIBDES +#ifndef LIBCRYPTO #ifdef OBJFORMAT_ELF -#define LIBDES "libdes.so.3" +#define LIBCRYPTO "libcrypto.so.1" #else -#define LIBDES "libdes.so.3." +#define LIBCRYPTO "libcrypto.so.1." #endif /* OBJFORMAT_ELF */ #endif @@ -190,9 +190,9 @@ void load_des(warn, libpath) if (libpath == NULL) { #ifdef OBJFORMAT_ELF - snprintf(dlpath, sizeof(dlpath), "%s/%s", _PATH_USRLIB, LIBDES); + snprintf(dlpath, sizeof(dlpath), "%s/%s", _PATH_USRLIB, LIBCRYPTO); #else - len = strlen(LIBDES); + len = strlen(LIBCRYPTO); if ((dird = opendir(_PATH_USRLIB)) == NULL) err(1, "opendir(/usr/lib) failed"); @@ -200,7 +200,7 @@ void load_des(warn, libpath) /* must have a minor number */ if (strlen(dirp->d_name) <= len) continue; - if (!strncmp(dirp->d_name, LIBDES, len)) { + if (!strncmp(dirp->d_name, LIBCRYPTO, len)) { if (atoi((dirp->d_name + len + 1)) > minor) { minor = atoi((dirp->d_name + len + 1)); snprintf(dlpath,sizeof(dlpath),"%s/%s", |