X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fs_apps.h;h=435741547abd9180fbd778f250e06274c75c3d93;hp=55dc9f1ffcbc34ea09176b5d935ad510201e7c84;hb=dba317774555fbd5bccdfc5270fc486e0d02d9db;hpb=310115448188415e270bb0bef958c7c130939838 diff --git a/apps/s_apps.h b/apps/s_apps.h index 55dc9f1ffc..435741547a 100644 --- a/apps/s_apps.h +++ b/apps/s_apps.h @@ -1,4 +1,3 @@ -/* apps/s_apps.h */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -147,20 +146,14 @@ typedef fd_mask fd_set; # define FD_ZERO(p) memset((p), 0, sizeof(*(p))) #endif -#define PORT 4433 -#define PORT_STR "4433" +#define PORT "4433" #define PROTOCOL "tcp" -int do_server(int port, int type, int *ret, - int (*cb) (char *hostname, int s, int stype, +int do_server(int *accept_sock, const char *host, const char *port, + int family, int type, + int (*cb) (const char *hostname, int s, int stype, unsigned char *context), unsigned char *context, int naccept); -#ifndef NO_SYS_UN_H -int do_server_unix(const char *path, int *ret, - int (*cb) (char *hostname, int s, int stype, - unsigned char *context), unsigned char *context, - int naccept); -#endif #ifdef HEADER_X509_H int verify_callback(int ok, X509_STORE_CTX *ctx); #endif @@ -173,14 +166,9 @@ int ssl_print_point_formats(BIO *out, SSL *s); int ssl_print_curves(BIO *out, SSL *s, int noshared); #endif int ssl_print_tmp_key(BIO *out, SSL *s); -int init_client(int *sock, const char *server, int port, int type); -#ifndef NO_SYS_UN_H -int init_client_unix(int *sock, const char *server); -#endif +int init_client(int *sock, const char *host, const char *port, + int family, int type); int should_retry(int i); -int extract_port(const char *str, unsigned short *port_ptr); -int extract_host_port(char *str, char **host_ptr, unsigned char *ip, - unsigned short *p); long bio_dump_callback(BIO *bio, int cmd, const char *argp, int argi, long argl, long ret); @@ -189,7 +177,7 @@ long bio_dump_callback(BIO *bio, int cmd, const char *argp, void apps_ssl_info_callback(const SSL *s, int where, int ret); void msg_cb(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg); -void tlsext_cb(SSL *s, int client_server, int type, unsigned char *data, +void tlsext_cb(SSL *s, int client_server, int type, const unsigned char *data, int len, void *arg); #endif @@ -204,10 +192,10 @@ void ssl_ctx_set_excert(SSL_CTX *ctx, SSL_EXCERT *exc); void ssl_excert_free(SSL_EXCERT *exc); int args_excert(int option, SSL_EXCERT **pexc); int load_excert(SSL_EXCERT **pexc); +void print_verify_detail(SSL *s, BIO *bio); void print_ssl_summary(SSL *s); #ifdef HEADER_SSL_H -int config_ctx(SSL_CONF_CTX *cctx, STACK_OF(OPENSSL_STRING) *str, - SSL_CTX *ctx, int no_ecdhe, int no_jpake); +int config_ctx(SSL_CONF_CTX *cctx, STACK_OF(OPENSSL_STRING) *str, SSL_CTX *ctx); int ssl_ctx_add_crls(SSL_CTX *ctx, STACK_OF(X509_CRL) *crls, int crl_download); int ssl_load_stores(SSL_CTX *ctx, const char *vfyCApath,