Commit Graph

81 Commits

Author SHA1 Message Date
wouter
ae80d3cf46 - Fix that fallback for windows port.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4700 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-05-29 07:52:31 +00:00
wouter
ee22f0ee84 - in compat/arc4random call getentropy_urandom when getentropy fails
with ENOSYS.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4699 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-05-29 07:48:58 +00:00
wouter
f8f3f79a0d - Fix unfreed locks in log and arc4random at exit of unbound.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4491 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-02-02 09:27:16 +00:00
wouter
47367556e4 fixes for _t changes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3992 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-01-19 14:11:59 +00:00
wouter
60a7029fcd - Fix to rename internally used types from _t to _type, because _t
type names are reserved by POSIX.
- iana portlist update


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3989 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-01-19 10:25:41 +00:00
wouter
2d05999b8a - Fix 780: MAP_ANON not defined in HP-UX 11.31.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3790 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-06-14 10:27:34 +00:00
wouter
9a3427c915 fixup strsep and windows event assignment.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3739 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-05-31 12:37:42 +00:00
wouter
fe7a6167dc - compat strsep implementation.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3738 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-05-31 12:27:41 +00:00
wouter
3002991ef1 - Fix compile of getentropy_linux for SLES11 servicepack 4.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3683 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-03-21 08:25:03 +00:00
wouter
787cdd6edf - configure tests for the weak attribute support by the compiler.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3645 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-03-03 15:59:25 +00:00
wouter
33c3822724 - spelling fixes from Igor Sobrado Delgado.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3544 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-11-18 14:11:46 +00:00
wouter
984f91d1b4 - Fix #594. libunbound: optionally use libnettle for crypto.
Contributed by Luca Bruno.  Added --with-nettle for use with
  --with-libunbound-only.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3533 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-11-17 09:43:07 +00:00
wouter
b4b56f4065 Fixup snprintf warning for 32bit systems.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3520 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-10-27 14:51:57 +00:00
wouter
766c26635c portability fixes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3516 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-10-27 10:39:18 +00:00
wouter
0eccf8950d - isblank() compat implementation.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3514 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-10-27 09:52:16 +00:00
wouter
9f56dc9102 - Use reallocarray for integer overflow protection, patch submitted
by Loganaden Velvindron.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3365 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-03-17 08:24:24 +00:00
wouter
5aa2715eda Reallocarray compat source from OpenBSD.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3364 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-03-17 08:20:25 +00:00
wouter
9f96c2b6be - Fix warning on sign compare in getentropy_linux.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3360 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-03-10 10:29:55 +00:00
wouter
279f75db29 - Patch from Brad Smith that syncs compat/getentropy_linux with
OpenBSD's version (2015-03-04).


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3345 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-03-04 07:18:09 +00:00
wouter
98d9836bb9 - Use the getrandom syscall introduced in Linux 3.17 (from Heiner Kallweit).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3338 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-02-20 09:19:32 +00:00
wouter
a3582f1bf5 - getauxval test for ppc64 linux compatibility.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3293 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-01-05 09:13:32 +00:00
wouter
0137e92031 - Fix bug#632: unbound fails to build on AArch64, protects
getentropy compat code from calling sysctl if it is has been removed.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3287 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-12-02 00:19:42 +00:00
wouter
10095fe0dd - Add include to getentropy_linux.c, hopefully fixing debian build.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3286 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-11-30 02:00:29 +00:00
wouter
02f99bb274 - Fix crash on multiple thread random usage on systems without
arc4random.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3277 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-11-21 08:22:18 +00:00
wouter
95de7e9b8f - fix compat/getentropy_win.c check if CryptGenRandom works and no
immediate exit on windows.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3276 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-11-20 12:44:00 +00:00
wouter
e0dc5e3a93 whitespace nicer.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3245 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-10-13 12:14:43 +00:00
wouter
275b0360d4 More casts.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3244 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-10-13 09:23:12 +00:00
wouter
def3dfd114 More unsigned chasts for toupper/tolower/ctype
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3242 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-10-13 08:35:00 +00:00
wouter
7064fd4e00 Configure tests if main can be linked to from getentropy compat.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3191 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-13 08:18:57 +00:00
wouter
4e1cc8d35d Includes from windows.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3190 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 20:45:46 +00:00
wouter
4c5c9e2bd2 getentropy from Theo de Raadt
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3189 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 20:19:14 +00:00
wouter
edb2acae94 sync with OpenBSD.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3188 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 20:07:41 +00:00
wouter
05fe6e641c Link and test main.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3187 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 19:31:09 +00:00
wouter
41d5620427 Fixup and link in main for some systems.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3186 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 19:30:32 +00:00
wouter
0227ff54f1 Making getentropy the same across platforms.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3185 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 18:58:11 +00:00
wouter
1816535b88 - update compat/getentropy and arc4random to the most recent ones from OpenBSD.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3184 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 18:23:49 +00:00
wouter
e5d5340f1b - update compat/getentropy to the most recent ones from OpenBSD.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3183 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 18:03:27 +00:00
wouter
690b27c016 - Fix getentropy compat code, function refs were not portable.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3178 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-12 11:33:38 +00:00
wouter
db942d53c3 compat for arc4random with openssl 0.9.7 and openssl 0.9.8
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3174 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 16:35:05 +00:00
matje
2c269921c6 malloc calloc patch
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3173 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 15:38:07 +00:00
wouter
1135921a07 - arc4random, getentropy and explicit_bzero compat for Windows.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3172 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 14:46:46 +00:00
wouter
e2c0488cb5 Fixup locks to be more portable in compat.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3169 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 13:25:37 +00:00
wouter
e2e1f8027a Use log_info on OSX for getentropy pointer.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3167 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 12:09:37 +00:00
wouter
96d44a1fc4 Fix for sun compiler.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3166 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 11:49:27 +00:00
wouter
396129ba14 Make getentropy work on OSX with libunbound.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3165 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 11:37:53 +00:00
wouter
c780101d8c Fixup signed/unsigned comparison warnings on OSX in getentropy_osx.c
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3163 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 10:12:15 +00:00
wouter
5306e156fa Fix getentropy_solaris compile.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3162 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 09:59:15 +00:00
wouter
ea396b7f2c Fix compile and test on Linux.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3159 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 09:39:13 +00:00
wouter
4b26592e42 - arc4random in compat/ and getentropy, explicit_bzero, chacha for
dependencies, from OpenBSD.  arc4_lock and sha512 in compat.
  This makes arc4random available on all platforms, except when
  compiled with LIBNSS (it uses libNSS crypto random).


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3158 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-07-11 09:27:24 +00:00
wouter
68b138cbd3 And fix #551 REGENT to COPYRIGHT HOLDER in license in file headings.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3079 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-07 13:28:39 +00:00