/*
* Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
*
- * Licensed under the OpenSSL license (the "License"). You may not use
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
#include <string.h>
-#include <internal/nelem.h>
+#include <openssl/provider.h>
+#include "internal/nelem.h"
#include "testutil.h"
+static OSSL_PROVIDER *prov = NULL;
+
#ifndef OPENSSL_NO_MD2
# include <openssl/evp.h>
# include <openssl/md2.h>
}
#endif
+int global_init(void)
+{
+ prov = OSSL_PROVIDER_load(NULL, "legacy");
+
+ return prov != NULL;
+}
+void cleanup_tests(void)
+{
+ OSSL_PROVIDER_unload(prov);
+}
+
int setup_tests(void)
{
#ifndef OPENSSL_NO_MD2