From 1716316de77a041bd25bf6d0c87bd4a3b5d12010 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Mon, 21 Jan 2019 11:46:56 +0300 Subject: [PATCH] Export bind_gost to allow local engine init Look at `test_params.c` for example. --- gost_eng.c | 2 +- gost_lcl.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gost_eng.c b/gost_eng.c index 69f9975..74fe13e 100644 --- a/gost_eng.c +++ b/gost_eng.c @@ -164,7 +164,7 @@ static int gost_engine_destroy(ENGINE* e) { return 1; } -static int bind_gost(ENGINE* e, const char* id) { +int bind_gost(ENGINE* e, const char* id) { int ret = 0; if (id != NULL && strcmp(id, engine_gost_id) != 0) return 0; diff --git a/gost_lcl.h b/gost_lcl.h index 6a6130a..512d947 100644 --- a/gost_lcl.h +++ b/gost_lcl.h @@ -302,4 +302,6 @@ int pack_sign_cp(ECDSA_SIG *s, int order, unsigned char *sig, size_t *siglen); /* Returns pointer into EVP_PKEY structure */ BIGNUM *gost_get0_priv_key(const EVP_PKEY *pkey); +int bind_gost(ENGINE* e, const char* id); + #endif -- 2.39.2