projects
/
openssl-gost
/
engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4bf9b2
)
Export bind_gost to allow local engine init
author
Vitaly Chikunov
<vt@altlinux.org>
Mon, 21 Jan 2019 08:46:56 +0000
(11:46 +0300)
committer
Vitaly 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
patch
|
blob
|
history
gost_lcl.h
patch
|
blob
|
history
diff --git
a/gost_eng.c
b/gost_eng.c
index 69f99757c2ae704a324930297ee71eef0502963e..74fe13e205209c984c5d6e146875d67cec425256 100644
(file)
--- 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 6a6130aa62e5a7c915a0c16ce16902f37e384c6e..512d94746d6c1ce87195a4890733240f207e7efd 100644
(file)
--- 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