Seed the random values used by Dirmngr's dns code.
Open, NormalPublic

Assigned To
None
Authored By
werner
Mon, May 18, 1:57 PM
Subscribers

Description

Although faked DNS replies are not too severe (other layers need to ensure that the correct service is accessed) we should make sure that at least srandom() is once used in dirmngr to make random() output an not easy to guess stream of integers.

Given the somewhat complicated way to use a portable random function in dns.c it might actually be easier to use gcry_create_nonce here. But that one is slower.

Reported-by: David Nyström

Event Timeline

werner triaged this task as Normal priority.Mon, May 18, 1:57 PM
werner created this task.