projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bn/asm/rsaz-avx2.pl: constant-time gather procedure.
[openssl.git]
/
test
/
dtlsv1listentest.c
diff --git
a/test/dtlsv1listentest.c
b/test/dtlsv1listentest.c
index 4b616a77ffb46eca8885af08fbda9a7c1e86b8dc..6eef1b5e4ebd7e7c5e0517fb069c52ac3d8a9a5f 100644
(file)
--- a/
test/dtlsv1listentest.c
+++ b/
test/dtlsv1listentest.c
@@
-56,12
+56,13
@@
*/
#include <string.h>
*/
#include <string.h>
-#include <sys/socket.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/conf.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/conf.h>
-#include <openssl/engine.h>
+#ifndef OPENSSL_NO_ENGINE
+ #include <openssl/engine.h>
+#endif
#include "e_os.h"
/* Just a ClientHello without a cookie */
#include "e_os.h"
/* Just a ClientHello without a cookie */
@@
-378,11
+379,7
@@
int main(void)
char *data;
long datalen;
int ret, success = 0;
char *data;
long datalen;
int ret, success = 0;
- size_t i;
-
- /* Initialise libssl */
- SSL_load_error_strings();
- SSL_library_init();
+ long i;
ctx = SSL_CTX_new(DTLS_server_method());
if (ctx == NULL || peer == NULL)
ctx = SSL_CTX_new(DTLS_server_method());
if (ctx == NULL || peer == NULL)
@@
-402,7
+399,7
@@
int main(void)
SSL_set_wbio(ssl, outbio);
success = 1;
SSL_set_wbio(ssl, outbio);
success = 1;
- for (i = 0; i < OSSL_NELEM(testpackets) && success; i++) {
+ for (i = 0; i <
(long)
OSSL_NELEM(testpackets) && success; i++) {
inbio = BIO_new_mem_buf((char *)testpackets[i].in,
testpackets[i].inlen);
if (inbio == NULL) {
inbio = BIO_new_mem_buf((char *)testpackets[i].in,
testpackets[i].inlen);
if (inbio == NULL) {
@@
-461,15
+458,7
@@
int main(void)
SSL_free(ssl);
SSL_CTX_free(ctx);
BIO_free(inbio);
SSL_free(ssl);
SSL_CTX_free(ctx);
BIO_free(inbio);
- /* Unitialise libssl */
-#ifndef OPENSSL_NO_ENGINE
- ENGINE_cleanup();
-#endif
- CONF_modules_unload(1);
- CRYPTO_cleanup_all_ex_data();
- EVP_cleanup();
- ERR_remove_thread_state(NULL);
- ERR_free_strings();
+ OPENSSL_free(peer);
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp(stderr);
#endif
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp(stderr);
#endif