Don't test heartbeats when there aren't any.
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
@@ -1826,8 +1826,10 @@ const SSL_METHOD *func_name(void) \
|
|||||||
struct openssl_ssl_test_functions {
|
struct openssl_ssl_test_functions {
|
||||||
int (*p_ssl_init_wbio_buffer) (SSL *s, int push);
|
int (*p_ssl_init_wbio_buffer) (SSL *s, int push);
|
||||||
int (*p_ssl3_setup_buffers) (SSL *s);
|
int (*p_ssl3_setup_buffers) (SSL *s);
|
||||||
|
# ifndef OPENSSL_NO_HEARTBEATS
|
||||||
int (*p_dtls1_process_heartbeat) (SSL *s,
|
int (*p_dtls1_process_heartbeat) (SSL *s,
|
||||||
unsigned char *p, unsigned int length);
|
unsigned char *p, unsigned int length);
|
||||||
|
# endif
|
||||||
};
|
};
|
||||||
|
|
||||||
# ifndef OPENSSL_UNIT_TEST
|
# ifndef OPENSSL_UNIT_TEST
|
||||||
|
|||||||
@@ -59,7 +59,9 @@
|
|||||||
static const struct openssl_ssl_test_functions ssl_test_functions = {
|
static const struct openssl_ssl_test_functions ssl_test_functions = {
|
||||||
ssl_init_wbio_buffer,
|
ssl_init_wbio_buffer,
|
||||||
ssl3_setup_buffers,
|
ssl3_setup_buffers,
|
||||||
|
# ifndef OPENSSL_NO_HEARTBEATS
|
||||||
dtls1_process_heartbeat
|
dtls1_process_heartbeat
|
||||||
|
# endif
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct openssl_ssl_test_functions *SSL_test_functions(void)
|
const struct openssl_ssl_test_functions *SSL_test_functions(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user