Commit Briefs
switch to phos_uri
Initially I took the IRI parser from gmid, stripped of the UTF-8 things and transformed back into a URI parser. Then I've added some functions to resolve URIs, but it wasn't enough. gmid parser is aimed at servers, and so it doesn't handle very well relative links. This makes use of the libphos uri parser, which was coded to follow the RFC more strictly, and to fully support all kinds of URIs. It'll need to be expanded in the future and be improved for sure
handle success code other than 20
20 is the only used, but *technically* one (read: Sean and his client torture test) can send 29, 27, ...
correctly handle the port in the request
add an explicit port if one is given and it's not 1965
simplify host resolution on !HAVE_ASR_RUN
no functional changes intended
first draft of asynchronous dns resolution
Use asr on OpenBSD to do DNS query lookups asynchronously. At the moment it seems a bit hard to provide the whole asr + asr_event stuff in the compat layer, so hide those bits behind an #ifdef; not the prettiest solution, but a working one. Future works may either: - provide a stub implementation for the asr stuff - bundle the libasr from OpenSMTD-portable