summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/engine
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2014-07-13 16:03:09 +0000
committerbeck <beck@openbsd.org>2014-07-13 16:03:09 +0000
commit74a2cbdcfd19dacf51a0f171d05707c1b7276d9b (patch)
tree15e1064adfbd3cb00711a975bdf6d5db4ddb1889 /lib/libssl/src/crypto/engine
parenttedu setlist support, superseded by the new locate dbs. (diff)
downloadwireguard-openbsd-74a2cbdcfd19dacf51a0f171d05707c1b7276d9b.tar.xz
wireguard-openbsd-74a2cbdcfd19dacf51a0f171d05707c1b7276d9b.zip
The bell tolls for BUF_strdup - Start the migration to using
intrinsics. This is the easy ones, a few left to check one at a time. ok miod@ deraadt@
Diffstat (limited to 'lib/libssl/src/crypto/engine')
-rw-r--r--lib/libssl/src/crypto/engine/eng_dyn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/src/crypto/engine/eng_dyn.c b/lib/libssl/src/crypto/engine/eng_dyn.c
index ec2ad7a8e77..dfb35a84034 100644
--- a/lib/libssl/src/crypto/engine/eng_dyn.c
+++ b/lib/libssl/src/crypto/engine/eng_dyn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_dyn.c,v 1.11 2014/07/10 13:58:22 jsing Exp $ */
+/* $OpenBSD: eng_dyn.c,v 1.12 2014/07/13 16:03:09 beck Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2001.
*/
@@ -348,7 +348,7 @@ dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
p = NULL;
free((void *)ctx->DYNAMIC_LIBNAME);
if (p)
- ctx->DYNAMIC_LIBNAME = BUF_strdup(p);
+ ctx->DYNAMIC_LIBNAME = strdup(p);
else
ctx->DYNAMIC_LIBNAME = NULL;
return (ctx->DYNAMIC_LIBNAME ? 1 : 0);
@@ -361,7 +361,7 @@ dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
p = NULL;
free((void *)ctx->engine_id);
if (p)
- ctx->engine_id = BUF_strdup(p);
+ ctx->engine_id = strdup(p);
else
ctx->engine_id = NULL;
return (ctx->engine_id ? 1 : 0);
@@ -391,7 +391,7 @@ dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
return 0;
}
{
- char *tmp_str = BUF_strdup(p);
+ char *tmp_str = strdup(p);
if (!tmp_str) {
ENGINEerr(ENGINE_F_DYNAMIC_CTRL,
ERR_R_MALLOC_FAILURE);