108
108
* Hudson (tjh@cryptsoft.com).
111
#if !defined(OPENSSL_SYS_NETWARE) /* conflicts with winsock2 stuff on netware */
112
112
#include <sys/types.h>
113
114
#include <openssl/opensslconf.h>
115
116
#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)
147
148
#define PORT_STR "4433"
148
149
#define PROTOCOL "tcp"
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
152
#ifdef HEADER_X509_H
152
153
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
154
155
#ifdef HEADER_SSL_H
155
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);
157
int init_client(int *sock, char *server, int port);
159
int init_client(int *sock, char *server, int port, int type);
158
160
int should_retry(int i);
159
161
int extract_port(char *str, short *port_ptr);
160
162
int extract_host_port(char *str,char **host_ptr,unsigned char *ip,short *p);
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
165
int argi, long argl, long ret);
165
167
#ifdef HEADER_SSL_H