Re: [PATCH 2/2] Added OpenSSL crypto backend
- From: Thomas Haller <thaller redhat com>
- To: Joel Holdsworth <joel holdsworth vcatechnology com>, networkmanager-list gnome org
- Subject: Re: [PATCH 2/2] Added OpenSSL crypto backend
- Date: Thu, 19 Nov 2015 15:05:48 +0100
On Thu, 2015-11-19 at 00:01 +0000, Joel Holdsworth wrote:
+gboolean
+crypto_randomize (void *buffer, gsize buffer_len, GError **error)
+{
+ RAND_bytes(buffer, buffer_len);
+ buffer_len = (buffer_len > 16) ? 16 : buffer_len;
this looks wrong.
+ return TRUE;
+}
Thomas
Attachment:
signature.asc
Description: This is a digitally signed message part
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]