OLD | NEW |
1 /* test vectors from p1ovect1.txt */ | 1 /* test vectors from p1ovect1.txt */ |
2 | 2 |
3 #include <stdio.h> | 3 #include <stdio.h> |
4 #include <string.h> | 4 #include <string.h> |
5 | 5 |
6 #include "e_os.h" | 6 #include "e_os.h" |
7 | 7 |
8 #include <openssl/crypto.h> | 8 #include <openssl/crypto.h> |
9 #include <openssl/err.h> | 9 #include <openssl/err.h> |
10 #include <openssl/rand.h> | 10 #include <openssl/rand.h> |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 printf("Corrupt data decrypted!\n"); | 321 printf("Corrupt data decrypted!\n"); |
322 err = 1; | 322 err = 1; |
323 } | 323 } |
324 } | 324 } |
325 } | 325 } |
326 next: | 326 next: |
327 RSA_free(key); | 327 RSA_free(key); |
328 } | 328 } |
329 | 329 |
330 CRYPTO_cleanup_all_ex_data(); | 330 CRYPTO_cleanup_all_ex_data(); |
331 ERR_remove_state(0); | 331 ERR_remove_thread_state(NULL); |
332 | 332 |
333 CRYPTO_mem_leaks_fp(stderr); | 333 CRYPTO_mem_leaks_fp(stderr); |
334 | 334 |
335 #ifdef OPENSSL_SYS_NETWARE | 335 #ifdef OPENSSL_SYS_NETWARE |
336 if (err) printf("ERROR: %d\n", err); | 336 if (err) printf("ERROR: %d\n", err); |
337 #endif | 337 #endif |
338 return err; | 338 return err; |
339 } | 339 } |
340 #endif | 340 #endif |
OLD | NEW |