1
0
mirror of https://github.com/wolfSSL/wolfssl.git synced 2026-10-28 17:15:09 +03:00
Files
wolfssl/tests/api/test_session.h
philljj 6a14dcde8b Merge pull request #11538 from gasbytes/wolfssl_session_dup-fix
Make session copy fail when the peer cert copy fails, and always copy the ticket
2026-10-13 08:45:48 -05:00

77 lines
3.9 KiB
C

/* test_session.h
*
* Copyright (C) 2006-2026 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wolfSSL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
#ifndef WOLFCRYPT_TEST_SESSION_H
#define WOLFCRYPT_TEST_SESSION_H
#include <tests/api/api_decl.h>
int test_wolfSSL_CTX_add_session(void);
int test_wolfSSL_CTX_add_session_ext_tls13(void);
int test_wolfSSL_CTX_add_session_ext_dtls13(void);
int test_wolfSSL_CTX_add_session_ext_tls12(void);
int test_wolfSSL_CTX_add_session_ext_dtls12(void);
int test_wolfSSL_CTX_add_session_ext_tls11(void);
int test_wolfSSL_CTX_add_session_ext_dtls1(void);
int test_wolfSSL_CTX_sess_get_cb_default_copy(void);
int test_wolfSSL_SESSION(void);
int test_wolfSSL_SESSION_expire_downgrade(void);
int test_wolfSSL_CTX_sess_set_remove_cb(void);
int test_wolfSSL_ticket_keys(void);
int test_wolfSSL_ticket_keys_threaded(void);
int test_wolfSSL_SESSION_get_ex_new_index(void);
int test_wolfSSL_SESSION_dup_peer_fail(void);
int test_wolfSSL_GetSessionAtIndex(void);
int test_wolfSSL_session_cache_short_ticket_reuse(void);
int test_wolfSSL_client_cache_id_prefix(void);
int test_wolfSSL_client_cache_id_overwrite(void);
int test_wolfSSL_session_cache_restore(void);
int test_wolfSSL_session_cache_client_geometry(void);
int test_wolfSSL_get_session_default_ref(void);
int test_wolfSSL_SetServerID_resume(void);
#define TEST_SESSION_DECLS \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_add_session), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_add_session_ext_tls13), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_add_session_ext_dtls13), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_add_session_ext_tls12), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_add_session_ext_dtls12), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_add_session_ext_tls11), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_add_session_ext_dtls1), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_sess_get_cb_default_copy), \
TEST_DECL_GROUP("session", test_wolfSSL_SESSION), \
TEST_DECL_GROUP("session", test_wolfSSL_SESSION_expire_downgrade), \
TEST_DECL_GROUP("session", test_wolfSSL_CTX_sess_set_remove_cb), \
TEST_DECL_GROUP("session", test_wolfSSL_ticket_keys), \
TEST_DECL_GROUP("session", test_wolfSSL_ticket_keys_threaded), \
TEST_DECL_GROUP("session", test_wolfSSL_SESSION_get_ex_new_index), \
TEST_DECL_GROUP("session", test_wolfSSL_SESSION_dup_peer_fail), \
TEST_DECL_GROUP("session", test_wolfSSL_GetSessionAtIndex), \
TEST_DECL_GROUP("session", test_wolfSSL_session_cache_short_ticket_reuse), \
TEST_DECL_GROUP("session", test_wolfSSL_client_cache_id_prefix), \
TEST_DECL_GROUP("session", test_wolfSSL_client_cache_id_overwrite), \
TEST_DECL_GROUP("session", test_wolfSSL_session_cache_restore), \
TEST_DECL_GROUP("session", test_wolfSSL_session_cache_client_geometry), \
TEST_DECL_GROUP("session", test_wolfSSL_get_session_default_ref), \
TEST_DECL_GROUP("session", test_wolfSSL_SetServerID_resume)
#endif /* WOLFCRYPT_TEST_SESSION_H */