]>
git.ipfire.org Git - thirdparty/ldns.git/log
Enji Cooper [Thu, 6 Jun 2024 05:27:34 +0000 (22:27 -0700)]
ldns_dane_match_any_cert_with_data: fix types
Both `i` and `n` should match the return type for `sk_X509_num` (which
is `int`, not `size_t`). This addresses a potential issue where
`sk_X509_num(..)` could return -1, resulting in an unnecessary number of
loop iterations and undesirable behavior.
Reported by: Coverity
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Enji Cooper [Thu, 6 Jun 2024 05:25:36 +0000 (22:25 -0700)]
ldns_convert_dsa_rrsig_rdf2asn1: fix memory leak
Prior to this change `dsasig` was not freed when calling `DSA_SIG_set0`
failed. Free `dsasig` on error in that code path now.
Reported by: Coverity
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Enji Cooper [Thu, 6 Jun 2024 05:19:43 +0000 (22:19 -0700)]
Fix typos (`the the` -> `the`)
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Enji Cooper [Thu, 6 Jun 2024 05:13:03 +0000 (22:13 -0700)]
Ignore build generated files
This change ignores several files which are generated by autotools, et
al.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Willem Toorop [Fri, 31 May 2024 13:48:58 +0000 (15:48 +0200)]
Merge pull request #240 from botovq/hash
Don't rely on libcrypto returning static buffers
Theo Buehler [Thu, 30 May 2024 16:52:21 +0000 (18:52 +0200)]
Don't rely on libcrypto returning static buffers
ldns is one of very few applications relying on being able to pass
NULL as last argument to the one-step hashing functions. BoringSSL
has removed this functionality in 2017 [1] and LibreSSL 4.0 will do
the same. Applications can pass in a correctly-sized buffer on the
stack.
[1]: https://boringssl-review.googlesource.com/14528
Willem Toorop [Wed, 15 May 2024 12:18:48 +0000 (14:18 +0200)]
Added RESINFO draft RR type
enable with: --enable-rrtype-resinfo
See https://datatracker.ietf.org/doc/draft-ietf-add-resolver-info
Willem Toorop [Wed, 15 May 2024 11:58:19 +0000 (13:58 +0200)]
Updated configure.ac from autoupdate
Willem Toorop [Wed, 15 May 2024 11:29:27 +0000 (13:29 +0200)]
Changelog entry for bug #237
Willem Toorop [Wed, 15 May 2024 11:26:45 +0000 (13:26 +0200)]
Merge pull request #238 from NLnetLabs/bugfix/237
Bugfix/237 Resolver uses nameserver commented out in /etc/resolv.conf
Willem Toorop [Wed, 15 May 2024 11:25:38 +0000 (13:25 +0200)]
Move resolv.conf token parser to parse.h
Including a doxygen comment stating the limitations
Willem Toorop [Tue, 7 May 2024 12:43:16 +0000 (14:43 +0200)]
Issue #237 : Resolver uses nameserver commented out in /etc/resolv.conf
This /etc/resolv.conf:
# x
# nameserver 8.8.8.8
Still configured 8.8.8.8 as nameserver, because the comment detection in `ldns_resolver_new_frm_fp_l()` didn't anticipate empty lines before the comment.
This fix removed all comment handling from `ldns_resolver_new_frm_fp_l()`. Instead a new function is introduced `ldns_fget_token_l_resolv_conf()` that skips comments that start with '#' and ';'. The old `ldns_fget_token_l()` (that is used for zonefiles too) still accepts only ';' for comments.
W.C.A. Wijngaards [Tue, 30 Jan 2024 13:36:01 +0000 (14:36 +0100)]
Fix to compile DLLs, and pick out of the lib64 dir, and include
libssp-0.dll and ldns-config.
W.C.A. Wijngaards [Tue, 30 Jan 2024 08:37:03 +0000 (09:37 +0100)]
Fix to include exe files for windows compile.
W.C.A. Wijngaards [Mon, 29 Jan 2024 15:19:34 +0000 (16:19 +0100)]
Fix to compile with OpenSSL 3.2. Update acx_nlnetlabs.m4 to 48.
W.C.A. Wijngaards [Mon, 29 Jan 2024 13:30:47 +0000 (14:30 +0100)]
Fix to install .exe files.
W.C.A. Wijngaards [Mon, 29 Jan 2024 13:06:35 +0000 (14:06 +0100)]
* Fix for windows compile; asctime_r compat, search for inet_ntop
in ws2_32, avoid double decl of inet_ntop, check for symlink call,
include config.h in edns.c, have socket compare use correct
signedness, add -u repo option to makewin.sh, fix quoting in
makewin.sh and check return value of bind and connect in net.c
for failure instead of a socket type.
Willem Toorop [Thu, 4 Jan 2024 11:26:23 +0000 (12:26 +0100)]
Merge pull request #230 from InfrastructureServices/b.root-servers.net
Update address of b.root-servers.net and some others
Petr Menšík [Thu, 4 Jan 2024 09:02:11 +0000 (10:02 +0100)]
Update address of b.root-servers.net and some others
Update recently changed root servers address in the drill tool. Update
also other addresses and expand IPv6 addresses.
Willem Toorop [Mon, 11 Dec 2023 19:12:54 +0000 (20:12 +0100)]
Merge pull request #228 from dogo42/develop
python3 bindings: ldnsx.py "class resolver" fix
dogo42 [Sat, 9 Dec 2023 11:10:30 +0000 (11:10 +0000)]
python3 bindings: class resolver fix
Imitating the example in the beginning of ldnsx.py results in error:
host:~/rpmbuild# python
Python 3.9.16 (main, Dec 8 2022, 00:00:00)
[GCC 11.3.1
20221121 (Red Hat 11.3.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldnsx
>>> dir(ldnsx)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '__version__', '_rr_types', 'calendar', 'get_rrs', 'isValidIP', 'ldns', 'packet', 'query', 'resolver', 'resource_record', 'secure_query', 'socket', 'sys', 'time', 'warnings']
>>> ldnsx.resolver("9.9.9.9").query("www.hole.fi", "A")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.9/site-packages/ldnsx.py", line 220, in __init__
nm_list.reverse()
AttributeError: 'filter' object has no attribute 'reverse'
>>>
This patch fixes it, i.e. just add list( .. ) around the filter lambda.
Willem Toorop [Wed, 27 Sep 2023 09:31:18 +0000 (11:31 +0200)]
Merge pull request #226 from k0ekk0ek/dns-team
Update email addresses to dns-team
Jeroen Koekkoek [Fri, 22 Sep 2023 14:43:18 +0000 (16:43 +0200)]
Update email addresses
Willem Toorop [Sat, 3 Jun 2023 13:08:41 +0000 (15:08 +0200)]
ldns-testns match wildcard qname's
Currently only in combination with copy_query (for simulating delegations)
Willem Toorop [Fri, 2 Jun 2023 08:11:17 +0000 (10:11 +0200)]
ldns-testns match on edns0 udp_size
W.C.A. Wijngaards [Thu, 26 Jan 2023 10:30:13 +0000 (11:30 +0100)]
Update acx_nlnetlabs.m4 to version 45.
* Updated the configure script for split openssl directories.
Willem Toorop [Thu, 26 Jan 2023 09:45:55 +0000 (10:45 +0100)]
Merge pull request #194 from thesamesam/strict-prototypes
acx_nlnetlabs.m4: fix -Wstrict-prototypes
Willem Toorop [Mon, 16 Jan 2023 21:48:00 +0000 (22:48 +0100)]
Merge pull request #204 from InfrastructureServices/dev-python-3.12
Update python configuration, support platform site dir
Willem Toorop [Thu, 12 Jan 2023 08:27:52 +0000 (09:27 +0100)]
Merge pull request #202 from FGasper/issue_201_use_after_free
Fix ldns_rdf2buffer_str_wks not to use after free.
Ack. Makes sense. Thanks for finding and reporting this.
Petr Menšík [Tue, 3 Jan 2023 20:37:34 +0000 (21:37 +0100)]
Update python configuration, support platform site dir
Update to the most recent ax_python_devel.m4 from autoconf-archive
2022.09.03. It reports two separate directories, one for platform
independent files, another for platform specific files.
Make minimal change and switch to using platform dependent directory.
Should work on python 3.12, which removes distutils module completely.
Felipe Gasper [Wed, 7 Dec 2022 00:36:53 +0000 (19:36 -0500)]
Fix ldns_rdf2buffer_str_wks not to use after free.
Issue #201: endprotoent() needs not to be called until we’re finished with
the protoent struct. (Found by running the test suite on OpenBSD.)
Alex Band [Tue, 29 Nov 2022 13:37:43 +0000 (14:37 +0100)]
Remove support section
Sam James [Sat, 19 Nov 2022 01:31:57 +0000 (01:31 +0000)]
acx_nlnetlabs.m4: fix -Wstrict-prototypes
Fix -Wstrict-prototypes as it's easy to do and avoids future warnings. Noticed
when doing Clang 16 / GCC 14 / C23 work.
For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2],
or the (new) c-std-porting mailing list [3].
[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://wiki.gentoo.org/wiki/Modern_C_porting
[3] hosted at lists.linux.dev.
Signed-off-by: Sam James <sam@gentoo.org>
Willem Toorop [Wed, 16 Nov 2022 12:43:27 +0000 (12:43 +0000)]
Merge pull request #189 from FGasper/remove_unused
Remove unused variable.
tcarpay [Fri, 11 Nov 2022 14:04:35 +0000 (15:04 +0100)]
Merge pull request #193 from NLnetLabs/features/edns-for-testns
add EDNS support for ldns-testns
TCY16 [Fri, 11 Nov 2022 13:59:57 +0000 (14:59 +0100)]
Merge branch 'develop' into features/edns-for-testns
TCY16 [Fri, 11 Nov 2022 13:59:02 +0000 (14:59 +0100)]
add missing print and breaking assignment
tcarpay [Thu, 10 Nov 2022 15:21:13 +0000 (16:21 +0100)]
Fix breaking ref
tcarpay [Tue, 8 Nov 2022 12:05:51 +0000 (13:05 +0100)]
Add HEX_EDNSDATA documentation
tcarpay [Tue, 8 Nov 2022 12:02:39 +0000 (13:02 +0100)]
add HEX_EDNSDATA entry
TCY16 [Mon, 7 Nov 2022 13:09:27 +0000 (14:09 +0100)]
add missing buffer_free
TCY16 [Mon, 7 Nov 2022 13:06:57 +0000 (14:06 +0100)]
move location where the EDNS is added
TCY16 [Mon, 7 Nov 2022 12:38:21 +0000 (13:38 +0100)]
add missing EDNS support for ldns-testns
Felipe Gasper [Mon, 17 Oct 2022 18:09:50 +0000 (14:09 -0400)]
Remove unused variable.
Willem Toorop [Mon, 5 Sep 2022 08:01:18 +0000 (10:01 +0200)]
Fix building documentation in build directory.
Thanks Michael Tokarev
Willem Toorop [Mon, 15 Aug 2022 10:37:32 +0000 (12:37 +0200)]
Updated Changelog
Willem Toorop [Mon, 15 Aug 2022 10:37:19 +0000 (12:37 +0200)]
Syntax error in pyldns
Willem Toorop [Mon, 15 Aug 2022 10:22:11 +0000 (12:22 +0200)]
Bump version
Willem Toorop [Mon, 15 Aug 2022 10:15:11 +0000 (12:15 +0200)]
Proper fix for issue #183 EDNS OPT can have no rdata
Willem Toorop [Mon, 15 Aug 2022 09:32:53 +0000 (11:32 +0200)]
Fix test to fail if DNSSEC lookup fails!
Willem Toorop [Mon, 15 Aug 2022 09:11:40 +0000 (11:11 +0200)]
Revert "Issue #183 EDNS OPT can have no rdata"
This reverts commit
1acee0c5d35f4a04df07e5d5f4490e6318513997 .
Willem Toorop [Sun, 14 Aug 2022 15:19:02 +0000 (17:19 +0200)]
Issue #183 EDNS OPT can have no rdata
Willem Toorop [Fri, 12 Aug 2022 11:13:27 +0000 (13:13 +0200)]
Merge branch 'develop'
Willem Toorop [Fri, 12 Aug 2022 10:57:35 +0000 (12:57 +0200)]
Make the Makefile deps correct
to enable doing make test from the start and not causing dependency loops
Willem Toorop [Fri, 12 Aug 2022 10:46:35 +0000 (12:46 +0200)]
Fix doxygen errors
Willem Toorop [Fri, 12 Aug 2022 10:41:25 +0000 (12:41 +0200)]
Superfluous dependecies in Makefile
Willem Toorop [Fri, 12 Aug 2022 10:35:40 +0000 (12:35 +0200)]
Cycles in the Makefile.in
Willem Toorop [Fri, 12 Aug 2022 10:29:15 +0000 (12:29 +0200)]
Update dependencies
Willem Toorop [Fri, 12 Aug 2022 10:00:21 +0000 (12:00 +0200)]
Memory leak in ldns_edns_option_list_clone
Willem Toorop [Fri, 12 Aug 2022 09:42:43 +0000 (11:42 +0200)]
Set release date and bumb version
Willem Toorop [Fri, 12 Aug 2022 09:38:52 +0000 (11:38 +0200)]
Address Issue #145 by naming everything occluded occluded
Even though some of those are (also) glue
TCY16 [Fri, 12 Aug 2022 08:57:29 +0000 (10:57 +0200)]
add SVCB dohpath support
Willem Toorop [Fri, 15 Jul 2022 15:30:24 +0000 (17:30 +0200)]
Revert "Release today"
This reverts commit
4d8768ab871b657caff54529166973504e359976 .
Willem Toorop [Fri, 15 Jul 2022 15:26:54 +0000 (17:26 +0200)]
Release today
Willem Toorop [Fri, 15 Jul 2022 15:26:14 +0000 (17:26 +0200)]
Log EDNS0 option handling feature
Willem Toorop [Thu, 14 Jul 2022 14:54:08 +0000 (16:54 +0200)]
Merge pull request #167 from NLnetLabs/features/rfc-6891-individual-edns-option-parsing
Parsing and printing of individual OPT options
TCY16 [Thu, 14 Jul 2022 13:33:49 +0000 (15:33 +0200)]
add check in ldns_edns_option_list_clone
Willem Toorop [Thu, 14 Jul 2022 08:07:02 +0000 (10:07 +0200)]
Eliminate non-const cast
Willem Toorop [Thu, 14 Jul 2022 07:41:20 +0000 (09:41 +0200)]
Merge branch 'develop' into features/rfc-6891-individual-edns-option-parsing
Willem Toorop [Thu, 14 Jul 2022 07:33:44 +0000 (09:33 +0200)]
ldns_pkt_edns() also true for `_edns_list`s
+ few fixes for memory management errors
Willem Toorop [Wed, 13 Jul 2022 21:45:45 +0000 (23:45 +0200)]
Update version for release candidate
Willem Toorop [Wed, 13 Jul 2022 21:36:06 +0000 (23:36 +0200)]
Fix #46: Print network errors when secure tracing
Willem Toorop [Wed, 13 Jul 2022 21:00:57 +0000 (23:00 +0200)]
Fix skipping OpenSSL tests
Willem Toorop [Wed, 13 Jul 2022 20:49:07 +0000 (22:49 +0200)]
Fix #162
Skip tests that require OpenSSL with --without-ssl
Willem Toorop [Wed, 13 Jul 2022 20:28:57 +0000 (22:28 +0200)]
Algorithm names and numbers don't require crypto
even if not supported
Willem Toorop [Wed, 13 Jul 2022 20:05:06 +0000 (22:05 +0200)]
strcmp returns 0 if equal
tcarpay [Wed, 13 Jul 2022 08:50:39 +0000 (10:50 +0200)]
Merge pull request #181 from NLnetLabs/features/ldns_edns_option_list
Features/ldns edns option list
Willem Toorop [Tue, 12 Jul 2022 14:53:56 +0000 (16:53 +0200)]
Fix #166 Grow buffer when converting to presentation format
Willem Toorop [Tue, 12 Jul 2022 14:52:08 +0000 (16:52 +0200)]
Log bugfix #179
Willem Toorop [Tue, 12 Jul 2022 13:42:23 +0000 (15:42 +0200)]
Merge pull request #179 from bbczeuz/bbczeuz-zone-line-leak
Free line memory even if zone file parsing fails
Willem Toorop [Tue, 12 Jul 2022 13:34:45 +0000 (15:34 +0200)]
Merge branch 'features/rfc-6891-individual-edns-option-parsing' into features/ldns_edns_option_list
Willem Toorop [Tue, 12 Jul 2022 13:30:49 +0000 (15:30 +0200)]
Merge branch 'develop' into features/rfc-6891-individual-edns-option-parsing
Willem Toorop [Tue, 12 Jul 2022 13:29:02 +0000 (15:29 +0200)]
edns_option_list as part of the packet
TCY16 [Tue, 12 Jul 2022 13:22:19 +0000 (15:22 +0200)]
change meaning of +, and fix incorrect string compare
Willem Toorop [Tue, 12 Jul 2022 12:28:49 +0000 (14:28 +0200)]
Merge branch 'develop' into features/ldns_edns_option_list
Willem Toorop [Tue, 12 Jul 2022 08:40:41 +0000 (10:40 +0200)]
Correct dname count for SVCB and HTTPS
Claudius Zingerli [Tue, 21 Jun 2022 15:23:12 +0000 (17:23 +0200)]
Adding braces
Claudius Zingerli [Tue, 21 Jun 2022 14:58:29 +0000 (16:58 +0200)]
Free line memory even if zone file parsing fails
Willem Toorop [Thu, 9 Jun 2022 10:27:34 +0000 (12:27 +0200)]
Enable compile of SVCB and HTTPS support by default
Since it is almost RFC. See also Issue #177
TCY16 [Wed, 25 May 2022 13:21:29 +0000 (15:21 +0200)]
finalize tests, fix some limit bugs found during testing
Willem Toorop [Tue, 24 May 2022 12:06:00 +0000 (14:06 +0200)]
Program is link target
TCY16 [Mon, 23 May 2022 14:13:56 +0000 (16:13 +0200)]
fix typo in Makefile
TCY16 [Mon, 23 May 2022 14:05:31 +0000 (16:05 +0200)]
create basis for tpkg test
TCY16 [Wed, 4 May 2022 11:08:37 +0000 (13:08 +0200)]
fix +nsid position bug by adding forgotten continue
TCY16 [Thu, 28 Apr 2022 10:54:21 +0000 (12:54 +0200)]
fix final @TODOs with comments and better printing
TCY16 [Mon, 25 Apr 2022 08:12:03 +0000 (10:12 +0200)]
add +nsid documentation in the manpage
TCY16 [Mon, 25 Apr 2022 08:07:39 +0000 (10:07 +0200)]
add assert in ldns_pkt_edns_get_option_list()
TCY16 [Fri, 22 Apr 2022 11:08:09 +0000 (13:08 +0200)]
change the ends_option_list growing logic to be in line with rr_list
TCY16 [Fri, 22 Apr 2022 09:51:53 +0000 (11:51 +0200)]
change EDNS opt behavior in drill from -e to +
Willem Toorop [Thu, 21 Apr 2022 11:20:08 +0000 (13:20 +0200)]
Merge pull request #165 from adam-stoler/svcb.https.ech.rb1
Rename SVCB echconfig parameter key to ech as per latest RFC draft