diff options
Diffstat (limited to 'src/lib/libssl/src/apps/s_apps.h')
-rw-r--r-- | src/lib/libssl/src/apps/s_apps.h | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/src/lib/libssl/src/apps/s_apps.h b/src/lib/libssl/src/apps/s_apps.h index 87d739d6c1..e45b484744 100644 --- a/src/lib/libssl/src/apps/s_apps.h +++ b/src/lib/libssl/src/apps/s_apps.h | |||
@@ -5,21 +5,21 @@ | |||
5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
8 | * | 8 | * |
9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
15 | * | 15 | * |
16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
22 | * | 22 | * |
23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
25 | * are met: | 25 | * are met: |
@@ -34,10 +34,10 @@ | |||
34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
40 | * | 40 | * |
41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
@@ -49,7 +49,7 @@ | |||
49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
52 | * | 52 | * |
53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
@@ -63,7 +63,7 @@ | |||
63 | * are met: | 63 | * are met: |
64 | * | 64 | * |
65 | * 1. Redistributions of source code must retain the above copyright | 65 | * 1. Redistributions of source code must retain the above copyright |
66 | * notice, this list of conditions and the following disclaimer. | 66 | * notice, this list of conditions and the following disclaimer. |
67 | * | 67 | * |
68 | * 2. Redistributions in binary form must reproduce the above copyright | 68 | * 2. Redistributions in binary form must reproduce the above copyright |
69 | * notice, this list of conditions and the following disclaimer in | 69 | * notice, this list of conditions and the following disclaimer in |
@@ -115,7 +115,9 @@ | |||
115 | #define PORT_STR "4433" | 115 | #define PORT_STR "4433" |
116 | #define PROTOCOL "tcp" | 116 | #define PROTOCOL "tcp" |
117 | 117 | ||
118 | int do_server(int port, int type, int *ret, int (*cb) (char *hostname, int s, unsigned char *context), unsigned char *context); | 118 | int do_server(int port, int type, int *ret, |
119 | int (*cb)(char *hostname, int s, unsigned char *context), | ||
120 | unsigned char *context); | ||
119 | #ifdef HEADER_X509_H | 121 | #ifdef HEADER_X509_H |
120 | int verify_callback(int ok, X509_STORE_CTX *ctx); | 122 | int verify_callback(int ok, X509_STORE_CTX *ctx); |
121 | #endif | 123 | #endif |
@@ -126,18 +128,20 @@ int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key); | |||
126 | int init_client(int *sock, char *server, char *port, int type, int af); | 128 | int init_client(int *sock, char *server, char *port, int type, int af); |
127 | int should_retry(int i); | 129 | int should_retry(int i); |
128 | int extract_port(char *str, short *port_ptr); | 130 | int extract_port(char *str, short *port_ptr); |
129 | int extract_host_port(char *str,char **host_ptr,unsigned char *ip,char **p); | 131 | int extract_host_port(char *str, char **host_ptr, unsigned char *ip, char **p); |
130 | 132 | ||
131 | long bio_dump_callback(BIO *bio, int cmd, const char *argp, | 133 | long bio_dump_callback(BIO *bio, int cmd, const char *argp, int argi, |
132 | int argi, long argl, long ret); | 134 | long argl, long ret); |
133 | 135 | ||
134 | #ifdef HEADER_SSL_H | 136 | #ifdef HEADER_SSL_H |
135 | void apps_ssl_info_callback(const SSL *s, int where, int ret); | 137 | void apps_ssl_info_callback(const SSL *s, int where, int ret); |
136 | void msg_cb(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg); | 138 | void msg_cb(int write_p, int version, int content_type, const void *buf, |
137 | void tlsext_cb(SSL *s, int client_server, int type, | 139 | size_t len, SSL *ssl, void *arg); |
138 | unsigned char *data, int len, | 140 | void tlsext_cb(SSL *s, int client_server, int type, unsigned char *data, |
139 | void *arg); | 141 | int len, void *arg); |
140 | #endif | 142 | #endif |
141 | 143 | ||
142 | int generate_cookie_callback(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len); | 144 | int generate_cookie_callback(SSL *ssl, unsigned char *cookie, |
143 | int verify_cookie_callback(SSL *ssl, unsigned char *cookie, unsigned int cookie_len); | 145 | unsigned int *cookie_len); |
146 | int verify_cookie_callback(SSL *ssl, unsigned char *cookie, | ||
147 | unsigned int cookie_len); | ||