Skip to content

Commit

Permalink
Support for OpenSSL 1.0.x/1.1.x
Browse files Browse the repository at this point in the history
Added WITH_OPENSSL_API_1_0 and WITH_OPENSSL_1_1 to allow compiling against OpenSSL 1.0.x/1.1.x.  The default is still OpenSSL 1.1.x.
  • Loading branch information
drew-wells authored Dec 22, 2020
1 parent 56cc395 commit a3c1f9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ endif

ifdef NO_SSL
CFLAGS += -DNO_SSL
else ifdef WITH_OPENSSL_API_1_0
CFLAGS += -DOPENSSL_API_1_0
else ifdef WITH_OPENSSL_API_1_1
CFLAGS += -DOPENSSL_API_1_1
else
#Use OpenSSL 1.1 API version as default
CFLAGS += -DOPENSSL_API_1_1
Expand Down Expand Up @@ -288,6 +292,8 @@ help:
@echo " WITH_CPP=1 build library with c++ classes"
@echo " WITH_EXPERIMENTAL=1 build with experimental features"
@echo " WITH_DAEMONIZE=1 build with daemonize."
@echo " WITH_OPENSSL_API_1_0=1 build with OpenSSL 1.0.x support."
@echo " WITH_OPENSSL_API_1_1=1 build with OpenSSL 1.1.x support."
@echo " NO_SSL=1 build without SSL support. Build will not need libcrypto/libssl."
@echo " NO_CGI=1 build without CGI support."
@echo " NO_CACHING=1 disable caching. Send no-cache/no-store headers."
Expand Down

0 comments on commit a3c1f9e

Please sign in to comment.