diff options
Diffstat (limited to 'tools/no-libgcrypt.c')
-rw-r--r-- | tools/no-libgcrypt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/no-libgcrypt.c b/tools/no-libgcrypt.c index 0fabec90d..82f6a8bb5 100644 --- a/tools/no-libgcrypt.c +++ b/tools/no-libgcrypt.c @@ -53,6 +53,12 @@ gcry_xmalloc (size_t n) return p; } +char * +gcry_strdup (const char *string) +{ + return malloc (strlen (string)+1); +} + void * gcry_realloc (void *a, size_t n) |