This repository has been archived on 2024-01-23. You can view files and clone it, but cannot push or open issues or pull requests.
2017-01-10 06:36:19 +01:00
|
|
|
/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
|
2015-06-05 15:58:00 +02:00
|
|
|
|
|
|
|
#ifndef BASE64_H
|
|
|
|
#define BASE64_H
|
|
|
|
|
|
|
|
#include <resolv.h>
|
|
|
|
|
|
|
|
#define b64_len(len) ((((len) + 2) / 3) * 4 + 1)
|
|
|
|
|
|
|
|
#ifndef b64_ntop
|
|
|
|
int b64_ntop(unsigned char const *, size_t, char *, size_t);
|
|
|
|
#define NEED_B64_NTOP
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef b64_pton
|
|
|
|
int b64_pton(char const *, unsigned char *, size_t);
|
|
|
|
#define NEED_B64_PTON
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|