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