summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/s_apps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/apps/s_apps.h')
-rw-r--r--src/lib/libssl/src/apps/s_apps.h67
1 files changed, 58 insertions, 9 deletions
diff --git a/src/lib/libssl/src/apps/s_apps.h b/src/lib/libssl/src/apps/s_apps.h
index 57af7c0f8c..ff18a72fe0 100644
--- a/src/lib/libssl/src/apps/s_apps.h
+++ b/src/lib/libssl/src/apps/s_apps.h
@@ -55,9 +55,64 @@
55 * copied and put under another distribution licence 55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58/* ====================================================================
59 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
60 *
61 * Redistribution and use in source and binary forms, with or without
62 * modification, are permitted provided that the following conditions
63 * are met:
64 *
65 * 1. Redistributions of source code must retain the above copyright
66 * notice, this list of conditions and the following disclaimer.
67 *
68 * 2. Redistributions in binary form must reproduce the above copyright
69 * notice, this list of conditions and the following disclaimer in
70 * the documentation and/or other materials provided with the
71 * distribution.
72 *
73 * 3. All advertising materials mentioning features or use of this
74 * software must display the following acknowledgment:
75 * "This product includes software developed by the OpenSSL Project
76 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
77 *
78 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
79 * endorse or promote products derived from this software without
80 * prior written permission. For written permission, please contact
81 * openssl-core@openssl.org.
82 *
83 * 5. Products derived from this software may not be called "OpenSSL"
84 * nor may "OpenSSL" appear in their names without prior written
85 * permission of the OpenSSL Project.
86 *
87 * 6. Redistributions of any form whatsoever must retain the following
88 * acknowledgment:
89 * "This product includes software developed by the OpenSSL Project
90 * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
91 *
92 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
93 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
94 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
96 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
97 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
98 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
99 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
100 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
101 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
102 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
103 * OF THE POSSIBILITY OF SUCH DAMAGE.
104 * ====================================================================
105 *
106 * This product includes cryptographic software written by Eric Young
107 * (eay@cryptsoft.com). This product includes software written by Tim
108 * Hudson (tjh@cryptsoft.com).
109 *
110 */
58 111
59#include <sys/types.h> 112#include <sys/types.h>
60#if (defined(VMS) || defined(__VMS)) && !defined(FD_SET) 113#include <openssl/opensslconf.h>
114
115#if defined(OPENSSL_SYS_VMS) && !defined(FD_SET)
61/* VAX C does not defined fd_set and friends, but it's actually quite simple */ 116/* VAX C does not defined fd_set and friends, but it's actually quite simple */
62/* These definitions are borrowed from SOCKETSHR. /Richard Levitte */ 117/* These definitions are borrowed from SOCKETSHR. /Richard Levitte */
63#define MAX_NOFILE 32 118#define MAX_NOFILE 32
@@ -87,13 +142,9 @@ typedef fd_mask fd_set;
87int do_server(int port, int *ret, int (*cb) (), char *context); 142int do_server(int port, int *ret, int (*cb) (), char *context);
88#ifdef HEADER_X509_H 143#ifdef HEADER_X509_H
89int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx); 144int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
90#else
91int MS_CALLBACK verify_callback(int ok, char *ctx);
92#endif 145#endif
93#ifdef HEADER_SSL_H 146#ifdef HEADER_SSL_H
94int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file); 147int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
95#else
96int set_cert_stuff(char *ctx, char *cert_file, char *key_file);
97#endif 148#endif
98int init_client(int *sock, char *server, int port); 149int init_client(int *sock, char *server, int port);
99int should_retry(int i); 150int should_retry(int i);
@@ -104,8 +155,6 @@ long MS_CALLBACK bio_dump_cb(BIO *bio, int cmd, const char *argp,
104 int argi, long argl, long ret); 155 int argi, long argl, long ret);
105 156
106#ifdef HEADER_SSL_H 157#ifdef HEADER_SSL_H
107void MS_CALLBACK apps_ssl_info_callback(SSL *s, int where, int ret); 158void MS_CALLBACK apps_ssl_info_callback(const SSL *s, int where, int ret);
108#else 159void MS_CALLBACK msg_cb(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg);
109void MS_CALLBACK apps_ssl_info_callback(char *s, int where, int ret);
110#endif 160#endif
111