Ondřej Surý
3a4f820d62
Replace all random functions with isc_random, isc_random_buf and isc_random_uniform API.
...
The three functions has been modeled after the arc4random family of
functions, and they will always return random bytes.
The isc_random family of functions internally use these CSPRNG (if available):
1. getrandom() libc call (might be available on Linux and Solaris)
2. SYS_getrandom syscall (might be available on Linux, detected at runtime)
3. arc4random(), arc4random_buf() and arc4random_uniform() (available on BSDs and Mac OS X)
4. crypto library function:
4a. RAND_bytes in case OpenSSL
4b. pkcs_C_GenerateRandom() in case PKCS#11 library
2018-05-16 09:54:35 +02:00
Ondřej Surý
23c1f7e506
Enforce usage of OpenSSL or PKCS#11 library in platform.h header
2018-05-13 19:18:56 -07:00
Ondřej Surý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Michał Kępień
172d0c401e
Address GCC 8 -Wformat-truncation warnings
2018-05-10 10:35:01 +02:00
Ondřej Surý
9a3a257374
Always use random data from the crypto provider
2018-05-03 15:03:46 +02:00
Mark Andrews
f8d2a46daa
remove exit calls after FATAL_ERROR
2018-04-20 14:50:35 -07:00
Ondřej Surý
5311a3b7b5
We use too old Visual Compiler to use scoped variables
2018-04-12 10:37:33 +02:00
Ondřej Surý
7278c455bc
Remove isc_string_strcasestr implementation and clean up the header and headers
2018-04-12 10:37:33 +02:00
Ondřej Surý
11f26b42e3
Replace all usage of non-reentrant strtok() with strtok_r()
2018-04-12 10:37:33 +02:00
Ondřej Surý
921d05ddcf
Replace usage of strsep with POSIX strtok_r()
2018-04-12 10:37:33 +02:00
Ondřej Surý
b9552250cb
Remove unused isc_string_regiondup function.
2018-04-12 10:37:33 +02:00
Ondřej Surý
9fda5253fd
Remove isc_string_printf and isc_string_printf_truncate.
...
Replace with simple snprintf() as appropriate.
2018-04-12 10:37:33 +02:00
Ondřej Surý
ccdb0287e8
Remove isc_string_copy, isc_string_copy_truncate and isc_string_append.
...
Use strlcpy and strlcat as appropriate instead.
2018-04-12 10:37:33 +02:00
Ondřej Surý
20d145efef
Replace isc_string_touint64 with strtoull (C99)
2018-04-12 10:37:33 +02:00
Ondřej Surý
c2f42583c0
Refactor ISC_SOCKET_* defines into an isc_socket_options_t enum
2018-04-12 09:54:21 +02:00
Ondřej Surý
8c99d104e3
Sync isc_file_template functions between unix and win32, so they are same
2018-04-11 23:04:20 +02:00
Ondřej Surý
7467735258
Define PATH_MAX on Windows as _MAX_PATH, so we can use it everywhere
2018-04-11 12:04:39 +02:00
Ondřej Surý
b097be17ef
Remove unused obsolete isc_hash_* function, and just keep the FNV-1a version
2018-04-04 23:12:14 +02:00
Stephen Morris
58ad17bd54
Merge branch '97-windows-version-of-bind-failing-to-build' into 'master'
...
Resolve "Windows version of BIND failing to build"
Closes #97
See merge request isc-projects/bind9!65
2018-02-27 04:58:05 -05:00
Mark Andrews
e8249dcd49
silence unread assignment warning by using POST macro
2018-02-24 17:50:41 -08:00
Ondřej Surý
1cd63cd634
chg: dev: Remove isc_net_aton from libisc.def.in
2018-02-24 09:50:31 +01:00
Ondřej Surý
a11e23b5ed
Replace all usage of inet_aton() with inet_pton()
2018-02-23 13:57:10 +01:00
Ondřej Surý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Mark Andrews
54275e8f5c
use %u instead of %d
2018-02-16 10:20:38 +11:00
Mark Andrews
c7e848ce54
use %u instead of %d
2018-02-16 10:20:38 +11:00
Ondřej Surý
4ff2d36adc
Remove whole unused ondestroy callback mechanism
2018-02-12 14:49:32 +01:00
Tinderbox User
02ce048c91
update copyright notice / whitespace
2018-02-08 23:46:17 +00:00
Mark Andrews
6757dc6488
[master] fix nsupdate test on windows
...
4888. [test] Initialize sockets correctly in sample-update so
that nsupdate system test will will run on Windows.
[RT #47097 ]
2018-02-08 13:34:43 -08:00
Francis Dupont
614d838acf
Merged rt46864 (check MD5 amd SHA1 support)
2018-01-17 14:33:21 +01:00
Mark Andrews
1e10ef06ce
4855. [bug] isc_time_formatshorttimestamp produced incorrect
...
output. [RT #46938 ]
2018-01-04 09:57:40 +11:00
Tinderbox User
7bba3a7c44
update copyright notice / whitespace
2018-01-02 23:45:28 +00:00
Mark Andrews
0645f8f1ce
4853. [bug] Add REQUIRE's and INSIST's to isc_time_formatISO8601L
...
and isc_time_formatISO8601Lms. [RT #46916 ]
2018-01-02 10:57:31 +11:00
Mark Andrews
7770e0b069
4852. [bug] Handle strftime() failing in isc_time_formatISO8601ms.
...
Add REQUIRE's and INSIST's to isc_time_formattimestamp,
isc_time_formathttptimestamp, isc_time_formatISO8601,
isc_time_formatISO8601ms. [RT #46892 ]
2018-01-02 10:48:08 +11:00
Mark Andrews
14e9925868
add missing entries to .def files [RT #46215 ]
2017-11-27 13:49:39 +11:00
Mukund Sivaraman
7e1df5182c
[master] isc_rng_randombytes()
...
4807. [cleanup] isc_rng_randombytes() returns a specified number of
bytes from the PRNG; this is now used instead of
calling isc_rng_random() multiple times. [RT #46230 ]
2017-11-06 10:44:37 -08:00
Tinderbox User
db15f78ad7
update copyright notice / whitespace
2017-10-31 23:45:54 +00:00
Mark Andrews
ff30290b48
4804. [port] win32: access() does not work on directories as
...
required by POSIX. Supply a alternative in
isc_file_isdirwritable. [RT #46394 ]
2017-11-01 09:29:24 +11:00
Evan Hunt
959d294067
[master] remove isc-hmac-fixup
...
4797. [func] Removed "isc-hmac-fixup", as the versions of BIND that
had the bug it worked around are long past end of
life. [RT #46411 ]
2017-10-27 09:56:11 -07:00
Michał Kępień
2361003a88
[master] Doxygen fixes and cleanups
...
4773. [doc] Fixed generating Doxygen documentation for functions
annotated using certain macros. Miscellaneous
Doxygen-related cleanups. [RT #46276 ]
2017-10-17 06:56:46 +02:00
Evan Hunt
4c368378fc
[master] print.h; add missing win32 declaration
2017-10-09 15:01:46 -07:00
Evan Hunt
4c6df1653c
[master] add missing names
2017-10-06 17:38:35 -07:00
Mark Andrews
396125eefe
#undef inet_ntop
2017-10-04 17:50:01 +11:00
Mark Andrews
a009d03a1a
4748. [cleanup] Sprintf to snprintf coversions. [RT #46132 ]
2017-10-03 14:54:19 +11:00
Mukund Sivaraman
d5707676e4
Don't use memset() to wipe memory ( #45947 )
2017-09-19 16:16:45 +05:30
Francis Dupont
ad67f0bb42
Added isc_entropy_sethook in exported symbols
2017-09-16 15:57:06 +02:00
Francis Dupont
5fc7163211
Added isc_entropy_usehook in exported symbols
2017-09-16 15:56:13 +02:00
Francis Dupont
9c829f4f96
Merged rt31459d (openssl random)
2017-09-16 13:53:29 +02:00
Tinderbox User
f54a365aeb
update copyright notice / whitespace
2017-09-14 23:46:40 +00:00
Mark Andrews
c59bf663e8
silence warning
2017-09-14 19:02:27 +10:00
Mark Andrews
bace03316c
#include <isc/string.h>
...
(cherry picked from commit 7eb73f6288 )
2017-09-14 18:59:04 +10:00