]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Some other renames 39/head
authorboggard <varyanik2@gmail.com>
Wed, 12 Jul 2017 18:25:35 +0000 (21:25 +0300)
committerboggard <varyanik2@gmail.com>
Wed, 12 Jul 2017 18:25:35 +0000 (21:25 +0300)
gost_ameth.c
gost_ctl.c
gost_lcl.h

index 437362c4b1fd0735e5bea33ddba49e31c9eb5231..12ea593ed5fdb8a297b2cb96d9fc2ec148bdbd83 100644 (file)
@@ -442,8 +442,8 @@ static int priv_encode_gost(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk)
     }
 
     /* unmasked private key */
-    const char *pk_param = get_gost_engine_param(GOST_PARAM_PK_PARAMS);
-    if(pk_param != NULL && strcmp(pk_param, PK_WRAP_PARAM) == 0) {
+    const char *pk_format = get_gost_engine_param(GOST_PARAM_PK_FORMAT);
+    if(pk_format != NULL && strcmp(pk_format, PK_WRAP_PARAM) == 0) {
         ASN1_STRING *octet = NULL;
         int priv_len = 0;
         unsigned char *priv_buf = NULL;
index 1387f7680b8a83d91c4f5a2bd6ebc2e6410889db..04be66d2c541c6f2fb4be8a44e705a31ea34abda 100644 (file)
@@ -15,7 +15,7 @@
 #include "gost_lcl.h"
 
 static char *gost_params[GOST_PARAM_MAX + 1] = { NULL };
-static const char *gost_envnames[] = { "CRYPT_PARAMS", "GOST_PBE_HMAC", "PK_PARAMS" };
+static const char *gost_envnames[] = { "CRYPT_PARAMS", "GOST_PBE_HMAC", "GOST_PK_FORMAT" };
 
 const ENGINE_CMD_DEFN gost_cmds[] = {
     {GOST_CTRL_CRYPT_PARAMS,
@@ -26,8 +26,8 @@ const ENGINE_CMD_DEFN gost_cmds[] = {
      "PBE_PARAMS",
      "Shortname of default digest alg for PBE",
      ENGINE_CMD_FLAG_STRING},
-     {GOST_CTRL_PK_PARAMS,
-     "PK_PARAMS",
+     {GOST_CTRL_PK_FORMAT,
+     "GOST_PK_FORMAT",
      "Private key format params",
      ENGINE_CMD_FLAG_STRING},
     {0, NULL, NULL, 0}
index 2152257d79cee65d56f446b4ca9156dfe4d607e6..4caeeebae9fa9d97855cd8a866312f105e6c29b0 100644 (file)
 /* Control commands */
 # define GOST_PARAM_CRYPT_PARAMS 0
 # define GOST_PARAM_PBE_PARAMS 1
-# define GOST_PARAM_PK_PARAMS 2
+# define GOST_PARAM_PK_FORMAT 2
 # define GOST_PARAM_MAX 2
 # define GOST_CTRL_CRYPT_PARAMS (ENGINE_CMD_BASE+GOST_PARAM_CRYPT_PARAMS)
 # define GOST_CTRL_PBE_PARAMS   (ENGINE_CMD_BASE+GOST_PARAM_PBE_PARAMS)
-# define GOST_CTRL_PK_PARAMS   (ENGINE_CMD_BASE+GOST_PARAM_PK_PARAMS)
+# define GOST_CTRL_PK_FORMAT   (ENGINE_CMD_BASE+GOST_PARAM_PK_FORMAT)
 
 typedef struct R3410_ec {
     int nid;