diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2015-08-14 21:00:10 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2015-08-14 21:00:10 +0300 |
commit | 02f99b2e3b46f4ff44fd5420487551d5a447c2ad (patch) | |
tree | af17df30f1100a3995dd7b8d7885e3e18983844f /gost_ctl.c | |
parent | c98ba9d03213d0c63d6874539d59f7b55fbc3fae (diff) | |
download | gost-engine-02f99b2e3b46f4ff44fd5420487551d5a447c2ad.zip gost-engine-02f99b2e3b46f4ff44fd5420487551d5a447c2ad.tar.gz gost-engine-02f99b2e3b46f4ff44fd5420487551d5a447c2ad.tar.bz2 |
Commit from current openssl master. The Gost94 signature algorithm is
removed.
Diffstat (limited to 'gost_ctl.c')
-rw-r--r-- | gost_ctl.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -38,11 +38,11 @@ const ENGINE_CMD_DEFN gost_cmds[] = { void gost_param_free() { int i; - for (i = 0; i <= GOST_PARAM_MAX; i++) - if (gost_params[i] != NULL) { - OPENSSL_free(gost_params[i]); - gost_params[i] = NULL; - } + + for (i = 0; i <= GOST_PARAM_MAX; i++) { + OPENSSL_free(gost_params[i]); + gost_params[i] = NULL; + } } @@ -66,8 +66,7 @@ const char *get_gost_engine_param(int param) } tmp = getenv(gost_envnames[param]); if (tmp) { - if (gost_params[param]) - OPENSSL_free(gost_params[param]); + OPENSSL_free(gost_params[param]); gost_params[param] = BUF_strdup(tmp); return gost_params[param]; } @@ -85,8 +84,7 @@ int gost_set_default_param(int param, const char *value) */ if (!tmp) tmp = value; - if (gost_params[param]) - OPENSSL_free(gost_params[param]); + OPENSSL_free(gost_params[param]); gost_params[param] = BUF_strdup(tmp); return 1; |