]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Export bind_gost to allow local engine init
authorVitaly Chikunov <vt@altlinux.org>
Mon, 21 Jan 2019 08:46:56 +0000 (11:46 +0300)
committerVitaly Chikunov <vt@altlinux.org>
Mon, 21 Jan 2019 08:58:20 +0000 (11:58 +0300)
Look at `test_params.c` for example.

gost_eng.c
gost_lcl.h

index 69f99757c2ae704a324930297ee71eef0502963e..74fe13e205209c984c5d6e146875d67cec425256 100644 (file)
@@ -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;
index 6a6130aa62e5a7c915a0c16ce16902f37e384c6e..512d94746d6c1ce87195a4890733240f207e7efd 100644 (file)
@@ -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