mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
18140082d6
* Add extconf test for DTLS_method & use in mini_ssl.c * Rakefile - use require_relative for 'lib/puma/detect' * Add Trusty OpenSSL 1.0.1 job to Travis * Add extconf test for TLS_server_method & use in mini_ssl.c
23 lines
665 B
Ruby
23 lines
665 B
Ruby
require 'mkmf'
|
|
|
|
dir_config("puma_http11")
|
|
|
|
unless ENV["DISABLE_SSL"]
|
|
dir_config("openssl")
|
|
|
|
if %w'crypto libeay32'.find {|crypto| have_library(crypto, 'BIO_read')} and
|
|
%w'ssl ssleay32'.find {|ssl| have_library(ssl, 'SSL_CTX_new')}
|
|
|
|
have_header "openssl/bio.h"
|
|
|
|
# below is yes for 1.0.2 & later
|
|
have_func "DTLS_method" , "openssl/ssl.h"
|
|
|
|
# below are yes for 1.1.0 & later, may need to check func rather than macro
|
|
# with versions after 1.1.1
|
|
have_func "TLS_server_method" , "openssl/ssl.h"
|
|
have_macro "SSL_CTX_set_min_proto_version", "openssl/ssl.h"
|
|
end
|
|
end
|
|
|
|
create_makefile("puma/puma_http11")
|