Home GnuPG
Diffusion GnuPG 6fafda979df8

dirmngr: Check that getaddrinfo is available.
6fafda979df8Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

dirmngr: Check that getaddrinfo is available.

* dirmngr/Makefile.am (t_http_SOURCES): Add dns-stuff.c.
(t_ldap_parse_uri_SOURCES): Ditto.
* dirmngr/dns-stuff.c: Bail out if neither ADNS nor getaddrinfo is
available.

We used to have replacement code for getaddrinfo and thus check for it
in configure. However, this was for the old http and dns-cert code
from common/. For dirmngr I made liberal use of getaddrinfo w/o
without checking. Just in case someone tries to build on an old
platform we now error our with a suitable #error.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 21 2015, 10:11 PM
Parents
rG03e230f0ea62: gpg: Add a new OpenPGP card vendor.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG6fafda979df8: dirmngr: Check that getaddrinfo is available. (authored by Werner Koch <wk@gnupg.org>).Oct 21 2015, 10:11 PM