diff options
author | June McEnroe <june@causal.agency> | 2019-11-04 17:27:13 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-04 17:27:13 -0500 |
commit | 8957cbc53f721786e4b4db674597f79e838186d0 (patch) | |
tree | 92c47eb742a1308c54d5cb734018db2f68a428ff /bounce.h | |
parent | Move base64 to bounce.h (diff) | |
download | pounce-8957cbc53f721786e4b4db674597f79e838186d0.tar.gz pounce-8957cbc53f721786e4b4db674597f79e838186d0.zip |
Hash client passwords with crypt
Diffstat (limited to '')
-rw-r--r-- | bounce.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bounce.h b/bounce.h index b8c2298..434a1f8 100644 --- a/bounce.h +++ b/bounce.h @@ -116,9 +116,7 @@ static const char Base64[64] = { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" }; -static inline size_t base64Size(size_t len) { - return 1 + (len + 2) / 3 * 4; -} +#define BASE64_SIZE(len) (1 + ((len) + 2) / 3 * 4) static inline void base64(char *dst, const byte *src, size_t len) { size_t i = 0; |