Best way to get version in old libunbounds?

Wouter Wijngaards wouter at nlnetlabs.nl
Thu Feb 13 16:23:32 UTC 2020


Hi Felipe,

On 2/13/20 5:17 PM, Felipe Gasper via Unbound-users wrote:
> Hello,
> 
> I’ve noticed that UNBOUND_VERSION_MAJOR and friends aren’t defined in some older libunbound installs.
> 
> Is there any reliable way to get the libunbound version in those older versions from C?

For 1.4.15 and later there is ub_version().  Before that, no version
information, don't know if you can create a request for version.server
CH TXT and then the library tells you, if that works.  Or test for
features, or unbound -h output. (unbound -V nowadays).

Best regards, Wouter

> 
> Thank you!
> 
> -FG
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20200213/5c8eb416/attachment.bin>


More information about the Unbound-users mailing list