summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-06-17 21:15:20 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-06-17 21:15:20 +1000
commitf0bd352429f26f99b7bdacd23baf46b39a9f600a (patch)
treec63da8cd98b4c07fe502aa0fe49b2178d76c7367
parenteccb9de72aa29da5a3fad87a4287b32438689c1f (diff)
- (dtucker) [cipher.c openbsd-compat/openbsd-compat.h
openbsd-compat/openssl-compat.c] only include openssl compat stuff where it's needed as it can cause conflicts elsewhere (eg xcrypt.c). Found by and ok tim@ ---------------------------------------------------------------------- automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: ----------------------------------------------------------------------
-rw-r--r--ChangeLog6
-rw-r--r--cipher.c3
-rw-r--r--openbsd-compat/openbsd-compat.h5
-rw-r--r--openbsd-compat/openssl-compat.c6
4 files changed, 13 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index f3c3c93ba..3cfba58a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,10 @@
17 make this -Wsign-compare clean; ok avsm@ markus@ 17 make this -Wsign-compare clean; ok avsm@ markus@
18 NB. auth1.c changes not committed yet (conflicts with uncommitted sync) 18 NB. auth1.c changes not committed yet (conflicts with uncommitted sync)
19 NB2. more work may be needed to make portable Wsign-compare clean 19 NB2. more work may be needed to make portable Wsign-compare clean
20 - (dtucker) [cipher.c openbsd-compat/openbsd-compat.h
21 openbsd-compat/openssl-compat.c] only include openssl compat stuff where
22 it's needed as it can cause conflicts elsewhere (eg xcrypt.c). Found by
23 and ok tim@
20 24
2120050616 2520050616
22 - (djm) OpenBSD CVS Sync 26 - (djm) OpenBSD CVS Sync
@@ -2734,4 +2738,4 @@
2734 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 2738 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
2735 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 2739 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
2736 2740
2737$Id: ChangeLog,v 1.3823 2005/06/17 02:59:34 djm Exp $ 2741$Id: ChangeLog,v 1.3824 2005/06/17 11:15:20 dtucker Exp $
diff --git a/cipher.c b/cipher.c
index 20d0a80c4..fc1e2ae1c 100644
--- a/cipher.c
+++ b/cipher.c
@@ -43,6 +43,9 @@ RCSID("$OpenBSD: cipher.c,v 1.76 2005/06/17 02:44:32 djm Exp $");
43 43
44#include <openssl/md5.h> 44#include <openssl/md5.h>
45 45
46/* compatibility with old or broken OpenSSL versions */
47#include "openbsd-compat/openssl-compat.h"
48
46extern const EVP_CIPHER *evp_ssh1_bf(void); 49extern const EVP_CIPHER *evp_ssh1_bf(void);
47extern const EVP_CIPHER *evp_ssh1_3des(void); 50extern const EVP_CIPHER *evp_ssh1_3des(void);
48extern void ssh1_3des_iv(EVP_CIPHER_CTX *, int, u_char *, int); 51extern void ssh1_3des_iv(EVP_CIPHER_CTX *, int, u_char *, int);
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index f468d5aab..e66f5ec55 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openbsd-compat.h,v 1.28 2005/06/09 11:45:11 dtucker Exp $ */ 1/* $Id: openbsd-compat.h,v 1.29 2005/06/17 11:15:21 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved. 4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved.
@@ -168,9 +168,6 @@ char *shadow_pw(struct passwd *pw);
168/* rfc2553 socket API replacements */ 168/* rfc2553 socket API replacements */
169#include "fake-rfc2553.h" 169#include "fake-rfc2553.h"
170 170
171/* compatibility with old or broken OpenSSL versions */
172#include "openssl-compat.h"
173
174/* Routines for a single OS platform */ 171/* Routines for a single OS platform */
175#include "bsd-cray.h" 172#include "bsd-cray.h"
176#include "bsd-cygwin_util.h" 173#include "bsd-cygwin_util.h"
diff --git a/openbsd-compat/openssl-compat.c b/openbsd-compat/openssl-compat.c
index 10b4d1d74..b690e8fe6 100644
--- a/openbsd-compat/openssl-compat.c
+++ b/openbsd-compat/openssl-compat.c
@@ -1,4 +1,4 @@
1/* $Id: openssl-compat.c,v 1.1 2005/06/09 11:45:11 dtucker Exp $ */ 1/* $Id: openssl-compat.c,v 1.2 2005/06/17 11:15:21 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au> 4 * Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au>
@@ -16,9 +16,11 @@
16 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */ 17 */
18 18
19#define SSH_DONT_REDEF_EVP
20#include "includes.h" 19#include "includes.h"
21 20
21#define SSH_DONT_REDEF_EVP
22#include "openssl-compat.h"
23
22#ifdef SSH_OLD_EVP 24#ifdef SSH_OLD_EVP
23int 25int
24ssh_EVP_CipherInit(EVP_CIPHER_CTX *evp, const EVP_CIPHER *type, 26ssh_EVP_CipherInit(EVP_CIPHER_CTX *evp, const EVP_CIPHER *type,