Commit a9be3af5 authored by Ulf Möller's avatar Ulf Möller
Browse files

Remove NOPROTO definitions and error code comments.

parent 47339f61
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@

 Changes between 0.9.2b and 0.9.3

  *) Remove NOPROTO sections and error code comments.
     [Ulf Möller]

  *) Partial rewrite of the DEF file generator to now parse the ANSI
     prototypes.
     [Steve Henson]
+0 −5
Original line number Diff line number Diff line
@@ -69,12 +69,7 @@
#  include "bss_file.c"
#endif

#ifndef NOPROTO
int app_init(long mesgwin);
#else
int app_init();
#endif

#ifdef undef /* never finished - probably never will be :-) */
int args_from_file(char *file, int *argc, char **argv[])
	{
+0 −9
Original line number Diff line number Diff line
@@ -127,20 +127,11 @@ typedef struct args_st
	int count;
        } 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();
#endif

#define FORMAT_UNDEF    0
#define FORMAT_ASN1     1
#define FORMAT_TEXT     2
+0 −22
Original line number Diff line number Diff line
@@ -156,7 +156,6 @@ extern int EF_PROTECT_BELOW;
extern int EF_ALIGNMENT;
#endif

#ifndef NOPROTO
static int add_oid_section(LHASH *conf);
static void lookup_fail(char *name,char *tag);
static int MS_CALLBACK key_callback(char *buf,int len,int verify);
@@ -187,27 +186,6 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, const EVP_MD *dgst,
	LHASH *conf);
static int do_revoke(X509 *x509, TXT_DB *db);
static int check_time_format(char *str);
#else
static int add_oid_section();
static void lookup_fail();
static int MS_CALLBACK key_callback();
static unsigned long index_serial_hash();
static int index_serial_cmp();
static unsigned long index_name_hash();
static int index_name_qual();
static int index_name_cmp();
static int fix_data();
static BIGNUM *load_serial();
static int save_serial();
static int certify();
static int certify_cert();
static int certify_spkac();
static void write_new_certificate();
static int do_body();
static int do_revoke();
static int check_time_format();
#endif

static LHASH *conf;
static char *key=NULL;
static char *section=NULL;
+0 −5
Original line number Diff line number Diff line
@@ -88,12 +88,7 @@ static char *crl_usage[]={
NULL
};

#ifndef NOPROTO
static X509_CRL *load_crl(char *file, int format);
#else
static X509_CRL *load_crl();
#endif

static BIO *bio_out=NULL;

int MAIN(int argc, char **argv)
Loading