aboutsummaryrefslogtreecommitdiff
path: root/gost_eng.c
diff options
context:
space:
mode:
authorRichard Levitte <richard@levitte.org>2021-02-13 13:53:46 +0100
committerDmitry Belyavskiy <beldmit@gmail.com>2021-02-15 12:07:38 +0100
commitf2bbf8ca2300e37cd1d1f10b7153e61419b2ccab (patch)
tree44593b1f7a596ae922288f1296c5e59d173b0ea5 /gost_eng.c
parentc8666fa2842ec6916b066d46ab0779d0814d0ef8 (diff)
downloadgost-engine-f2bbf8ca2300e37cd1d1f10b7153e61419b2ccab.zip
gost-engine-f2bbf8ca2300e37cd1d1f10b7153e61419b2ccab.tar.gz
gost-engine-f2bbf8ca2300e37cd1d1f10b7153e61419b2ccab.tar.bz2
Move gost_cmds[] from gost_ctl.c to gost_eng.c
This make that array uniquely belonging to the engine proper, while leaving the more generic gost parameters functionality in the gost_core library.
Diffstat (limited to 'gost_eng.c')
-rw-r--r--gost_eng.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gost_eng.c b/gost_eng.c
index 3fbe2e8..f930faa 100644
--- a/gost_eng.c
+++ b/gost_eng.c
@@ -24,6 +24,22 @@ static const char* engine_gost_id = "gost";
static const char* engine_gost_name =
"Reference implementation of GOST engine";
+const ENGINE_CMD_DEFN gost_cmds[] = {
+ {GOST_CTRL_CRYPT_PARAMS,
+ "CRYPT_PARAMS",
+ "OID of default GOST 28147-89 parameters",
+ ENGINE_CMD_FLAG_STRING},
+ {GOST_CTRL_PBE_PARAMS,
+ "PBE_PARAMS",
+ "Shortname of default digest alg for PBE",
+ ENGINE_CMD_FLAG_STRING},
+ {GOST_CTRL_PK_FORMAT,
+ "GOST_PK_FORMAT",
+ "Private key format params",
+ ENGINE_CMD_FLAG_STRING},
+ {0, NULL, NULL, 0}
+};
+
/* Symmetric cipher and digest function registrar */
static int gost_ciphers(ENGINE* e, const EVP_CIPHER** cipher,