X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_ctl.c;h=60280b1c1322830c37cf9f78ef8b6f109ff537f2;hb=HEAD;hp=2dfb29abb8f219674350e665a9d680160580d80a;hpb=01cd4a8ee6f92239c4cc36364e24d14e12933ab5;p=openssl-gost%2Fengine.git diff --git a/gost_ctl.c b/gost_ctl.c index 2dfb29a..60280b1 100644 --- a/gost_ctl.c +++ b/gost_ctl.c @@ -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; @@ -76,7 +60,7 @@ const char *get_gost_engine_param(int param) int gost_set_default_param(int param, const char *value) { const char *tmp; - if (param < 0 || param > GOST_PARAM_MAX) + if (param < 0 || param >= GOST_PARAM_MAX) return 0; tmp = getenv(gost_envnames[param]);