Use GnuTLS-OpenSSL instead of OpenSSL. Thanks to Zhenech for help with this patch.

This commit is contained in:
lotodore committed 2008-04-21 22:27:15 +00:00
1 parent 505ee2c984
commit d7c6cdd75c
8 files changed
+56 -24

No files matched your search

+3 -5
View File
@@ -21,7 +21,7 @@
#include "tools.h"
#include <core/loghelper.h>
#include <openssl/rand.h>
#include <core/openssl_wrapper.h>
#include <limits>
@@ -41,8 +41,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool
if(!RAND_bytes(rand_buf, 4))
{
RAND_pseudo_bytes(rand_buf, 4);
LOG_MSG("RAND_bytes failed, using RAND_pseudo_bytes.");
LOG_MSG("RAND_bytes failed!");
}
randNumber = 0;
@@ -66,8 +65,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool
if(!RAND_bytes(rand_buf, 4))
{
RAND_pseudo_bytes(rand_buf, 4);
LOG_MSG("RAND_bytes failed, using RAND_pseudo_bytes.");
LOG_MSG("RAND_bytes failed!");
}
randNumber = 0;