summaryrefslogtreecommitdiff
path: root/usr.bin/sectok/cyberflex.c
diff options
context:
space:
mode:
authorJim Rees <rees@cvs.openbsd.org>2001-07-29 21:43:49 +0000
committerJim Rees <rees@cvs.openbsd.org>2001-07-29 21:43:49 +0000
commit589aee2811dab0bb5196c37ef7ba2de6a497be8a (patch)
tree2684b3ec35415ed3ae7b4e4e7c9a5e7e7a9fe490 /usr.bin/sectok/cyberflex.c
parentb00ea12075e984bd8857962507547769a8ad17dd (diff)
linux mods
Diffstat (limited to 'usr.bin/sectok/cyberflex.c')
-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"