curl/lib
Jay Satiro 1cafede9f2 rand: treat fake entropy the same regardless of endianness
When the random seed is purposely made predictable for testing purposes
by using the CURL_ENTROPY environment variable, process that data in an
endian agnostic way so the the initial random seed is the same
regardless of endianness.

- Change Curl_rand to write to a char array instead of int array.

- Add Curl_rand_hex to write random hex characters to a buffer.

Fixes #1315
Closes #1468

Co-authored-by: Daniel Stenberg
Reported-by: Michael Kaufmann
2017-05-08 23:24:29 +02:00
..
vauth rand: treat fake entropy the same regardless of endianness 2017-05-08 23:24:29 +02:00
vtls schannel: return a more specific error code for SEC_E_UNTRUSTED_ROOT 2017-05-04 18:19:33 +02:00
.gitattributes .gitattributes: force shell scripts to LF 2017-04-17 08:32:13 +02:00
.gitignore
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c
asyn-thread.c asyn-thread: fix unused macro warnings 2017-05-07 19:02:34 +02:00
asyn.h
base64.c
checksrc.pl
CMakeLists.txt
config-amigaos.h
config-dos.h
config-mac.h
config-os400.h
config-riscos.h
config-symbian.h
config-tpf.h
config-vxworks.h
config-win32.h
config-win32ce.h
conncache.c llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
conncache.h llist: replace Curl_llist_alloc with Curl_llist_init 2017-04-04 15:27:45 +02:00
connect.c connect: fix unreferenced parameter warning 2017-03-30 10:14:34 +02:00
connect.h connect: fix unreferenced parameter warning 2017-03-30 10:14:34 +02:00
content_encoding.c
content_encoding.h
cookie.c
cookie.h
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake
curl_des.c
curl_des.h
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c
curl_gssapi.h
curl_hmac.h
curl_ldap.h
curl_md4.h mbedtls: enable NTLM (& SMB) even if MD4 support is unavailable 2017-04-21 22:42:14 +02:00
curl_md5.h
curl_memory.h
curl_memrchr.c
curl_memrchr.h
curl_multibyte.c
curl_multibyte.h
curl_ntlm_core.c mbedtls: enable NTLM (& SMB) even if MD4 support is unavailable 2017-04-21 22:42:14 +02:00
curl_ntlm_core.h
curl_ntlm_wb.c
curl_ntlm_wb.h
curl_printf.h
curl_rtmp.c curl_rtmp: fix missing-variable-declarations warnings 2017-04-29 19:17:51 +02:00
curl_rtmp.h
curl_sasl.c curl_sasl: declare mechtable static 2017-04-04 22:59:34 +02:00
curl_sasl.h
curl_sec.h
curl_setup_once.h curl_setup_once: use SEND_QUAL_ARG2 for swrite 2017-05-04 09:23:00 +02:00
curl_setup.h curl_setup: Ensure no more than one IDN lib is enabled 2017-05-01 14:48:34 -04:00
curl_sspi.c
curl_sspi.h
curl_threads.c
curl_threads.h
curlx.h
dict.c
dict.h
dotdot.c
dotdot.h
easy.c buffer_size: make sure it always has the correct size 2017-05-01 22:55:29 +02:00
easyif.h
escape.c
escape.h
file.c buffer: use data->set.buffer_size instead of BUFSIZE 2017-05-01 22:55:29 +02:00
file.h
fileinfo.c llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
fileinfo.h llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
firefox-db2pem.sh
formdata.c rand: treat fake entropy the same regardless of endianness 2017-05-08 23:24:29 +02:00
formdata.h
ftp.c buffer: use data->set.buffer_size instead of BUFSIZE 2017-05-01 22:55:29 +02:00
ftp.h
ftplistparser.c llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
ftplistparser.h
getenv.c
getinfo.c
getinfo.h
gopher.c
gopher.h
hash.c llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
hash.h llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
hmac.c
hostasyn.c
hostcheck.c
hostcheck.h
hostip4.c
hostip6.c
hostip.c lib: remove unused code 2017-04-26 10:01:53 +02:00
hostip.h
hostsyn.c
http2.c http2: use the correct set buffer size 2017-05-01 22:55:29 +02:00
http2.h
http_chunks.c
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http_proxy.c http-proxy: use a dedicated CONNECT response buffer 2017-05-01 22:55:29 +02:00
http_proxy.h http-proxy: removed unused argument in CURL_DISABLE_PROXY case 2017-04-27 11:42:04 +02:00
http.c buffer: use data->set.buffer_size instead of BUFSIZE 2017-05-01 22:55:29 +02:00
http.h
idn_win32.c
if2ip.c if2ip: fix -Wcast-align warning 2017-04-25 09:19:59 +02:00
if2ip.h
imap.c
imap.h
inet_ntop.c
inet_ntop.h
inet_pton.c
inet_pton.h
krb5.c krb5: use private buffer for temp string, not receive buffer 2017-05-01 22:55:29 +02:00
ldap.c
libcurl.plist
libcurl.rc
libcurl.vers.in
llist.c llist: fix a comment after cbae73e1dd 2017-04-24 00:54:04 +02:00
llist.h llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
Makefile.am
makefile.amiga
Makefile.b32
makefile.dj
Makefile.inc
Makefile.m32
Makefile.netware
Makefile.vxworks
Makefile.Watcom
md4.c mbedtls: enable NTLM (& SMB) even if MD4 support is unavailable 2017-04-21 22:42:14 +02:00
md5.c
memdebug.c lib: fix compiler warnings 2017-05-03 20:11:13 +02:00
memdebug.h
mk-ca-bundle.pl
mk-ca-bundle.vbs
mprintf.c lib: fix compiler warnings 2017-05-03 20:11:13 +02:00
multi.c multi: clarify condition in curl_multi_wait 2017-04-22 22:35:46 +02:00
multihandle.h llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
multiif.h
netrc.c
netrc.h
non-ascii.c
non-ascii.h
nonblock.c
nonblock.h
nwlib.c
nwos.c
objnames-test08.sh
objnames-test10.sh
objnames.inc
openldap.c
parsedate.c
parsedate.h
pingpong.c pingpong: use the set buffer size 2017-05-01 22:55:29 +02:00
pingpong.h
pipeline.c llist: no longer uses malloc 2017-04-22 11:25:27 +02:00
pipeline.h llist: replace Curl_llist_alloc with Curl_llist_init 2017-04-04 15:27:45 +02:00
pop3.c
pop3.h
progress.c
progress.h
rand.c rand: treat fake entropy the same regardless of endianness 2017-05-08 23:24:29 +02:00
rand.h rand: treat fake entropy the same regardless of endianness 2017-05-08 23:24:29 +02:00
rtsp.c
rtsp.h
security.c
select.c select: use correct SIZEOF_ constant 2017-03-30 08:49:30 +02:00
select.h poll: prefer <poll.h> over <sys/poll.h> 2017-04-11 08:31:38 +02:00
sendf.c BUFSIZE: rename to READBUFFER_*, make separate MASTERBUF_SIZE 2017-05-01 22:55:29 +02:00
sendf.h
setup-os400.h
setup-vms.h
share.c
share.h
sigpipe.h
slist.c
slist.h
smb.c upload: UPLOAD_BUFSIZE is now for the upload buffer 2017-05-01 22:55:29 +02:00
smb.h
smtp.c buffer: use data->set.buffer_size instead of BUFSIZE 2017-05-01 22:55:29 +02:00
smtp.h
sockaddr.h
socks_gssapi.c
socks_sspi.c
socks.c
socks.h
speedcheck.c low_speed_limit: improved function for longer time periods 2017-04-06 17:38:23 +02:00
speedcheck.h
splay.c multi: fix queueing of pending easy handles 2017-04-04 23:37:18 +02:00
splay.h multi: fix queueing of pending easy handles 2017-04-04 23:37:18 +02:00
ssh.c ssh: fix compiler warning from e40e9d7f0d 2017-05-02 08:32:04 +02:00
ssh.h
strcase.c
strcase.h
strdup.c
strdup.h
strerror.c
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
system_win32.c
system_win32.h
telnet.c Telnet: Write full buffer instead of byte-by-byte 2017-05-02 23:23:39 +02:00
telnet.h
tftp.c tftp: silence bad-function-cast warning 2017-05-07 16:26:19 +02:00
tftp.h
timeval.c
timeval.h
transfer.c buffer: use data->set.buffer_size instead of BUFSIZE 2017-05-01 22:55:29 +02:00
transfer.h
url.c url: let CURLOPT_BUFFERSIZE realloc to smaller sizes too 2017-05-02 00:04:52 +02:00
url.h
urldata.h gtls: fixed a lingering BUFSIZE reference 2017-05-02 09:14:26 +02:00
version.c
warnless.c
warnless.h
wildcard.c llist: replace Curl_llist_alloc with Curl_llist_init 2017-04-04 15:27:45 +02:00
wildcard.h llist: replace Curl_llist_alloc with Curl_llist_init 2017-04-04 15:27:45 +02:00
x509asn1.c
x509asn1.h