- documented 'gcc: unrecognized -KPIC option' errors on Solaris.
- example.conf values changed to /usr/local/etc/unbound
- DSA test work.
+ - DSA signatures: unbound is compatible with both encodings found.
+ It will detect and convert when necessary.
14 April 2008: Wouter
- got update for parseunbound.pl statistics script from Kai Storbeck.
return 1;
}
printf("Start of %s unit test.\n", PACKAGE_STRING);
+ ERR_load_crypto_strings();
checklock_start();
rnd_test();
verify_test();
printf("%d checks ok.\n", testcount);
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
+ ERR_remove_state(0);
+ ERR_free_strings();
return 0;
}
{
printf("verify test\n");
verifytest_file("testdata/test_signatures.1", "20070818005004");
- log_info("test_signatures.2");
- verbosity=3;
- /*
verifytest_file("testdata/test_signatures.2", "20080414005004");
- log_info("test_signatures.3");
verifytest_file("testdata/test_signatures.3", "20080416005004");
- log_info("test_signatures.4");
verifytest_file("testdata/test_signatures.4", "20080416005004");
- */
- log_info("test_signatures.5");
verifytest_file("testdata/test_signatures.5", "20080416005004");
- log_info("test_signatures.6");
verifytest_file("testdata/test_signatures.6", "20080416005004");
- log_info("test_signatures.7");
verifytest_file("testdata/test_signatures.7", "20070829144150");
- log_info("test_signatures.8");
verifytest_file("testdata/test_signatures.8", "20070829144150");
dstest_file("testdata/test_ds_sig.1");
nsectest();
EVP_PKEY_free(evp_key);
return sec_status_bogus;
}
- /* if it is a DSA signature in XXX format, convert to DER format */
+ /* if it is a DSA signature in bind format, convert to DER format */
if((algo == LDNS_DSA || algo == LDNS_DSA_NSEC3) &&
- 0) { /*sigblock_len > 0 && sigblock[0] == 0) {*/
- log_info("setup_dsa_sig_needed");
+ sigblock_len == 1+2*SHA_DIGEST_LENGTH) {
if(!setup_dsa_sig(&sigblock, &sigblock_len)) {
verbose(VERB_QUERY, "verify: failed to setup DSA sig");
+ EVP_PKEY_free(evp_key);
return sec_status_bogus;
}
dofree = 1;
- } else if(algo == LDNS_DSA || algo == LDNS_DSA_NSEC3)
- log_info("setup_dsa_sig_nope");
+ }
/* do the signature cryptography work */
EVP_MD_CTX_init(&ctx);