summaryrefslogtreecommitdiff
path: root/openbsd-compat/openssl-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2014-07-21 02:24:59 +1000
committerDarren Tucker <dtucker@zip.com.au>2014-07-21 02:24:59 +1000
commit5573171352ea23df2dc6d2fe0324d023b7ba697c (patch)
tree083b7a1b3fc548ce2f440702dafcedb1391a3fe1 /openbsd-compat/openssl-compat.h
parent74e28682711d005026c7c8f15f96aea9d3c8b5a3 (diff)
- (dtucker) [cipher.c openbsd-compat/openssl-compat.h] Restore the bits
needed to build AES CTR mode against OpenSSL 0.9.8f and above. ok djm
Diffstat (limited to 'openbsd-compat/openssl-compat.h')
-rw-r--r--openbsd-compat/openssl-compat.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h
index d088d2962..21002107a 100644
--- a/openbsd-compat/openssl-compat.h
+++ b/openbsd-compat/openssl-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openssl-compat.h,v 1.28 2014/07/02 05:28:07 djm Exp $ */ 1/* $Id: openssl-compat.h,v 1.29 2014/07/20 16:24:59 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>
@@ -34,6 +34,14 @@ int ssh_compatible_openssl(long, long);
34# define LIBCRYPTO_EVP_INL_TYPE size_t 34# define LIBCRYPTO_EVP_INL_TYPE size_t
35#endif 35#endif
36 36
37#ifndef OPENSSL_HAVE_EVPCTR
38#define EVP_aes_128_ctr evp_aes_128_ctr
39#define EVP_aes_192_ctr evp_aes_128_ctr
40#define EVP_aes_256_ctr evp_aes_128_ctr
41const EVP_CIPHER *evp_aes_128_ctr(void);
42void ssh_aes_ctr_iv(EVP_CIPHER_CTX *, int, u_char *, size_t);
43#endif
44
37/* Avoid some #ifdef. Code that uses these is unreachable without GCM */ 45/* Avoid some #ifdef. Code that uses these is unreachable without GCM */
38#if !defined(OPENSSL_HAVE_EVPGCM) && !defined(EVP_CTRL_GCM_SET_IV_FIXED) 46#if !defined(OPENSSL_HAVE_EVPGCM) && !defined(EVP_CTRL_GCM_SET_IV_FIXED)
39# define EVP_CTRL_GCM_SET_IV_FIXED -1 47# define EVP_CTRL_GCM_SET_IV_FIXED -1