1269670Sjkim/* ssl_utst.c */
2280297Sjkim/*
3280297Sjkim * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
4269670Sjkim * project.
5269670Sjkim */
6269670Sjkim/* ====================================================================
7269670Sjkim * Copyright (c) 2014 The OpenSSL Project.  All rights reserved.
8269670Sjkim *
9269670Sjkim * Redistribution and use in source and binary forms, with or without
10269670Sjkim * modification, are permitted provided that the following conditions
11269670Sjkim * are met:
12269670Sjkim *
13269670Sjkim * 1. Redistributions of source code must retain the above copyright
14280297Sjkim *    notice, this list of conditions and the following disclaimer.
15269670Sjkim *
16269670Sjkim * 2. Redistributions in binary form must reproduce the above copyright
17269670Sjkim *    notice, this list of conditions and the following disclaimer in
18269670Sjkim *    the documentation and/or other materials provided with the
19269670Sjkim *    distribution.
20269670Sjkim *
21269670Sjkim * 3. All advertising materials mentioning features or use of this
22269670Sjkim *    software must display the following acknowledgment:
23269670Sjkim *    "This product includes software developed by the OpenSSL Project
24269670Sjkim *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
25269670Sjkim *
26269670Sjkim * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
27269670Sjkim *    endorse or promote products derived from this software without
28269670Sjkim *    prior written permission. For written permission, please contact
29269670Sjkim *    openssl-core@openssl.org.
30269670Sjkim *
31269670Sjkim * 5. Products derived from this software may not be called "OpenSSL"
32269670Sjkim *    nor may "OpenSSL" appear in their names without prior written
33269670Sjkim *    permission of the OpenSSL Project.
34269670Sjkim *
35269670Sjkim * 6. Redistributions of any form whatsoever must retain the following
36269670Sjkim *    acknowledgment:
37269670Sjkim *    "This product includes software developed by the OpenSSL Project
38269670Sjkim *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
39269670Sjkim *
40269670Sjkim * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
41269670Sjkim * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42269670Sjkim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43269670Sjkim * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
44269670Sjkim * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45269670Sjkim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46269670Sjkim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47269670Sjkim * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48269670Sjkim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49269670Sjkim * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50269670Sjkim * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51269670Sjkim * OF THE POSSIBILITY OF SUCH DAMAGE.
52269670Sjkim * ====================================================================
53269670Sjkim *
54269670Sjkim */
55269670Sjkim
56269670Sjkim#include "ssl_locl.h"
57269670Sjkim
58269670Sjkim#ifndef OPENSSL_NO_UNIT_TEST
59269670Sjkim
60280297Sjkimstatic const struct openssl_ssl_test_functions ssl_test_functions = {
61280297Sjkim    ssl_init_wbio_buffer,
62280297Sjkim    ssl3_setup_buffers,
63280297Sjkim    tls1_process_heartbeat,
64280297Sjkim    dtls1_process_heartbeat
65280297Sjkim};
66269670Sjkim
67269670Sjkimconst struct openssl_ssl_test_functions *SSL_test_functions(void)
68280297Sjkim{
69280297Sjkim    return &ssl_test_functions;
70280297Sjkim}
71269670Sjkim
72269670Sjkim#endif
73