**********************************************************************/
#include <openssl/core_dispatch.h>
+#include <openssl/core_names.h>
#include "gost_prov.h"
#include "gost_lcl.h"
#include "prov/err.h" /* libprov err functions */
static int gost_get_params(void *provctx, OSSL_PARAM *params)
{
+ OSSL_PARAM *p;
+
+ p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_NAME);
+ if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, "OpenSSL GOST Provider"))
+ return 0;
+ p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_STATUS);
+ if (p != NULL && !OSSL_PARAM_set_int(p, 1)) /* We never fail. */
+ return 0;
+
return 1;
}
my $provider_info = <<EOINF;
Providers:
gostprov
+ name: OpenSSL GOST Provider
+ status: active
EOINF
# Normally, this test recipe tests the default GOST provider. However, it's