summary refs log tree commit diff
path: root/bounce.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-04 17:27:13 -0500
committerJune McEnroe <june@causal.agency>2019-11-04 17:27:13 -0500
commit8957cbc53f721786e4b4db674597f79e838186d0 (patch)
tree92c47eb742a1308c54d5cb734018db2f68a428ff /bounce.h
parentMove base64 to bounce.h (diff)
downloadpounce-8957cbc53f721786e4b4db674597f79e838186d0.tar.gz
pounce-8957cbc53f721786e4b4db674597f79e838186d0.zip
Hash client passwords with crypt
Diffstat (limited to '')
-rw-r--r--bounce.h4
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;