summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2012-01-17 14:03:34 +1100
committerDarren Tucker <dtucker@zip.com.au>2012-01-17 14:03:34 +1100
commite9b3ad73baf25fa780f853e40f91ce74f0381c76 (patch)
tree170ec8a5d634e03194c8778d7dca0d8c749f74f8 /openbsd-compat
parent8ed4de8f1dcebddd7edc0dd3c10f1cb947d831eb (diff)
- (dtucker) [configure.ac mac.c openbsd-compat/openssl-compat.h] Add
null implementation of HMAC_CTX_init for the benefit of old versions of OpenSSL that don't have it.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/openssl-compat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h
index c5fc24eb4..a151eff38 100644
--- a/openbsd-compat/openssl-compat.h
+++ b/openbsd-compat/openssl-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openssl-compat.h,v 1.19 2011/05/10 01:13:38 dtucker Exp $ */ 1/* $Id: openssl-compat.h,v 1.20 2012/01/17 03:03:39 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>
@@ -130,5 +130,10 @@ int ssh_EVP_CipherInit(EVP_CIPHER_CTX *, const EVP_CIPHER *, unsigned char *,
130int ssh_EVP_Cipher(EVP_CIPHER_CTX *, char *, char *, int); 130int ssh_EVP_Cipher(EVP_CIPHER_CTX *, char *, char *, int);
131int ssh_EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *); 131int ssh_EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *);
132void ssh_OpenSSL_add_all_algorithms(void); 132void ssh_OpenSSL_add_all_algorithms(void);
133
134# ifndef HAVE_HMAC_CTX_INIT
135# define HMAC_CTX_init(a)
136# endif
137
133#endif /* SSH_DONT_OVERLOAD_OPENSSL_FUNCS */ 138#endif /* SSH_DONT_OVERLOAD_OPENSSL_FUNCS */
134 139