On 18/07/2019 14:20, Lev Stipakov wrote:
> Hi,
> 
> 
>> Are we sure we can't call this function with 'len' longer than the
>> available space in 'key' ?
> 
> 
> Yep, because we get available space here:
> 
>> +    const int len = BCAP(key);
>>
> 
> and then pass it to rand_bytes:
> 

Ok, that sounds good, thanks!

> 
>>> +    if (!rand_bytes(BEND(key), len))
> 
> 

-- 
Antonio Quartulli


_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to