mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
CLEANUP: ssl_sock: move dirty openssl-1.0.2 wrapper to openssl-compat
Valentine noticed this ugly SSL_CTX_get_tlsext_status_cb() macro definition inside ssl_sock.c that is dedicated to openssl-1.0.2 only. It would be better placed in openssl-compat.h, which is what this patch does. It also addresses a missing pair of parenthesis and removes an invalid extra semicolon.
This commit is contained in:
parent
84380965a5
commit
decb7c90df
@ -506,5 +506,10 @@ static inline unsigned long ERR_peek_error_func(const char **func)
|
|||||||
#define SSL_CTX_set1_sigalgs_list SSL_CTX_set1_sigalgs_list
|
#define SSL_CTX_set1_sigalgs_list SSL_CTX_set1_sigalgs_list
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SSL_CTX_get_tlsext_status_cb
|
||||||
|
# define SSL_CTX_get_tlsext_status_cb(ctx, cb) \
|
||||||
|
*(cb) = (void (*) (void))ctx->tlsext_status_cb
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* USE_OPENSSL */
|
#endif /* USE_OPENSSL */
|
||||||
#endif /* _HAPROXY_OPENSSL_COMPAT_H */
|
#endif /* _HAPROXY_OPENSSL_COMPAT_H */
|
||||||
|
@ -1185,10 +1185,6 @@ static int ssl_sock_load_ocsp(const char *path, SSL_CTX *ctx, struct ckch_store
|
|||||||
if (iocsp == ocsp)
|
if (iocsp == ocsp)
|
||||||
ocsp = NULL;
|
ocsp = NULL;
|
||||||
|
|
||||||
#ifndef SSL_CTX_get_tlsext_status_cb
|
|
||||||
# define SSL_CTX_get_tlsext_status_cb(ctx, cb) \
|
|
||||||
*cb = (void (*) (void))ctx->tlsext_status_cb;
|
|
||||||
#endif
|
|
||||||
SSL_CTX_get_tlsext_status_cb(ctx, &callback);
|
SSL_CTX_get_tlsext_status_cb(ctx, &callback);
|
||||||
|
|
||||||
if (inc_refcount_store)
|
if (inc_refcount_store)
|
||||||
|
Loading…
Reference in New Issue
Block a user