[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 05/10: Excluded build on the new string functions when t
From: |
gnunet |
Subject: |
[libmicrohttpd] 05/10: Excluded build on the new string functions when they are unused |
Date: |
Mon, 06 Jun 2022 18:41:31 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 7eef6dd3e45975012afcc03ba30dfb951984910f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jun 6 14:36:52 2022 +0300
Excluded build on the new string functions when they are unused
---
src/microhttpd/Makefile.am | 8 ++++++--
src/microhttpd/mhd_str.c | 4 ++++
src/microhttpd/mhd_str.h | 3 +++
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index 5c35057c..f6e1e2bd 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -258,7 +258,11 @@ endif
if HAVE_ANYAUTH
check_PROGRAMS += \
- test_auth_parse test_str_quote
+ test_auth_parse
+endif
+if ENABLE_DAUTH
+check_PROGRAMS += \
+ test_str_quote
endif
TESTS = $(check_PROGRAMS)
@@ -435,7 +439,7 @@ test_sha1_SOURCES = \
sha1.c sha1.h mhd_bithelpers.h mhd_byteorder.h mhd_align.h
test_auth_parse_SOURCES = \
- test_auth_parse.c gen_auth.c gen_auth.h mhd_str.h mhd_str.c
+ test_auth_parse.c gen_auth.c gen_auth.h mhd_str.h mhd_str.c mhd_assert.h
test_str_quote_SOURCES = \
test_str_quote.c mhd_str.h mhd_str.c mhd_assert.h
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c
index 7fdb6f13..1732c609 100644
--- a/src/microhttpd/mhd_str.c
+++ b/src/microhttpd/mhd_str.c
@@ -1387,6 +1387,7 @@ MHD_bin_to_hex (const void *bin,
}
+#ifdef DAUTH_SUPPORT
bool
MHD_str_equal_quoted_bin_n (const char *quoted,
size_t quoted_len,
@@ -1440,3 +1441,6 @@ MHD_str_unquote (const char *quoted,
}
return w;
}
+
+
+#endif /* DAUTH_SUPPORT */
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h
index ecad5422..a114d9a3 100644
--- a/src/microhttpd/mhd_str.h
+++ b/src/microhttpd/mhd_str.h
@@ -475,6 +475,7 @@ MHD_bin_to_hex (const void *bin,
size_t size,
char *hex);
+#ifdef DAUTH_SUPPORT
/**
* Check two strings for equality, "unquoting" the first string from quoted
* form as specified by RFC7230#section-3.2.6 and RFC7694#quoted.strings.
@@ -520,4 +521,6 @@ MHD_str_unquote (const char *quoted,
size_t quoted_len,
char *result);
+#endif /* DAUTH_SUPPORT */
+
#endif /* MHD_STR_H */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (56c4b4ae -> 8d5ebaec), gnunet, 2022/06/06
- [libmicrohttpd] 01/10: test_auth_parse: minor formatting imrpovement, gnunet, 2022/06/06
- [libmicrohttpd] 02/10: mhd_str: fixed doxy again, gnunet, 2022/06/06
- [libmicrohttpd] 03/10: MHD_str_equal_quoted_bin_n(): added new internal function, gnunet, 2022/06/06
- [libmicrohttpd] 04/10: test_str_quote: added new test, gnunet, 2022/06/06
- [libmicrohttpd] 06/10: MHD_str_equal_caseless_quoted_bin_n(): added new internal function, gnunet, 2022/06/06
- [libmicrohttpd] 09/10: digestauth: avoid repetitive calculations of some strings' length, gnunet, 2022/06/06
- [libmicrohttpd] 08/10: Simplified Digest Auth code by using the new string processing functions, gnunet, 2022/06/06
- [libmicrohttpd] 05/10: Excluded build on the new string functions when they are unused,
gnunet <=
- [libmicrohttpd] 10/10: gen_auth: simplified value assignment, gnunet, 2022/06/06
- [libmicrohttpd] 07/10: test_str_quote: added testing of the new function, gnunet, 2022/06/06