mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 23:19:59 -04:00
Merge branch '4292-uncleared-libcrypto-error-crypto-evp-evp_fetch-c-373-inner_evp_generic_fetch-bind-9.18' into 'bind-9.18'
[9.18] Resolve "Uncleared libcrypto error: crypto/evp/evp_fetch.c:373 inner_evp_generic_fetch" See merge request isc-projects/bind9!8279
This commit is contained in:
commit
04128e764e
1 changed files with 8 additions and 2 deletions
10
lib/isc/md.c
10
lib/isc/md.c
|
|
@ -168,8 +168,14 @@ end:
|
|||
return (res);
|
||||
}
|
||||
|
||||
#define md_register_algorithm(alg) \
|
||||
const isc_md_type_t *isc__md_##alg(void) { return (EVP_##alg()); }
|
||||
#define md_register_algorithm(alg) \
|
||||
const isc_md_type_t *isc__md_##alg(void) { \
|
||||
const isc_md_type_t *value = EVP_##alg(); \
|
||||
if (value == NULL) { \
|
||||
ERR_clear_error(); \
|
||||
} \
|
||||
return (value); \
|
||||
}
|
||||
|
||||
md_register_algorithm(md5);
|
||||
md_register_algorithm(sha1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue