4 August 2021: Wouter
- In unit test use openssl set security level to allow keys in test.
- Fix static analysis warnings about localzone locks that are unused.
+ - Fix missing locks in zonemd unit test.
3 August 2021: George
- Listen to read or write events after the SSL handshake.
/* read file */
z = authtest_addzone(az, zname, zfile);
unit_assert(z);
+ lock_rw_wrlock(&z->lock);
z->zonemd_check = 1;
+ lock_rw_unlock(&z->lock);
/* create zonemd digest */
result = auth_zone_generate_zonemd_hash(z, scheme, hashalgo,
/* read file */
z = authtest_addzone(az, zname, zfile);
unit_assert(z);
+ lock_rw_wrlock(&z->lock);
z->zonemd_check = 1;
+ lock_rw_unlock(&z->lock);
hashlen = sizeof(hash);
if(sldns_str2wire_hex_buf(digest, hash, &hashlen) != 0) {
unit_assert(0); /* parse failure */