X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Fapps.h;h=d4c88ab42d43d54c454faea25df539015a749b25;hb=f76d8c47470094a5cb14e937ef3c30db1d97389b;hp=528828cf63f4fd24e57fbd4e7344f7ff530f259f;hpb=d02b48c63a58ea4367a0e905979f140b7d090f86;p=openssl.git diff --git a/apps/apps.h b/apps/apps.h index 528828cf63..d4c88ab42d 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -1,5 +1,5 @@ /* apps/apps.h */ -/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written @@ -59,18 +59,25 @@ #ifndef HEADER_APPS_H #define HEADER_APPS_H -#ifdef FLAT_INC -#include "e_os.h" -#else -#include "../e_os.h" -#endif +#include "openssl/e_os.h" -#include "buffer.h" -#include "bio.h" -#include "crypto.h" +#include +#include +#include +#include #include "progs.h" -#ifdef WIN16 +int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn); +int app_RAND_write_file(const char *file, BIO *bio_e); +/* When `file' is NULL, use defaults. + * `bio_e' is for error messages. */ +void app_RAND_allow_write_file(void); +long app_RAND_load_files(char *file); /* `file' is a list of files to read, + * separated by LIST_SEPARATOR_CHAR + * (see e_os.h). The string is + * destroyed! */ + +#ifdef NO_STDIO BIO_METHOD *BIO_s_file(); #endif @@ -92,7 +99,7 @@ extern BIO *bio_err; #else #define MAIN(a,v) PROG(a,v) -#include "conf.h" +#include extern LHASH *config; extern char *default_config_file; extern BIO *bio_err; @@ -126,25 +133,20 @@ extern BIO *bio_err; #endif typedef struct args_st - { - char **data; + { + char **data; int count; - } ARGS; + } ARGS; -#ifndef NOPROTO int should_retry(int i); int args_from_file(char *file, int *argc, char **argv[]); int str2fmt(char *s); void program_name(char *in,char *out,int size); int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]); -#else -int should_retry(); -int args_from_file(); -int str2fmt(); -void program_name(); -int chopup_args(); +int MS_CALLBACK key_cb(char *buf,int len,int verify,void *u); +#ifdef HEADER_X509_H +int dump_cert_text(BIO *out, X509 *x); #endif - #define FORMAT_UNDEF 0 #define FORMAT_ASN1 1 #define FORMAT_TEXT 2