summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--defines.h7
-rw-r--r--key.c1
-rw-r--r--openbsd-compat/openssl-compat.h7
4 files changed, 11 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 72261d650..660c1b873 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
5 openbsd-compat/openssl-compat.{c,h}] Bug #1437 Move the OpenSSL compat 5 openbsd-compat/openssl-compat.{c,h}] Bug #1437 Move the OpenSSL compat
6 header to after OpenSSL headers, since some versions of OpenSSL have 6 header to after OpenSSL headers, since some versions of OpenSSL have
7 SSLeay_add_all_algorithms as a macro already. 7 SSLeay_add_all_algorithms as a macro already.
8 - (dtucker) [key.c defines.h openbsd-compat/openssl-compat.h] Move old OpenSSL
9 compat glue into openssl-compat.h.
8 10
920080225 1120080225
10 - (dtucker) [openbsd-compat/fake-rfc2553.h] rename ssh_gai_strerror hack 12 - (dtucker) [openbsd-compat/fake-rfc2553.h] rename ssh_gai_strerror hack
@@ -3635,4 +3637,4 @@
3635 OpenServer 6 and add osr5bigcrypt support so when someone migrates 3637 OpenServer 6 and add osr5bigcrypt support so when someone migrates
3636 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 3638 passwords between UnixWare and OpenServer they will still work. OK dtucker@
3637 3639
3638$Id: ChangeLog,v 1.4843 2008/02/28 08:13:52 dtucker Exp $ 3640$Id: ChangeLog,v 1.4844 2008/02/28 08:22:04 dtucker Exp $
diff --git a/defines.h b/defines.h
index 595908310..ac19095a2 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.145 2007/09/26 21:03:20 dtucker Exp $ */ 28/* $Id: defines.h,v 1.146 2008/02/28 08:22:04 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -567,11 +567,6 @@ struct winsize {
567# define CUSTOM_SSH_AUDIT_EVENTS 567# define CUSTOM_SSH_AUDIT_EVENTS
568#endif 568#endif
569 569
570/* OPENSSL_free() is Free() in versions before OpenSSL 0.9.6 */
571#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090600f)
572# define OPENSSL_free(x) Free(x)
573#endif
574
575#if !defined(HAVE___func__) && defined(HAVE___FUNCTION__) 570#if !defined(HAVE___func__) && defined(HAVE___FUNCTION__)
576# define __func__ __FUNCTION__ 571# define __func__ __FUNCTION__
577#elif !defined(HAVE___func__) 572#elif !defined(HAVE___func__)
diff --git a/key.c b/key.c
index 8fef9b40f..62bf8361d 100644
--- a/key.c
+++ b/key.c
@@ -38,6 +38,7 @@
38#include <sys/types.h> 38#include <sys/types.h>
39 39
40#include <openssl/evp.h> 40#include <openssl/evp.h>
41#include <openbsd-compat/openssl-compat.h>
41 42
42#include <stdarg.h> 43#include <stdarg.h>
43#include <stdio.h> 44#include <stdio.h>
diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h
index f53695aa8..6a1bed5b2 100644
--- a/openbsd-compat/openssl-compat.h
+++ b/openbsd-compat/openssl-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openssl-compat.h,v 1.11 2008/02/28 08:13:52 dtucker Exp $ */ 1/* $Id: openssl-compat.h,v 1.12 2008/02/28 08:22:04 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>
@@ -19,6 +19,11 @@
19#include "includes.h" 19#include "includes.h"
20#include <openssl/evp.h> 20#include <openssl/evp.h>
21 21
22/* OPENSSL_free() is Free() in versions before OpenSSL 0.9.6 */
23#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090600f)
24# define OPENSSL_free(x) Free(x)
25#endif
26
22#if OPENSSL_VERSION_NUMBER < 0x00906000L 27#if OPENSSL_VERSION_NUMBER < 0x00906000L
23# define SSH_OLD_EVP 28# define SSH_OLD_EVP
24# define EVP_CIPHER_CTX_get_app_data(e) ((e)->app_data) 29# define EVP_CIPHER_CTX_get_app_data(e) ((e)->app_data)