# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
-AC_INIT(libdns, 1.00, libdns@nlnetlabs.nl, libdns)
+AC_INIT(libdns, 1.0.0, libdns@nlnetlabs.nl, libdns)
AC_CONFIG_SRCDIR([packet.c])
OURCPPFLAGS='-ansi -pedantic -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600'
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
-AC_INIT(libdns-tests, 1.0, ldns@nlnetlabs.nl, ldns-tests-1.0)
+AC_INIT(libdns-tests, 1.0.0, ldns@nlnetlabs.nl, ldns-tests-1.0.0)
AC_CONFIG_SRCDIR([../ldns/config.h])
AC_AIX
HEADER = config.h
TESTS = run-test0 run-test7 run-test18 run-test19 run-test20 \
dname-label-test notify \
- rrsig-test serial server ldns-mx ldns-chaos
+ rrsig-test serial server
.PHONY: all clean realclean
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
-AC_INIT(libdns-tests, 1.0, ldns@nlnetlabs.nl, ldns-tests-1.0)
+AC_INIT(libdns-tests, 1.0.0, ldns@nlnetlabs.nl, ldns-tests-1.0.0)
AC_CONFIG_SRCDIR([../ldns/config.h])
AC_AIX
printf("Now we are going to verify\n");
- printf("\n[%d]\n", ldns_verify(rrs, signatures, dnskeys));
+ printf("\n[%d]\n", ldns_verify(rrs, signatures, dnskeys, NULL));
return 0;
}
ldns_rr_list *rrs;
ldns_rr_list *signatures;
ldns_rr_list *dnskeys;
-ldns_rr_list *result;
+ ldns_rr_list *result_keys;
+ ldns_status result;
/* ----- */
FILE *f;
printf("Now we are going to verify\n");
- result = ldns_verify(rrs, signatures, dnskeys);
+ result_keys = ldns_rr_list_new();
+ result = ldns_verify(rrs, signatures, dnskeys, result_keys);
-printf("RESULT:\n");
-ldns_rr_list_print(stdout, result);
+ printf("RESULT:\n");
+ ldns_rr_list_print(stdout, result_keys);
- if (result != NULL) {
+ if (result == LDNS_STATUS_OK) {
printf("SUCCESS\n\n");
} else {
printf("FAILURE\n\n");