summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-10-15 10:18:43 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-10-15 10:18:43 +0000
commit89306d994fe40773e352c112b7fa88c304e8ffe9 (patch)
treeff163bb612b75e16312b655956e852e998b971fc /gnu
parentb3298c6a74262bc14f1776c9b440c15dbbf0127e (diff)
Switch the remaining users of libdes in src to libcrypto,
telnet portion partially from the latest heimdal. ok mikeb@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cvs/configure4
-rw-r--r--gnu/usr.bin/cvs/configure.in4
-rw-r--r--gnu/usr.bin/cvs/src/server.c10
3 files changed, 9 insertions, 9 deletions
diff --git a/gnu/usr.bin/cvs/configure b/gnu/usr.bin/cvs/configure
index 520c8425a06..e11e0cdaeb9 100644
--- a/gnu/usr.bin/cvs/configure
+++ b/gnu/usr.bin/cvs/configure
@@ -4021,9 +4021,9 @@ EOF
includeopt="${includeopt} -I$GSSAPI/include/kerberosV"
# FIXME: This is ugly, but these things don't seem to be standardized.
if test "$ac_cv_header_gssapi_h" = "yes"; then
- LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lcrypto -ldes"
+ LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lcrypto"
else
- LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -ldes -lcom_err"
+ LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
fi
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="-I$GSSAPI/include/kerberosV $CPPFLAGS"
diff --git a/gnu/usr.bin/cvs/configure.in b/gnu/usr.bin/cvs/configure.in
index dd9daf46a45..0f6cc741dc5 100644
--- a/gnu/usr.bin/cvs/configure.in
+++ b/gnu/usr.bin/cvs/configure.in
@@ -295,9 +295,9 @@ if test "$ac_cv_header_krb5_h" = "yes" &&
includeopt="${includeopt} -I$GSSAPI/include/kerberosV"
# FIXME: This is ugly, but these things don't seem to be standardized.
if test "$ac_cv_header_gssapi_h" = "yes"; then
- LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lcrypto -ldes"
+ LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lcrypto"
else
- LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -ldes -lcom_err"
+ LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
fi
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="-I$GSSAPI/include/kerberosV $CPPFLAGS"
diff --git a/gnu/usr.bin/cvs/src/server.c b/gnu/usr.bin/cvs/src/server.c
index 78f7a3852c2..da7540f57bb 100644
--- a/gnu/usr.bin/cvs/src/server.c
+++ b/gnu/usr.bin/cvs/src/server.c
@@ -6416,8 +6416,8 @@ krb_encrypt_input (fnclosure, input, output, size)
struct krb_encrypt_data *kd = (struct krb_encrypt_data *) fnclosure;
int tcount;
- des_cbc_encrypt ((C_Block *) input, (C_Block *) output,
- size, kd->sched, &kd->block, 0);
+ DES_cbc_encrypt ((C_Block *) input, (C_Block *) output,
+ size, &kd->sched, &kd->block, 0);
/* SIZE is the size of the buffer, which is set by the encryption
routine. The packetizing buffer will arrange for the first two
@@ -6456,15 +6456,15 @@ krb_encrypt_output (fnclosure, input, output, size, translated)
the packetizing buffer. */
aligned = (size + 7) & ~7;
- /* We use des_cbc_encrypt rather than krb_mk_priv because the
+ /* We use DES_cbc_encrypt rather than krb_mk_priv because the
latter sticks a timestamp in the block, and krb_rd_priv expects
that timestamp to be within five minutes of the current time.
Given the way the CVS server buffers up data, that can easily
fail over a long network connection. We trust krb_recvauth to
guard against a replay attack. */
- des_cbc_encrypt ((C_Block *) input, (C_Block *) output, aligned,
- kd->sched, &kd->block, 1);
+ DES_cbc_encrypt ((C_Block *) input, (C_Block *) output, aligned,
+ &kd->sched, &kd->block, 1);
*translated = aligned;