summaryrefslogtreecommitdiff
path: root/openbsd-compat/openssl-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-12-04 23:20:50 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-12-04 23:20:50 +1100
commitebdef76b5df3c33b05128b4fb2cc484427f99ca6 (patch)
treef85300cb02af52a48ee1de7726e6382688504add /openbsd-compat/openssl-compat.h
parentd89745b9e7e2048c13b0173eadc2d41e23b6a79d (diff)
- (dtucker) [configure.ac moduli.c openbsd-compat/openssl-compat.{c,h}] Add
shims for the new, non-deprecated OpenSSL key generation functions for platforms that don't have the new interfaces.
Diffstat (limited to 'openbsd-compat/openssl-compat.h')
-rw-r--r--openbsd-compat/openssl-compat.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h
index beb81f420..c0ca20aaf 100644
--- a/openbsd-compat/openssl-compat.h
+++ b/openbsd-compat/openssl-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openssl-compat.h,v 1.16 2010/10/07 11:06:44 djm Exp $ */ 1/* $Id: openssl-compat.h,v 1.17 2010/12/04 12:20:50 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>
@@ -108,6 +108,19 @@ extern const EVP_CIPHER *evp_acss(void);
108# define SSLeay_add_all_algorithms() ssh_SSLeay_add_all_algorithms() 108# define SSLeay_add_all_algorithms() ssh_SSLeay_add_all_algorithms()
109# endif 109# endif
110 110
111# ifndef HAVE_BN_IS_PRIME_EX
112int BN_is_prime_ex(const BIGNUM *, int, BN_CTX *, void *);
113# endif
114
115# ifndef HAVE_DSA_GENERATE_PARAMETERS_EX
116int DSA_generate_parameters_ex(DSA *, int, const unsigned char *, int, int *,
117 unsigned long *, void *);
118# endif
119
120# ifndef HAVE_RSA_GENERATE_KEY_EX
121int RSA_generate_key_ex(RSA *, int, BIGNUM *, void *);
122# endif
123
111int ssh_EVP_CipherInit(EVP_CIPHER_CTX *, const EVP_CIPHER *, unsigned char *, 124int ssh_EVP_CipherInit(EVP_CIPHER_CTX *, const EVP_CIPHER *, unsigned char *,
112 unsigned char *, int); 125 unsigned char *, int);
113int ssh_EVP_Cipher(EVP_CIPHER_CTX *, char *, char *, int); 126int ssh_EVP_Cipher(EVP_CIPHER_CTX *, char *, char *, int);