diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/openssl-compat.h | 10 |
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 | ||
41 | const EVP_CIPHER *evp_aes_128_ctr(void); | ||
42 | void 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 |