diff options
Diffstat (limited to 'base64.h')
-rw-r--r-- | base64.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/base64.h b/base64.h deleted file mode 100644 index 0ee9378..0000000 --- a/base64.h +++ /dev/null @@ -1,13 +0,0 @@ -#include <gnutls/gnutls.h> - -static inline void base64_getdecoded(const char *host, char **dec_host) -{ - gnutls_datum_t result; - gnutls_base64_decode2(&(gnutls_datum_t){ - (unsigned char *)host, - strlen(host) - }, &result); - *dec_host = malloc(result.size + 1); - strlcpy(*dec_host, (const char *)result.data, result.size + 1); - gnutls_free(result.data); -} |