OLD | NEW |
1 /* apps/s_apps.h */ | 1 /* apps/s_apps.h */ |
2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
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 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 */ | 110 */ |
111 #if !defined(OPENSSL_SYS_NETWARE) /* conflicts with winsock2 stuff on netware *
/ | 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 #endif |
114 #include <openssl/opensslconf.h> | 114 #include <openssl/opensslconf.h> |
115 | 115 |
116 #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) | 116 #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) |
117 #include <conio.h> | 117 #include <conio.h> |
118 #endif | 118 #endif |
119 | 119 |
120 #ifdef OPENSSL_SYS_MSDOS | 120 #if defined(OPENSSL_SYS_MSDOS) && !defined(_WIN32) |
121 #define _kbhit kbhit | 121 #define _kbhit kbhit |
122 #endif | 122 #endif |
123 | 123 |
124 #if defined(OPENSSL_SYS_VMS) && !defined(FD_SET) | 124 #if defined(OPENSSL_SYS_VMS) && !defined(FD_SET) |
125 /* VAX C does not defined fd_set and friends, but it's actually quite simple */ | 125 /* VAX C does not defined fd_set and friends, but it's actually quite simple */ |
126 /* These definitions are borrowed from SOCKETSHR. /Richard Levitte */ | 126 /* These definitions are borrowed from SOCKETSHR. /Richard Levitte */ |
127 #define MAX_NOFILE 32 | 127 #define MAX_NOFILE 32 |
128 #define NBBY 8 /* number of bits in a byte */ | 128 #define NBBY 8 /* number of bits in a byte */ |
129 | 129 |
130 #ifndef FD_SETSIZE | 130 #ifndef FD_SETSIZE |
(...skipping 24 matching lines...) Expand all Loading... |
155 #ifdef HEADER_SSL_H | 155 #ifdef HEADER_SSL_H |
156 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); | 157 int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key); |
158 #endif | 158 #endif |
159 int init_client(int *sock, char *server, int port, int type); | 159 int init_client(int *sock, char *server, int port, int type); |
160 int should_retry(int i); | 160 int should_retry(int i); |
161 int extract_port(char *str, short *port_ptr); | 161 int extract_port(char *str, short *port_ptr); |
162 int extract_host_port(char *str,char **host_ptr,unsigned char *ip,short *p); | 162 int extract_host_port(char *str,char **host_ptr,unsigned char *ip,short *p); |
163 | 163 |
164 long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp, | 164 long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp, |
165 » int argi, long argl, long ret); | 165 » » » » int argi, long argl, long ret); |
166 | 166 |
167 #ifdef HEADER_SSL_H | 167 #ifdef HEADER_SSL_H |
168 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); |
169 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, | 170 void MS_CALLBACK tlsext_cb(SSL *s, int client_server, int type, |
171 unsigned char *data, int len, | 171 unsigned char *data, int len, |
172 void *arg); | 172 void *arg); |
173 #endif | 173 #endif |
174 | 174 |
175 int MS_CALLBACK generate_cookie_callback(SSL *ssl, unsigned char *cookie, unsign
ed int *cookie_len); | 175 int MS_CALLBACK generate_cookie_callback(SSL *ssl, unsigned char *cookie, unsign
ed int *cookie_len); |
176 int MS_CALLBACK verify_cookie_callback(SSL *ssl, unsigned char *cookie, unsigned
int cookie_len); | 176 int MS_CALLBACK verify_cookie_callback(SSL *ssl, unsigned char *cookie, unsigned
int cookie_len); |
177 | |
178 unsigned char *next_protos_parse(unsigned short *outlen, const char *in); | |
OLD | NEW |