summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec
diff options
context:
space:
mode:
authormarkus <>2003-05-11 21:36:59 +0000
committermarkus <>2003-05-11 21:36:59 +0000
commit9cea7b85baecb1a02a3ea617de73d9693a9792eb (patch)
treeb0ca83a03e35572831c5818cd2011868d462a5d1 /src/lib/libcrypto/ec
parentf8f1d7fabf136ce9810602509c477d2c42bf6d1c (diff)
downloadopenbsd-9cea7b85baecb1a02a3ea617de73d9693a9792eb.tar.gz
openbsd-9cea7b85baecb1a02a3ea617de73d9693a9792eb.tar.bz2
openbsd-9cea7b85baecb1a02a3ea617de73d9693a9792eb.zip
import 0.9.7b (without idea and rc5)
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r--src/lib/libcrypto/ec/ectest.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ectest.c b/src/lib/libcrypto/ec/ectest.c
index eab46cc080..345d3e4289 100644
--- a/src/lib/libcrypto/ec/ectest.c
+++ b/src/lib/libcrypto/ec/ectest.c
@@ -55,6 +55,11 @@
55 55
56#include <stdio.h> 56#include <stdio.h>
57#include <stdlib.h> 57#include <stdlib.h>
58#ifdef FLAT_INC
59#include "e_os.h"
60#else
61#include "../e_os.h"
62#endif
58#include <string.h> 63#include <string.h>
59#include <time.h> 64#include <time.h>
60 65
@@ -65,14 +70,16 @@ int main(int argc, char * argv[]) { puts("Elliptic curves are disabled."); retur
65 70
66 71
67#include <openssl/ec.h> 72#include <openssl/ec.h>
73#ifndef OPENSSL_NO_ENGINE
68#include <openssl/engine.h> 74#include <openssl/engine.h>
75#endif
69#include <openssl/err.h> 76#include <openssl/err.h>
70 77
71#define ABORT do { \ 78#define ABORT do { \
72 fflush(stdout); \ 79 fflush(stdout); \
73 fprintf(stderr, "%s:%d: ABORT\n", __FILE__, __LINE__); \ 80 fprintf(stderr, "%s:%d: ABORT\n", __FILE__, __LINE__); \
74 ERR_print_errors_fp(stderr); \ 81 ERR_print_errors_fp(stderr); \
75 exit(1); \ 82 EXIT(1); \
76} while (0) 83} while (0)
77 84
78#if 0 85#if 0
@@ -623,7 +630,9 @@ int main(int argc, char *argv[])
623 if (P_384) EC_GROUP_free(P_384); 630 if (P_384) EC_GROUP_free(P_384);
624 if (P_521) EC_GROUP_free(P_521); 631 if (P_521) EC_GROUP_free(P_521);
625 632
633#ifndef OPENSSL_NO_ENGINE
626 ENGINE_cleanup(); 634 ENGINE_cleanup();
635#endif
627 CRYPTO_cleanup_all_ex_data(); 636 CRYPTO_cleanup_all_ex_data();
628 ERR_free_strings(); 637 ERR_free_strings();
629 ERR_remove_state(0); 638 ERR_remove_state(0);