diff options
Diffstat (limited to 'src/lib/libssl/src/apps/s_apps.h')
-rw-r--r-- | src/lib/libssl/src/apps/s_apps.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/libssl/src/apps/s_apps.h b/src/lib/libssl/src/apps/s_apps.h index 48e7dbaddc..023faa8467 100644 --- a/src/lib/libssl/src/apps/s_apps.h +++ b/src/lib/libssl/src/apps/s_apps.h | |||
@@ -108,8 +108,9 @@ | |||
108 | * Hudson (tjh@cryptsoft.com). | 108 | * Hudson (tjh@cryptsoft.com). |
109 | * | 109 | * |
110 | */ | 110 | */ |
111 | 111 | #if !defined(OPENSSL_SYS_NETWARE) /* conflicts with winsock2 stuff on netware */ | |
112 | #include <sys/types.h> | 112 | #include <sys/types.h> |
113 | #endif | ||
113 | #include <openssl/opensslconf.h> | 114 | #include <openssl/opensslconf.h> |
114 | 115 | ||
115 | #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) | 116 | #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) |
@@ -147,22 +148,26 @@ typedef fd_mask fd_set; | |||
147 | #define PORT_STR "4433" | 148 | #define PORT_STR "4433" |
148 | #define PROTOCOL "tcp" | 149 | #define PROTOCOL "tcp" |
149 | 150 | ||
150 | int do_server(int port, int *ret, int (*cb) (), char *context); | 151 | int do_server(int port, int type, int *ret, int (*cb) (char *hostname, int s, unsigned char *context), unsigned char *context); |
151 | #ifdef HEADER_X509_H | 152 | #ifdef HEADER_X509_H |
152 | int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx); | 153 | int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx); |
153 | #endif | 154 | #endif |
154 | #ifdef HEADER_SSL_H | 155 | #ifdef HEADER_SSL_H |
155 | int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file); | 156 | int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file); |
157 | int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key); | ||
156 | #endif | 158 | #endif |
157 | int init_client(int *sock, char *server, char *port, int af); | 159 | int init_client(int *sock, char *server, int port, int type, int af); |
158 | int should_retry(int i); | 160 | int should_retry(int i); |
159 | int extract_port(char *str, short *port_ptr); | 161 | int extract_port(char *str, short *port_ptr); |
160 | int extract_host_port(char *str,char **host_ptr,unsigned char *ip,char **p); | 162 | int extract_host_port(char *str,char **host_ptr,unsigned char *ip,char **p); |
161 | 163 | ||
162 | long MS_CALLBACK bio_dump_cb(BIO *bio, int cmd, const char *argp, | 164 | long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp, |
163 | int argi, long argl, long ret); | 165 | int argi, long argl, long ret); |
164 | 166 | ||
165 | #ifdef HEADER_SSL_H | 167 | #ifdef HEADER_SSL_H |
166 | void MS_CALLBACK apps_ssl_info_callback(const SSL *s, int where, int ret); | 168 | void MS_CALLBACK apps_ssl_info_callback(const SSL *s, int where, int ret); |
167 | void MS_CALLBACK msg_cb(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg); | 169 | void MS_CALLBACK msg_cb(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg); |
170 | void MS_CALLBACK tlsext_cb(SSL *s, int client_server, int type, | ||
171 | unsigned char *data, int len, | ||
172 | void *arg); | ||
168 | #endif | 173 | #endif |