summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-02-05 21:28:09 +0000
committerBodo Möller <bodo@openssl.org>2000-02-05 21:28:09 +0000
commit29a28ee50321fd43e043a45874dda0b75d32a1c2 (patch)
tree74c51b4a31c4fb84be6a449a95c16ae2184dbff6 /crypto
parent66430207a4de2160082d84bb69feedde9cf7ac83 (diff)
Cosmetic changes.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bn/exptest.c1
-rw-r--r--crypto/dsa/dsatest.c2
-rw-r--r--crypto/err/err.h6
3 files changed, 6 insertions, 3 deletions
diff --git a/crypto/bn/exptest.c b/crypto/bn/exptest.c
index b6c7b18a3a..3e86f2ea0e 100644
--- a/crypto/bn/exptest.c
+++ b/crypto/bn/exptest.c
@@ -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");
diff --git a/crypto/dsa/dsatest.c b/crypto/dsa/dsatest.c
index 0705060071..309a7cda89 100644
--- a/crypto/dsa/dsatest.c
+++ b/crypto/dsa/dsatest.c
@@ -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)
@@ -199,6 +200,7 @@ end:
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)
{
diff --git a/crypto/err/err.h b/crypto/err/err.h
index 131372c91b..15bafbff43 100644
--- a/crypto/err/err.h
+++ b/crypto/err/err.h
@@ -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);