ssl_err2.c revision 296465
1176998Sphk/* ssl/ssl_err2.c */
2330449Seadler/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3330449Seadler * All rights reserved.
4176998Sphk *
5176998Sphk * This package is an SSL implementation written
6176998Sphk * by Eric Young (eay@cryptsoft.com).
7176998Sphk * The implementation was written so as to conform with Netscapes SSL.
8176998Sphk *
9176998Sphk * This library is free for commercial and non-commercial use as long as
10176998Sphk * the following conditions are aheared to.  The following conditions
11176998Sphk * apply to all code found in this distribution, be it the RC4, RSA,
12176998Sphk * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
13176998Sphk * included with this distribution is covered by the same copyright terms
14176998Sphk * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15176998Sphk *
16176998Sphk * Copyright remains Eric Young's, and as such any Copyright notices in
17176998Sphk * the code are not to be removed.
18176998Sphk * If this package is used in a product, Eric Young should be given attribution
19176998Sphk * as the author of the parts of the library used.
20176998Sphk * This can be in the form of a textual message at program startup or
21176998Sphk * in documentation (online or textual) provided with the package.
22176998Sphk *
23176998Sphk * Redistribution and use in source and binary forms, with or without
24176998Sphk * modification, are permitted provided that the following conditions
25176998Sphk * are met:
26176998Sphk * 1. Redistributions of source code must retain the copyright
27176998Sphk *    notice, this list of conditions and the following disclaimer.
28176998Sphk * 2. Redistributions in binary form must reproduce the above copyright
29176998Sphk *    notice, this list of conditions and the following disclaimer in the
30176998Sphk *    documentation and/or other materials provided with the distribution.
31176998Sphk * 3. All advertising materials mentioning features or use of this software
32176998Sphk *    must display the following acknowledgement:
33176998Sphk *    "This product includes cryptographic software written by
34176998Sphk *     Eric Young (eay@cryptsoft.com)"
35176998Sphk *    The word 'cryptographic' can be left out if the rouines from the library
36219095Sphk *    being used are not cryptographic related :-).
37176998Sphk * 4. If you include any Windows specific code (or a derivative thereof) from
38176998Sphk *    the apps directory (application code) you must include an acknowledgement:
39176998Sphk *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40176998Sphk *
41176998Sphk * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42176998Sphk * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43176998Sphk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44176998Sphk * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45176998Sphk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46176998Sphk * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47219095Sphk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48219095Sphk * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49176998Sphk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50306909Spfg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51176998Sphk * SUCH DAMAGE.
52176998Sphk *
53176998Sphk * The licence and distribution terms for any publically available version or
54176998Sphk * derivative of this code cannot be changed.  i.e. this code cannot simply be
55176998Sphk * copied and put under another distribution licence
56219027Sphk * [including the GNU Public Licence.]
57219027Sphk */
58219027Sphk
59219027Sphk#include <stdio.h>
60219027Sphk#include <openssl/err.h>
61219027Sphk#include <openssl/ssl.h>
62176998Sphk
63176998Sphkvoid SSL_load_error_strings(void)
64219095Sphk{
65176998Sphk#ifndef OPENSSL_NO_ERR
66176998Sphk    ERR_load_crypto_strings();
67176998Sphk    ERR_load_SSL_strings();
68176998Sphk#endif
69176998Sphk}
70176998Sphk