From: Vitaly Chikunov Date: Mon, 21 Jan 2019 08:46:56 +0000 (+0300) Subject: Export bind_gost to allow local engine init X-Git-Tag: v3.0.0~314^2~4 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=1716316de77;p=openssl-gost%2Fengine.git Export bind_gost to allow local engine init Look at `test_params.c` for example. --- 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