~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to apps/s_apps.h

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213213742-7em5nrw5c7ceegyd
Tags: 0.9.8a-5
Stop ssh from crashing randomly on sparc (Closes: #335912)
Patch from upstream cvs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
 * Hudson (tjh@cryptsoft.com).
109
109
 *
110
110
 */
111
 
 
 
111
#if !defined(OPENSSL_SYS_NETWARE)  /* conflicts with winsock2 stuff on netware */
112
112
#include <sys/types.h>
 
113
#endif
113
114
#include <openssl/opensslconf.h>
114
115
 
115
116
#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)
147
148
#define PORT_STR        "4433"
148
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
152
#ifdef HEADER_X509_H
152
153
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
153
154
#endif
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);
156
158
#endif
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);
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
165
        int argi, long argl, long ret);
164
166
 
165
167
#ifdef HEADER_SSL_H