summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-08-30 04:18:28 +1000
committerDamien Miller <djm@mindrot.org>2014-08-30 04:18:28 +1000
commitd7c81e216a7bd9eed6e239c970d9261bb1651947 (patch)
tree3f336c5509eb846cc1084cd9bc092561083ccdc6 /openbsd-compat
parent4687802dda57365b984b897fc3c8e2867ea09b22 (diff)
downloadopenssh-git-d7c81e216a7bd9eed6e239c970d9261bb1651947.tar.gz
- (djm) [openbsd-compat/openssl-compat.h] add include guard
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/openssl-compat.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h
index d0c3307d..3695d412 100644
--- a/openbsd-compat/openssl-compat.h
+++ b/openbsd-compat/openssl-compat.h
@@ -1,4 +1,4 @@
-/* $Id: openssl-compat.h,v 1.30 2014/08/29 16:30:30 djm Exp $ */
+/* $Id: openssl-compat.h,v 1.31 2014/08/29 18:18:29 djm Exp $ */
/*
* Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au>
@@ -16,6 +16,9 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _OPENSSL_COMPAT_H
+#define _OPENSSL_COMPAT_H
+
#include "includes.h"
#include <openssl/opensslv.h>
#include <openssl/evp.h>
@@ -25,7 +28,7 @@
int ssh_compatible_openssl(long, long);
#if (OPENSSL_VERSION_NUMBER <= 0x0090805fL)
-#error OpenSSL 0.9.8f or greater is required
+# error OpenSSL 0.9.8f or greater is required
#endif
#if OPENSSL_VERSION_NUMBER < 0x10000001L
@@ -42,9 +45,9 @@ int ssh_compatible_openssl(long, long);
#endif
#ifndef OPENSSL_HAVE_EVPCTR
-#define EVP_aes_128_ctr evp_aes_128_ctr
-#define EVP_aes_192_ctr evp_aes_128_ctr
-#define EVP_aes_256_ctr evp_aes_128_ctr
+# define EVP_aes_128_ctr evp_aes_128_ctr
+# define EVP_aes_192_ctr evp_aes_128_ctr
+# define EVP_aes_256_ctr evp_aes_128_ctr
const EVP_CIPHER *evp_aes_128_ctr(void);
void ssh_aes_ctr_iv(EVP_CIPHER_CTX *, int, u_char *, size_t);
#endif
@@ -87,3 +90,4 @@ void ssh_OpenSSL_add_all_algorithms(void);
#endif /* SSH_DONT_OVERLOAD_OPENSSL_FUNCS */
+#endif /* _OPENSSL_COMPAT_H */