Lines 123-128
Link Here
|
123 |
#define MODSSL_SSL_METHOD_CONST |
123 |
#define MODSSL_SSL_METHOD_CONST |
124 |
#endif |
124 |
#endif |
125 |
|
125 |
|
|
|
126 |
#if defined(LIBRESSL_VERSION_NUMBER) |
127 |
/* Missing from LibreSSL */ |
128 |
#define SSL_CTRL_SET_MIN_PROTO_VERSION 123 |
129 |
#define SSL_CTRL_SET_MAX_PROTO_VERSION 124 |
130 |
#define SSL_CTX_set_min_proto_version(ctx, version) \ |
131 |
SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL) |
132 |
#define SSL_CTX_set_max_proto_version(ctx, version) \ |
133 |
SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL) |
134 |
#endif |
135 |
|
126 |
#if defined(OPENSSL_FIPS) |
136 |
#if defined(OPENSSL_FIPS) |
127 |
#define HAVE_FIPS |
137 |
#define HAVE_FIPS |
128 |
#endif |
138 |
#endif |
Lines 136-142
Link Here
|
136 |
#endif |
146 |
#endif |
137 |
|
147 |
|
138 |
/* session id constness */ |
148 |
/* session id constness */ |
139 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
149 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
140 |
#define IDCONST |
150 |
#define IDCONST |
141 |
#else |
151 |
#else |
142 |
#define IDCONST const |
152 |
#define IDCONST const |
Lines 199-205
Link Here
|
199 |
|
209 |
|
200 |
#endif /* !defined(OPENSSL_NO_TLSEXT) && defined(SSL_set_tlsext_host_name) */ |
210 |
#endif /* !defined(OPENSSL_NO_TLSEXT) && defined(SSL_set_tlsext_host_name) */ |
201 |
|
211 |
|
202 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
212 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
203 |
#define BN_get_rfc2409_prime_768 get_rfc2409_prime_768 |
213 |
#define BN_get_rfc2409_prime_768 get_rfc2409_prime_768 |
204 |
#define BN_get_rfc2409_prime_1024 get_rfc2409_prime_1024 |
214 |
#define BN_get_rfc2409_prime_1024 get_rfc2409_prime_1024 |
205 |
#define BN_get_rfc3526_prime_1536 get_rfc3526_prime_1536 |
215 |
#define BN_get_rfc3526_prime_1536 get_rfc3526_prime_1536 |
Lines 219-225
void init_bio_methods(void);
Link Here
|
219 |
void free_bio_methods(void); |
229 |
void free_bio_methods(void); |
220 |
#endif |
230 |
#endif |
221 |
|
231 |
|
222 |
#if OPENSSL_VERSION_NUMBER < 0x10002000L |
232 |
#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER) |
223 |
#define X509_STORE_CTX_get0_store(x) (x->ctx) |
233 |
#define X509_STORE_CTX_get0_store(x) (x->ctx) |
224 |
#endif |
234 |
#endif |
225 |
|
235 |
|
Lines 934-940
char *ssl_util_readfilter(server_
Link Here
|
934 |
const char * const *); |
944 |
const char * const *); |
935 |
BOOL ssl_util_path_check(ssl_pathcheck_t, const char *, apr_pool_t *); |
945 |
BOOL ssl_util_path_check(ssl_pathcheck_t, const char *, apr_pool_t *); |
936 |
#if APR_HAS_THREADS |
946 |
#if APR_HAS_THREADS |
937 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
947 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
938 |
void ssl_util_thread_setup(apr_pool_t *); |
948 |
void ssl_util_thread_setup(apr_pool_t *); |
939 |
#endif |
949 |
#endif |
940 |
void ssl_util_thread_id_setup(apr_pool_t *); |
950 |
void ssl_util_thread_id_setup(apr_pool_t *); |