diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-03-04 23:29:51 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-03-04 23:29:51 +0000 |
commit | 9985bed331b388e871a89cf043ae21c1177eaa24 (patch) | |
tree | 8fa799a7ec68dec7c8e77f4f0875b9dfb7bddaf0 /crypto/x509v3/v3_utl.c | |
parent | 789285aa960fec0004a796e9f60f94f19035d887 (diff) |
Deleted my str_dup() function from X509V3: the same functionality is provided
by BUF_MEM_strdup(). Added text documentation to the BUF_MEM stuff.
Diffstat (limited to 'crypto/x509v3/v3_utl.c')
-rw-r--r-- | crypto/x509v3/v3_utl.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c index 0d2ae9dac3..40b7810d0d 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -66,15 +66,6 @@ static char *strip_spaces(char *name); -char *str_dup(str) -char *str; -{ - char *tmp; - if(!(tmp = Malloc(strlen(str) + 1))) return NULL; - strcpy(tmp, str); - return tmp; -} - /* Add a CONF_VALUE name value pair to stack */ int X509V3_add_value(name, value, extlist) @@ -84,8 +75,8 @@ STACK **extlist; { CONF_VALUE *vtmp = NULL; char *tname = NULL, *tvalue = NULL; - if(name && !(tname = str_dup(name))) goto err; - if(value && !(tvalue = str_dup(value))) goto err;; + if(name && !(tname = BUF_strdup(name))) goto err; + if(value && !(tvalue = BUF_strdup(value))) goto err;; if(!(vtmp = (CONF_VALUE *)Malloc(sizeof(CONF_VALUE)))) goto err; if(!*extlist && !(*extlist = sk_new(NULL))) goto err; vtmp->section = NULL; @@ -237,7 +228,7 @@ char *line; char *linebuf; int state; /* We are going to modify the line so copy it first */ - linebuf = str_dup(line); + linebuf = BUF_strdup(line); state = HDR_NAME; ntmp = NULL; /* Go through all characters */ |