summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrees <rees@openbsd.org>2001-07-29 21:43:48 +0000
committerrees <rees@openbsd.org>2001-07-29 21:43:48 +0000
commit1fde76a9d752dfb0de40c158c2c00f3ab8ee0c91 (patch)
tree5d8f45aaafa4be3d0dcb368310fae8c1620f320c
parentMinor style pedentry from ben@arbor.net plus some of my own and sync (diff)
downloadwireguard-openbsd-1fde76a9d752dfb0de40c158c2c00f3ab8ee0c91.tar.xz
wireguard-openbsd-1fde76a9d752dfb0de40c158c2c00f3ab8ee0c91.zip
linux mods
-rw-r--r--usr.bin/sectok/cyberflex.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/sectok/cyberflex.c b/usr.bin/sectok/cyberflex.c
index 68a0aaf852d..0f12c75e652 100644
--- a/usr.bin/sectok/cyberflex.c
+++ b/usr.bin/sectok/cyberflex.c
@@ -1,4 +1,4 @@
-/* $Id: cyberflex.c,v 1.16 2001/07/27 14:13:08 rees Exp $ */
+/* $Id: cyberflex.c,v 1.17 2001/07/29 21:43:48 rees Exp $ */
/*
copyright 1999, 2000
@@ -37,12 +37,17 @@ such damages.
#include <signal.h>
#include <string.h>
#include <fcntl.h>
-#ifdef __linux
#include <openssl/des.h>
-#else /* __linux */
#include <des.h>
-#endif
+#ifdef __linux
+#include <sha.h>
+#define SHA1_CTX SHA_CTX
+#define SHA1Init SHA1_Init
+#define SHA1Update SHA1_Update
+#define SHA1Final SHA1_Final
+#else /* __linux */
#include <sha1.h>
+#endif
#include <sectok.h>
#include "sc.h"