summaryrefslogtreecommitdiffstats
path: root/crypto/ecdh
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-28 18:54:30 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-28 18:54:30 +0000
commit55f78baf32f213301a0e8d6c6e7f40bd3b9857b1 (patch)
tree1daf577fe941ef129c8657f231b060b786a03d4b /crypto/ecdh
parent6c359479d7755e6f228196e17fcdc98a05724d78 (diff)
Have all tests use EXIT() to exit rather than exit(), since the latter doesn't
always give the expected result on some platforms.
Diffstat (limited to 'crypto/ecdh')
-rw-r--r--crypto/ecdh/ecdhtest.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/ecdh/ecdhtest.c b/crypto/ecdh/ecdhtest.c
index 32b6a9ab89..8af35322bb 100644
--- a/crypto/ecdh/ecdhtest.c
+++ b/crypto/ecdh/ecdhtest.c
@@ -70,6 +70,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#include "../e_os.h"
+
#ifdef OPENSSL_SYS_WINDOWS
#include "../bio/bss_file.c"
#endif
@@ -298,7 +301,7 @@ int main(int argc, char *argv[])
RAND_seed(rnd_seed, sizeof rnd_seed);
out=BIO_new(BIO_s_file());
- if (out == NULL) exit(1);
+ if (out == NULL) EXIT(1);
BIO_set_fp(out,stdout,BIO_NOCLOSE);
if ((ctx=BN_CTX_new()) == NULL) goto err;
@@ -330,7 +333,7 @@ err:
CRYPTO_cleanup_all_ex_data();
ERR_remove_state(0);
CRYPTO_mem_leaks_fp(stderr);
- exit(ret);
+ EXIT(ret);
return(ret);
}