File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 99#include <libknot/packet/pkt.h>
1010
1111// This is the central place in Knot Resolver which includes the (former) libdnssec.
12+ #if KNOT_VERSION_HEX < 0x030600
1213#include <libdnssec/dnssec.h>
1314#include <libdnssec/digest.h>
15+ #else
16+ #include <libknot/libknot.h>
17+ #include <libknot/dnssec/digest.h>
18+ // Now some compatibility
19+ enum {
20+ // These should be OK to replace everywhere.
21+ DNSSEC_EOK = KNOT_EOK ,
22+ DNSSEC_NOT_FOUND = KNOT_ENOENT , // could be just -ENOENT anyway
23+
24+ // These might not be OK to simply replace everywhere.
25+ DNSSEC_INVALID_KEY_ALGORITHM = KNOT_INVALID_KEY_ALGORITHM ,
26+ DNSSEC_INVALID_DIGEST_ALGORITHM = KNOT_EALGORITHM ,
27+ };
28+ #endif
1429
1530/**
1631 * Initialise cryptographic back-end.
Original file line number Diff line number Diff line change 2020message (' --- required dependencies ---' )
2121knot_version = ' >=3.3'
2222libknot = dependency (' libknot' , version : knot_version)
23- libdnssec = dependency (' libdnssec' , version : knot_version)
23+ if libknot.version() < ' 3.6'
24+ libdnssec = dependency (' libdnssec' , version : knot_version)
25+ else
26+ libdnssec = libknot # the libraries merged
27+ endif
2428libzscanner = dependency (' libzscanner' , version : knot_version)
2529libuv = dependency (' libuv' , version : ' >=1.27' ) # need uv_udp_connect()
2630lmdb = dependency (' lmdb' , required : false )
You can’t perform that action at this time.
0 commit comments