/*
- * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
goto end;
if (debug)
- printf("Channel established\n");
+ TEST_info("Channel established");
/* For record MTU values between 500 and 539, call DTLS_get_data_mtu()
* to query the payload MTU which will fit. */
goto end;
reclen = BIO_read(sc_bio, buf, sizeof(buf));
if (debug)
- printf("record %"OSSLzu" for payload %"OSSLzu"\n", reclen, s);
+ TEST_info("record %zu for payload %zu", reclen, s);
for (i = 0; i < 30; i++) {
/* DTLS_get_data_mtu() with record MTU 500+i returned mtus[i] ... */
return ret;
}
-void register_tests()
+int setup_tests()
{
ADD_TEST(run_mtu_tests);
+ return 1;
}