summaryrefslogtreecommitdiff
path: root/libarchive/archive_cryptor_private.h
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2016-11-17 15:44:44 -0500
committerBrad King <brad.king@kitware.com>2016-11-21 13:56:54 -0500
commit89a6ed13be1c8813764c40ea2c42c472ec3aabf9 (patch)
tree320f3fc8021a9ca6f4021e3dc44307d30f93a545 /libarchive/archive_cryptor_private.h
parentaa8f77083954fe0f41327ab856be59c370d4c13b (diff)
downloadlibarchive-89a6ed13be1c8813764c40ea2c42c472ec3aabf9.tar.gz
Add support for building with OpenSSL 1.1
OpenSSL 1.1 made some CTX structures opaque. Port our code to use the structures only through pointers via OpenSSL 1.1 APIs. Use our adaption layer to make this work with OpenSSL 1.0 and below. Closes: #810 Patch-from: https://bugzilla.redhat.com/1383744
Diffstat (limited to 'libarchive/archive_cryptor_private.h')
-rw-r--r--libarchive/archive_cryptor_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_cryptor_private.h b/libarchive/archive_cryptor_private.h
index 1c1a8c0d..0ca544b5 100644
--- a/libarchive/archive_cryptor_private.h
+++ b/libarchive/archive_cryptor_private.h
@@ -104,7 +104,7 @@ typedef struct {
#define AES_MAX_KEY_SIZE 32
typedef struct {
- EVP_CIPHER_CTX ctx;
+ EVP_CIPHER_CTX *ctx;
const EVP_CIPHER *type;
uint8_t key[AES_MAX_KEY_SIZE];
unsigned key_len;