File Info

Rev. 2af31d809b5b1a7920472fdfb1645186830ac141
Size 671 bytes
Time 2021-12-12 23:10:44
Author simphone
Log Message

simphone 0.8.2

Content

diff -urb c-ares-1.18.1/src/lib/ares_init.c cares/src/lib/ares_init.c
--- c-ares-1.18.1/src/lib/ares_init.c
+++ cares/src/lib/ares_init.c
@@ -47,6 +47,8 @@
 #include <resolv.h>
 #endif
 
+#include "../../../simcore/crypto.h"
+
 #include "ares.h"
 #include "ares_inet_net_pton.h"
 #include "ares_library_init.h"
@@ -2506,6 +2508,9 @@
 {
   int randomized = 0;
   int counter=0;
+#ifdef _CRYPTO_H_
+  random_get (random_public, sim_pointer_new_length (key, key_data_len));
+#else
 #ifdef WIN32
   BOOLEAN res;
   if (ares_fpSystemFunction036)
@@ -2524,6 +2529,7 @@
   }
 #endif
 #endif /* WIN32 */
+#endif
 
   if (!randomized) {
     for (;counter<key_data_len;counter++)
Show on old repository browser