X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=test%2Ftls13secretstest.c;h=8734f2ae03dde45c916f842645f70c9d504c82e0;hb=5f9b64a2fdfd0ccf04d58c8b04d576f13950d63f;hp=6b6c9bc9460e7ec9b63da3d8e7ed09c6aa7a88c9;hpb=134bfe56c4fe9490ddcac070909252233ff82076;p=oweals%2Fopenssl.git diff --git a/test/tls13secretstest.c b/test/tls13secretstest.c index 6b6c9bc946..8734f2ae03 100644 --- a/test/tls13secretstest.c +++ b/test/tls13secretstest.c @@ -12,6 +12,7 @@ #include "../ssl/ssl_locl.h" #include "testutil.h" +#include "test_main.h" #define IVLEN 12 #define KEYLEN 16 @@ -162,6 +163,22 @@ const EVP_MD *ssl_handshake_md(SSL *s) return EVP_sha256(); } +void RECORD_LAYER_reset_read_sequence(RECORD_LAYER *rl) +{ +} + +void RECORD_LAYER_reset_write_sequence(RECORD_LAYER *rl) +{ +} + +int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, + const EVP_MD **md, int *mac_pkey_type, + size_t *mac_secret_size, SSL_COMP **comp, int use_etm) + +{ + return 0; +} + /* End of mocked out code */ static int test_secret(SSL *s, unsigned char *prk, @@ -326,28 +343,7 @@ static int test_handshake_secrets(void) return ret; } -int main(int argc, char *argv[]) +void register_tests() { - BIO *err = NULL; - int testresult = 1; - - err = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT); - - CRYPTO_set_mem_debug(1); - CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); - ADD_TEST(test_handshake_secrets); - - testresult = run_tests(argv[0]); - -#ifndef OPENSSL_NO_CRYPTO_MDEBUG - if (CRYPTO_mem_leaks(err) <= 0) - testresult = 1; -#endif - BIO_free(err); - - if (!testresult) - fprintf(stderr, "PASS\n"); - - return testresult; }