Skip to content

Commit

Permalink
Cosmetic changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
45264 committed Feb 5, 2000
1 parent 6643020 commit 29a28ee
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 19 deletions.
3 changes: 1 addition & 2 deletions apps/apps.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include "progs.h"

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);
Expand Down Expand Up @@ -114,7 +113,7 @@ extern BIO *bio_err;
#define do_pipe_sig()
#endif

#if defined(MONOLITH) && !defined(SSLEAY)
#if defined(MONOLITH)
# define apps_startup() do_pipe_sig()
#else
# if defined(MSDOS) || defined(WIN16) || defined(WIN32)
Expand Down
5 changes: 1 addition & 4 deletions apps/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#define SSLEAY /* turn off a few special case MONOLITH macros */
#define USE_SOCKETS /* needed for the _O_BINARY defs in the MS world */
#define SSLEAY_SRC
#include "apps.h"
#include "progs.h"
#include "s_apps.h"
#include <openssl/err.h>

Expand Down Expand Up @@ -374,5 +373,3 @@ static unsigned long MS_CALLBACK hash(FUNCTION *a)
{
return(lh_strhash(a->name));
}

#undef SSLEAY
7 changes: 2 additions & 5 deletions apps/progs.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This file was generated by progs.pl. */
/* apps/progs.h */
/* automatically generated by progs.pl for openssl.c */

extern int verify_main(int argc,char *argv[]);
extern int asn1parse_main(int argc,char *argv[]);
Expand Down Expand Up @@ -32,8 +33,6 @@ extern int pkcs8_main(int argc,char *argv[]);
extern int spkac_main(int argc,char *argv[]);
extern int smime_main(int argc,char *argv[]);

#ifdef SSLEAY_SRC /* Defined only in openssl.c. */

#define FUNC_TYPE_GENERAL 1
#define FUNC_TYPE_MD 2
#define FUNC_TYPE_CIPHER 3
Expand Down Expand Up @@ -246,5 +245,3 @@ FUNCTION functions[] = {
#endif
{0,NULL,NULL}
};
#endif

7 changes: 2 additions & 5 deletions apps/progs.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/local/bin/perl

print "/* This file was generated by progs.pl. */\n\n";
print "/* apps/progs.h */\n";
print "/* automatically generated by progs.pl for openssl.c */\n\n";

grep(s/^asn1pars$/asn1parse/,@ARGV);

Expand All @@ -9,8 +10,6 @@

print <<'EOF';
#ifdef SSLEAY_SRC /* Defined only in openssl.c. */
#define FUNC_TYPE_GENERAL 1
#define FUNC_TYPE_MD 2
#define FUNC_TYPE_CIPHER 3
Expand Down Expand Up @@ -76,5 +75,3 @@
}

print "\t{0,NULL,NULL}\n\t};\n";
print "#endif\n\n";

1 change: 1 addition & 0 deletions crypto/bn/exptest.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ int main(int argc, char *argv[])
BN_free(b);
BN_free(m);
BN_CTX_free(ctx);
ERR_remove_state(0);
CRYPTO_mem_leaks(out);
BIO_free(out);
printf(" done\n");
Expand Down
2 changes: 2 additions & 0 deletions crypto/dsa/dsatest.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ int main(int argc, char **argv)
unsigned char sig[256];
unsigned int siglen;

ERR_load_crypto_strings();
RAND_seed(rnd_seed, sizeof rnd_seed);

if (bio_err == NULL)
Expand Down Expand Up @@ -199,6 +200,7 @@ int main(int argc, char **argv)
if (!ret)
ERR_print_errors(bio_err);
if (dsa != NULL) DSA_free(dsa);
ERR_remove_state(0);
CRYPTO_mem_leaks(bio_err);
if (bio_err != NULL)
{
Expand Down
6 changes: 3 additions & 3 deletions crypto/err/err.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ void ERR_print_errors(BIO *bp);
void ERR_add_error_data(int num, ...);
#endif
void ERR_load_strings(int lib,ERR_STRING_DATA str[]);
void ERR_load_ERR_strings(void );
void ERR_load_crypto_strings(void );
void ERR_free_strings(void );
void ERR_load_ERR_strings(void);
void ERR_load_crypto_strings(void);
void ERR_free_strings(void);

void ERR_remove_state(unsigned long pid); /* if zero we look it up */
ERR_STATE *ERR_get_state(void);
Expand Down

0 comments on commit 29a28ee

Please sign in to comment.