diff options
Diffstat (limited to 'src/lib/libcrypto/dsa/dsatest.c')
-rw-r--r-- | src/lib/libcrypto/dsa/dsatest.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lib/libcrypto/dsa/dsatest.c b/src/lib/libcrypto/dsa/dsatest.c index 4734ce4af8..12da64f9f4 100644 --- a/src/lib/libcrypto/dsa/dsatest.c +++ b/src/lib/libcrypto/dsa/dsatest.c | |||
@@ -61,13 +61,14 @@ | |||
61 | #include <string.h> | 61 | #include <string.h> |
62 | #include <sys/types.h> | 62 | #include <sys/types.h> |
63 | #include <sys/stat.h> | 63 | #include <sys/stat.h> |
64 | |||
65 | #include "../e_os.h" | ||
66 | |||
67 | #include <openssl/crypto.h> | 64 | #include <openssl/crypto.h> |
68 | #include <openssl/rand.h> | 65 | #include <openssl/rand.h> |
69 | #include <openssl/bio.h> | 66 | #include <openssl/bio.h> |
70 | #include <openssl/err.h> | 67 | #include <openssl/err.h> |
68 | #include <openssl/engine.h> | ||
69 | #ifdef OPENSSL_SYS_WINDOWS | ||
70 | #include "../bio/bss_file.c" | ||
71 | #endif | ||
71 | 72 | ||
72 | #ifdef OPENSSL_NO_DSA | 73 | #ifdef OPENSSL_NO_DSA |
73 | int main(int argc, char *argv[]) | 74 | int main(int argc, char *argv[]) |
@@ -211,16 +212,10 @@ end: | |||
211 | BIO_free(bio_err); | 212 | BIO_free(bio_err); |
212 | bio_err = NULL; | 213 | bio_err = NULL; |
213 | } | 214 | } |
214 | EXIT(!ret); | 215 | exit(!ret); |
215 | return(0); | 216 | return(0); |
216 | } | 217 | } |
217 | 218 | ||
218 | static int cb_exit(int ec) | ||
219 | { | ||
220 | EXIT(ec); | ||
221 | return(0); /* To keep some compilers quiet */ | ||
222 | } | ||
223 | |||
224 | static void MS_CALLBACK dsa_cb(int p, int n, void *arg) | 219 | static void MS_CALLBACK dsa_cb(int p, int n, void *arg) |
225 | { | 220 | { |
226 | char c='*'; | 221 | char c='*'; |
@@ -236,7 +231,7 @@ static void MS_CALLBACK dsa_cb(int p, int n, void *arg) | |||
236 | if (!ok && (p == 0) && (num > 1)) | 231 | if (!ok && (p == 0) && (num > 1)) |
237 | { | 232 | { |
238 | BIO_printf((BIO *)arg,"error in dsatest\n"); | 233 | BIO_printf((BIO *)arg,"error in dsatest\n"); |
239 | cb_exit(1); | 234 | exit(1); |
240 | } | 235 | } |
241 | } | 236 | } |
242 | #endif | 237 | #endif |