1254721Semaste/* ssl_utst.c */
2254721Semaste/*
3254721Semaste * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
4254721Semaste * project.
5254721Semaste */
6254721Semaste/* ====================================================================
7254721Semaste * Copyright (c) 2014 The OpenSSL Project.  All rights reserved.
8254721Semaste *
9254721Semaste * Redistribution and use in source and binary forms, with or without
10254721Semaste * modification, are permitted provided that the following conditions
11254721Semaste * are met:
12254721Semaste *
13254721Semaste * 1. Redistributions of source code must retain the above copyright
14254721Semaste *    notice, this list of conditions and the following disclaimer.
15254721Semaste *
16254721Semaste * 2. Redistributions in binary form must reproduce the above copyright
17254721Semaste *    notice, this list of conditions and the following disclaimer in
18254721Semaste *    the documentation and/or other materials provided with the
19254721Semaste *    distribution.
20254721Semaste *
21254721Semaste * 3. All advertising materials mentioning features or use of this
22254721Semaste *    software must display the following acknowledgment:
23254721Semaste *    "This product includes software developed by the OpenSSL Project
24254721Semaste *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
25254721Semaste *
26254721Semaste * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
27254721Semaste *    endorse or promote products derived from this software without
28254721Semaste *    prior written permission. For written permission, please contact
29254721Semaste *    openssl-core@openssl.org.
30254721Semaste *
31254721Semaste * 5. Products derived from this software may not be called "OpenSSL"
32254721Semaste *    nor may "OpenSSL" appear in their names without prior written
33254721Semaste *    permission of the OpenSSL Project.
34254721Semaste *
35254721Semaste * 6. Redistributions of any form whatsoever must retain the following
36254721Semaste *    acknowledgment:
37254721Semaste *    "This product includes software developed by the OpenSSL Project
38254721Semaste *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
39254721Semaste *
40254721Semaste * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
41254721Semaste * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42254721Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43254721Semaste * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
44254721Semaste * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45254721Semaste * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46254721Semaste * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47254721Semaste * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48254721Semaste * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49254721Semaste * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50254721Semaste * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51254721Semaste * OF THE POSSIBILITY OF SUCH DAMAGE.
52254721Semaste * ====================================================================
53254721Semaste *
54254721Semaste */
55254721Semaste
56254721Semaste#include "ssl_locl.h"
57254721Semaste
58254721Semaste#ifndef OPENSSL_NO_UNIT_TEST
59254721Semaste
60254721Semastestatic const struct openssl_ssl_test_functions ssl_test_functions = {
61254721Semaste    ssl_init_wbio_buffer,
62254721Semaste    ssl3_setup_buffers,
63254721Semaste    tls1_process_heartbeat,
64254721Semaste    dtls1_process_heartbeat
65254721Semaste};
66254721Semaste
67254721Semasteconst struct openssl_ssl_test_functions *SSL_test_functions(void)
68254721Semaste{
69254721Semaste    return &ssl_test_functions;
70254721Semaste}
71254721Semaste
72254721Semaste#endif
73254721Semaste