#include <string.h>
-#include "e_os.h"
+#include "internal/nelem.h"
#include "ssltestlib.h"
#include "testutil.h"
static int mempacket_test_new(BIO *bio)
{
MEMPACKET_TEST_CTX *ctx;
-
+
if (!TEST_ptr(ctx = OPENSSL_zalloc(sizeof(*ctx))))
return 0;
if (!TEST_ptr(ctx->pkts = sk_MEMPACKET_new_null())) {
return 1;
}
+
+void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl)
+{
+ SSL_shutdown(clientssl);
+ SSL_shutdown(serverssl);
+ SSL_free(serverssl);
+ SSL_free(clientssl);
+}