- load gost algorithm if digest is seen before key algorithm.

git-svn-id: file:///svn/unbound/trunk@3630 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2016-02-19 12:17:03 +00:00
parent 134924c4da
commit e9f954b828
3 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
19 February 2016: Wouter
- Print understandable debug log when unusable DS record is seen.
- load gost algorithm into unbound-host.
- load gost algorithm if digest is seen before key algorithm.
17 February 2016: Wouter
- Fix that "make install" fails due to "text file busy" error.

View File

@ -418,9 +418,6 @@ int main(int argc, char* argv[])
struct ub_ctx* ctx = NULL;
int debuglevel = 0;
# ifdef USE_GOST
(void)sldns_key_EVP_load_gost_id();
# endif
ctx = ub_ctx_create();
if(!ctx) {
fprintf(stderr, "error: out of memory\n");

View File

@ -117,6 +117,8 @@ ds_digest_size_supported(int algo)
#endif
#ifdef USE_GOST
case LDNS_HASH_GOST:
/* we support GOST if it can be loaded */
(void)sldns_key_EVP_load_gost_id();
if(EVP_get_digestbyname("md_gost94"))
return 32;
else return 0;