[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 149/156: Removed Public Domain base64 decoding files
From: |
gnunet |
Subject: |
[libmicrohttpd] 149/156: Removed Public Domain base64 decoding files |
Date: |
Sun, 28 May 2023 17:53:22 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit 90f1262de76e596061a94e694447c9e99d0d7a1b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Jun 9 16:52:44 2022 +0300
Removed Public Domain base64 decoding files
---
src/microhttpd/Makefile.am | 3 +--
src/microhttpd/base64.c | 60 ----------------------------------------------
src/microhttpd/base64.h | 17 -------------
3 files changed, 1 insertion(+), 79 deletions(-)
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index 5543765d..ecf6fd4c 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -167,8 +167,7 @@ endif
if ENABLE_BAUTH
libmicrohttpd_la_SOURCES += \
- basicauth.c \
- base64.c base64.h
+ basicauth.c
endif
if ENABLE_HTTPS
diff --git a/src/microhttpd/base64.c b/src/microhttpd/base64.c
deleted file mode 100644
index d7d1ec92..00000000
--- a/src/microhttpd/base64.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * This code implements the BASE64 algorithm.
- * This code is in the public domain; do with it what you wish.
- *
- * @file base64.c
- * @brief This code implements the BASE64 algorithm
- * @author Matthieu Speder
- */
-#include "base64.h"
-
-static const char base64_digits[] =
-{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 62, 0, 0, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
- 0, 0, 0, -1, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
- 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 26,
- 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
- 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-
-
-char *
-BASE64Decode (const char*src)
-{
- size_t in_len = strlen (src);
- char*dest;
- char*result;
-
- if (in_len % 4)
- {
- /* Wrong base64 string length */
- return NULL;
- }
- result = dest = malloc (in_len / 4 * 3 + 1);
- if (NULL == result)
- return NULL; /* out of memory */
- while (*src)
- {
- char a = base64_digits[(unsigned char) *(src++)];
- char b = base64_digits[(unsigned char) *(src++)];
- char c = base64_digits[(unsigned char) *(src++)];
- char d = base64_digits[(unsigned char) *(src++)];
- *(dest++) = (a << 2) | ((b & 0x30) >> 4);
- if (c == (char) -1)
- break;
- *(dest++) = ((b & 0x0f) << 4) | ((c & 0x3c) >> 2);
- if (d == (char) -1)
- break;
- *(dest++) = ((c & 0x03) << 6) | d;
- }
- *dest = 0;
- return result;
-}
-
-
-/* end of base64.c */
diff --git a/src/microhttpd/base64.h b/src/microhttpd/base64.h
deleted file mode 100644
index 65042c0b..00000000
--- a/src/microhttpd/base64.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * This code implements the BASE64 algorithm.
- * This code is in the public domain; do with it what you wish.
- *
- * @file base64.c
- * @brief This code implements the BASE64 algorithm
- * @author Matthieu Speder
- */
-#ifndef BASE64_H
-#define BASE64_H
-
-#include "platform.h"
-
-char *
-BASE64Decode (const char*src);
-
-#endif /* !BASE64_H */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 114/156: examples/largepost.c: fixed code style, (continued)
- [libmicrohttpd] 114/156: examples/largepost.c: fixed code style, gnunet, 2023/05/28
- [libmicrohttpd] 125/156: .gitignore: force include all *.{c,h} files, gnunet, 2023/05/28
- [libmicrohttpd] 113/156: examples/largepost.c: fixed caseless method match, gnunet, 2023/05/28
- [libmicrohttpd] 129/156: Detect sysctl() symbols in configure, gnunet, 2023/05/28
- [libmicrohttpd] 98/156: .gitignore: added universal patter to ignore test binaries, gnunet, 2023/05/28
- [libmicrohttpd] 140/156: Added support for custom command for tarball compression, gnunet, 2023/05/28
- [libmicrohttpd] 143/156: Fixed compiler warning when built without poll() support, gnunet, 2023/05/28
- [libmicrohttpd] 141/156: contrib/make-dist.sh: added use of zopfli if available, gnunet, 2023/05/28
- [libmicrohttpd] 142/156: daemon.c: redesigned code for clarity and formatting, gnunet, 2023/05/28
- [libmicrohttpd] 144/156: Avoided potential compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 149/156: Removed Public Domain base64 decoding files,
gnunet <=
- [libmicrohttpd] 151/156: ChangeLog: updated, gnunet, 2023/05/28
- [libmicrohttpd] 152/156: W32 VS project: reverted to standard arches names, gnunet, 2023/05/28
- [libmicrohttpd] 147/156: Added macro for base64 decoded size, gnunet, 2023/05/28
- [libmicrohttpd] 156/156: Released GNU libmicrohttpd 0.9.77, gnunet, 2023/05/28
- [libmicrohttpd] 146/156: test_str_base64: added test for base64 decoding, gnunet, 2023/05/28
- [libmicrohttpd] 150/156: test_basicauth: added new test, gnunet, 2023/05/28
- [libmicrohttpd] 154/156: autoinit_funcs.h: fixed warning on MSVC, gnunet, 2023/05/28
- [libmicrohttpd] 148/156: Basic auth: switched to internal base64 decoding, gnunet, 2023/05/28
- [libmicrohttpd] 153/156: W32 VS Project: minor internal fixes, fixed files for "dist", gnunet, 2023/05/28
- [libmicrohttpd] 155/156: Updated 'po' files, gnunet, 2023/05/28