tSimplify base64_table[] declaration - sick - sign and check files using ed25519
(HTM) git clone git://z3bra.org/sick
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 565aac4be8c959bd7627836c2dae8823abca449a
(DIR) parent a6d6dd7c102aeed81bed2c7806880a5169072103
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Tue, 10 May 2016 08:23:29 +0200
Simplify base64_table[] declaration
Diffstat:
M base64.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
(DIR) diff --git a/base64.c b/base64.c
t@@ -8,13 +8,7 @@
#define BASE64_FOLD 76
-const char base64_table[] = {
- 'A','B','C','D','E','F','G','H','I','J','K','L','M',
- 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
- 'a','b','c','d','e','f','g','h','i','j','k','l','m',
- 'n','o','p','q','r','s','t','u','v','w','x','y','z',
- '0','1','2','3','4','5','6','7','8','9','+','/'
-};
+const char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
size_t
base64_encode(char **buf, const unsigned char *msg, size_t len)