diff options
author | Ben Laurie <ben@openssl.org> | 2008-10-26 18:42:05 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-10-26 18:42:05 +0000 |
commit | 2124e869a8da94e0540d44df15bbf6007da3bf91 (patch) | |
tree | 62394b46b1fb0360d4285323abf5a48dad36ce36 /crypto/mem.c | |
parent | 3b668eedda78fcf712198b3d7c433a67989da407 (diff) |
Add JPAKE.
Diffstat (limited to 'crypto/mem.c')
-rw-r--r-- | crypto/mem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/mem.c b/crypto/mem.c index 00ebaf0b9b..3d839b9610 100644 --- a/crypto/mem.c +++ b/crypto/mem.c @@ -341,6 +341,14 @@ void *CRYPTO_malloc(int num, const char *file, int line) return ret; } +char *CRYPTO_strdup(const char *str, const char *file, int line) + { + char *ret = CRYPTO_malloc(strlen(str)+1, file, line); + + strcpy(ret, str); + return ret; + } + void *CRYPTO_realloc(void *str, int num, const char *file, int line) { void *ret = NULL; |