mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-31 06:01:55 +00:00
- (dtucker) [configure.ac openbsd-compat/openssl-compat.{c,h}] Add compat
code for older OpenSSL versions that don't have EVP_MD_CTX_copy_ex.
This commit is contained in:
parent
d1a7a9c0fd
commit
4a20959d2e
@ -1,3 +1,7 @@
|
|||||||
|
20140213
|
||||||
|
- (dtucker) [configure.ac openbsd-compat/openssl-compat.{c,h}] Add compat
|
||||||
|
code for older OpenSSL versions that don't have EVP_MD_CTX_copy_ex.
|
||||||
|
|
||||||
20140207
|
20140207
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
- naddy@cvs.openbsd.org 2014/02/05 20:13:25
|
- naddy@cvs.openbsd.org 2014/02/05 20:13:25
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Id: configure.ac,v 1.569 2014/02/04 00:18:21 djm Exp $
|
# $Id: configure.ac,v 1.570 2014/02/13 05:38:33 dtucker Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 1999-2004 Damien Miller
|
# Copyright (c) 1999-2004 Damien Miller
|
||||||
#
|
#
|
||||||
@ -15,7 +15,7 @@
|
|||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
|
AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
|
||||||
AC_REVISION($Revision: 1.569 $)
|
AC_REVISION($Revision: 1.570 $)
|
||||||
AC_CONFIG_SRCDIR([ssh.c])
|
AC_CONFIG_SRCDIR([ssh.c])
|
||||||
AC_LANG([C])
|
AC_LANG([C])
|
||||||
|
|
||||||
@ -2430,6 +2430,7 @@ AC_CHECK_FUNCS([ \
|
|||||||
EVP_DigestFinal_ex \
|
EVP_DigestFinal_ex \
|
||||||
EVP_MD_CTX_init \
|
EVP_MD_CTX_init \
|
||||||
EVP_MD_CTX_cleanup \
|
EVP_MD_CTX_cleanup \
|
||||||
|
EVP_MD_CTX_copy_ex \
|
||||||
HMAC_CTX_init \
|
HMAC_CTX_init \
|
||||||
RSA_generate_key_ex \
|
RSA_generate_key_ex \
|
||||||
RSA_get_default_method \
|
RSA_get_default_method \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: openssl-compat.c,v 1.16 2014/01/17 07:00:41 dtucker Exp $ */
|
/* $Id: openssl-compat.c,v 1.17 2014/02/13 05:38:33 dtucker Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au>
|
* Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au>
|
||||||
@ -96,6 +96,14 @@ ssh_EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, unsigned int cnt)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_EVP_MD_CTX_COPY_EX
|
||||||
|
int
|
||||||
|
EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in)
|
||||||
|
{
|
||||||
|
return EVP_MD_CTX_copy(out, in);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_BN_IS_PRIME_EX
|
#ifndef HAVE_BN_IS_PRIME_EX
|
||||||
int
|
int
|
||||||
BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, void *cb)
|
BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, void *cb)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: openssl-compat.h,v 1.25 2014/01/17 06:32:31 dtucker Exp $ */
|
/* $Id: openssl-compat.h,v 1.26 2014/02/13 05:38:33 dtucker Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au>
|
* Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au>
|
||||||
@ -156,6 +156,10 @@ int EVP_DigestInit_ex(EVP_MD_CTX *, const EVP_MD *, void *);
|
|||||||
int EVP_DigestFinal_ex(EVP_MD_CTX *, unsigned char *, unsigned int *);
|
int EVP_DigestFinal_ex(EVP_MD_CTX *, unsigned char *, unsigned int *);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifndef EVP_MD_CTX_COPY_EX
|
||||||
|
int EVP_MD_CTX_copy_ex(EVP_MD_CTX *, const EVP_MD_CTX *);
|
||||||
|
# endif
|
||||||
|
|
||||||
int ssh_EVP_CipherInit(EVP_CIPHER_CTX *, const EVP_CIPHER *, unsigned char *,
|
int ssh_EVP_CipherInit(EVP_CIPHER_CTX *, const EVP_CIPHER *, unsigned char *,
|
||||||
unsigned char *, int);
|
unsigned char *, int);
|
||||||
int ssh_EVP_Cipher(EVP_CIPHER_CTX *, char *, char *, int);
|
int ssh_EVP_Cipher(EVP_CIPHER_CTX *, char *, char *, int);
|
||||||
|
Loading…
Reference in New Issue
Block a user