aab35a3fe8
Patch from Debian bug tracker, via <veego>.
29 lines
733 B
Text
29 lines
733 B
Text
$NetBSD: patch-ab,v 1.2 2005/12/11 18:26:03 salo Exp $
|
|
|
|
--- sshcrypto.c.orig 2000-11-28 22:23:28.000000000 +0100
|
|
+++ sshcrypto.c
|
|
@@ -14,6 +14,8 @@
|
|
|
|
#include <sys/types.h>
|
|
#include <openssl/ssl.h>
|
|
+#include <openssl/blowfish.h>
|
|
+#include <openssl/des.h>
|
|
|
|
#include <err.h>
|
|
#include <stdio.h>
|
|
@@ -21,6 +23,15 @@
|
|
|
|
#include "sshcrypto.h"
|
|
|
|
+#if OPENSSL_VERSION_NUMBER > 0x00907000L
|
|
+#define des_cblock DES_cblock
|
|
+#define des_key_schedule DES_key_schedule
|
|
+
|
|
+#define des_set_key(key,schedule) DES_set_key(key,&schedule)
|
|
+#define des_ncbc_encrypt(input,output,length,schedule,ivec,enc) \
|
|
+ DES_ncbc_encrypt(input,output,length,&schedule,ivec,enc)
|
|
+#endif
|
|
+
|
|
struct blowfish_state {
|
|
struct bf_key_st key;
|
|
u_char iv[8];
|