openresty / encrypted-session-nginx-module

encrypt and decrypt nginx variable values
http://openresty.org
195 stars 52 forks source link

Cannot compile with OpenSSL 1.1.0c #12

Open NativeDevMan opened 7 years ago

NativeDevMan commented 7 years ago

Encrypted-session-nginx-module is not compatible with OpenSSL 1.1.0c. Please, fix it.

agentzh commented 7 years ago

@pavlusha23 Patches welcome :)

S4mw1s3 commented 7 years ago

See my pull request: https://github.com/openresty/encrypted-session-nginx-module/pull/13

aosaginohi commented 7 years ago

openssl 1.1.0 support would be really nice!

27Bslash6 commented 7 years ago

Data point: Issue persists with 1.1.0g

-o objs/addon/src/ngx_http_encrypted_session_cipher.o \
    ../encrypted-session-nginx-module-0.07/src/ngx_http_encrypted_session_cipher.c
../encrypted-session-nginx-module-0.07/src/ngx_http_encrypted_session_cipher.c: In function 'ngx_http_encrypted_session_aes_mac_encrypt':
../encrypted-session-nginx-module-0.07/src/ngx_http_encrypted_session_cipher.c:29:30: error: storage size of 'ctx' isn't known
     EVP_CIPHER_CTX           ctx;
                              ^
../encrypted-session-nginx-module-0.07/src/ngx_http_encrypted_session_cipher.c:29:30: warning: unused variable 'ctx' [-Wunused-variable]
../encrypted-session-nginx-module-0.07/src/ngx_http_encrypted_session_cipher.c: In function 'ngx_http_encrypted_session_aes_mac_decrypt':
../encrypted-session-nginx-module-0.07/src/ngx_http_encrypted_session_cipher.c:136:30: error: storage size of 'ctx' isn't known
     EVP_CIPHER_CTX           ctx;
                              ^
../encrypted-session-nginx-module-0.07/src/ngx_http_encrypted_session_cipher.c:136:30: warning: unused variable 'ctx' [-Wunused-variable]
make[2]: *** [objs/addon/src/ngx_http_encrypted_session_cipher.o] Error 1
objs/Makefile:2397: recipe for target 'objs/addon/src/ngx_http_encrypted_session_cipher.o' failed
agentzh commented 7 years ago

@27Bslash6 As I said above, you're welcome to contribute a patch, otherwise you can just use OpenSSL 1.0.2 series or older series.

toohamster commented 6 years ago

A new release tag of this module was already added a few days ago and the new version is already included in OpenResty 1.13.6.2 RC1: https://groups.google.com/d/msg/openresty-en/bTfqTjshcX4/uP8qF0EpAgAJ