]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Move gost_cmds[] from gost_ctl.c to gost_eng.c
authorRichard Levitte <richard@levitte.org>
Sat, 13 Feb 2021 12:53:46 +0000 (13:53 +0100)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 15 Feb 2021 11:07:38 +0000 (12:07 +0100)
This make that array uniquely belonging to the engine proper, while
leaving the more generic gost parameters functionality in the
gost_core library.

gost_ctl.c
gost_eng.c

index 64b76ad66e802a5896547f53465f679622a93cf3..60280b1c1322830c37cf9f78ef8b6f109ff537f2 100644 (file)
@@ -18,22 +18,6 @@ static char *gost_params[GOST_PARAM_MAX + 1] = { NULL };
 static const char *gost_envnames[] =
     { "CRYPT_PARAMS", "GOST_PBE_HMAC", "GOST_PK_FORMAT" };
 
-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}
-};
-
 void gost_param_free()
 {
     int i;
index 3fbe2e83d5b90cd6478b132e27daf7a3161212c6..f930faa2f5e2043911206be1ecffd13e33728b0a 100644 (file)
@@ -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,