summaryrefslogtreecommitdiffstats
path: root/engines/ccgost/gost_ctl.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2006-12-25 09:43:46 +0000
committerRichard Levitte <levitte@openssl.org>2006-12-25 09:43:46 +0000
commitea46f5e0e5fbd21ac76876b57f5631c8b4263623 (patch)
tree5130131933c11a22f6056d947e612050dc9f54f5 /engines/ccgost/gost_ctl.c
parent7f6c8482427b26e063e89f74d129f72fd1cdaa29 (diff)
Replace strdup() with BUF_strdup().
Diffstat (limited to 'engines/ccgost/gost_ctl.c')
-rw-r--r--engines/ccgost/gost_ctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/ccgost/gost_ctl.c b/engines/ccgost/gost_ctl.c
index e31e1f9776..d94089b9cb 100644
--- a/engines/ccgost/gost_ctl.c
+++ b/engines/ccgost/gost_ctl.c
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <string.h>
#include <openssl/engine.h>
+#include <openssl/buffer.h>
#include "gost_lcl.h"
static char *gost_params[GOST_PARAM_MAX+1]={NULL};
@@ -54,7 +55,7 @@ const char *get_gost_engine_param(int param)
tmp = getenv(gost_envnames[param]);
if (tmp)
{
- gost_params[param] = strdup(tmp);
+ gost_params[param] = BUF_strdup(tmp);
return gost_params[param];
}
return NULL;
@@ -68,7 +69,7 @@ int gost_set_default_param(int param, const char *value)
/* if there is value in the environment, use it, else -passed string * */
if (!tmp) tmp=value;
if (gost_params[param]) free(gost_params[param]);
- gost_params[param] = strdup(tmp);
+ gost_params[param] = BUF_strdup(tmp);
return 1;
}