rbnacl-libsodium 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +4 -0
  3. data/lib/rbnacl/libsodium/version.rb +1 -1
  4. data/vendor/libsodium/ChangeLog +20 -0
  5. data/vendor/libsodium/LICENSE +1 -1
  6. data/vendor/libsodium/Makefile.in +8 -4
  7. data/vendor/libsodium/THANKS +3 -0
  8. data/vendor/libsodium/autom4te.cache/output.1 +96 -57
  9. data/vendor/libsodium/autom4te.cache/output.3 +96 -57
  10. data/vendor/libsodium/autom4te.cache/requests +544 -544
  11. data/vendor/libsodium/autom4te.cache/traces.1 +386 -367
  12. data/vendor/libsodium/autom4te.cache/traces.3 +222 -213
  13. data/vendor/libsodium/builds/msvc/version.h +2 -2
  14. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.props +1 -1
  15. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.props +1 -1
  16. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.props +1 -1
  17. data/vendor/libsodium/configure +95 -56
  18. data/vendor/libsodium/configure.ac +26 -11
  19. data/vendor/libsodium/dist-build/Makefile.am +1 -0
  20. data/vendor/libsodium/dist-build/Makefile.in +2 -0
  21. data/vendor/libsodium/dist-build/emscripten.sh +48 -10
  22. data/vendor/libsodium/dist-build/ios.sh +59 -7
  23. data/vendor/libsodium/libsodium-uninstalled.pc.in +6 -0
  24. data/vendor/libsodium/msvc-scripts/Makefile.in +1 -0
  25. data/vendor/libsodium/msvc-scripts/process.bat +2 -2
  26. data/vendor/libsodium/msvc-scripts/sodium.props +2 -2
  27. data/vendor/libsodium/src/Makefile.in +1 -0
  28. data/vendor/libsodium/src/libsodium/Makefile.in +1 -0
  29. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +46 -4
  30. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c +13 -2
  31. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c +2 -2
  32. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +8 -2
  33. data/vendor/libsodium/src/libsodium/crypto_sign/crypto_sign.c +6 -6
  34. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +3 -1
  35. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +13 -6
  36. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +8 -8
  37. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c +10 -6
  38. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +2 -2
  39. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +2 -2
  40. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +2 -2
  41. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.c +11 -5
  42. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.c +11 -5
  43. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.c +11 -5
  44. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.c +11 -5
  45. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.c +5 -1
  46. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +5 -1
  47. data/vendor/libsodium/src/libsodium/include/Makefile.in +1 -0
  48. data/vendor/libsodium/src/libsodium/include/sodium.h +44 -44
  49. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +61 -36
  50. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +0 -10
  51. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +20 -18
  52. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +3 -3
  53. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +3 -3
  54. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +2 -2
  55. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +1 -1
  56. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +10 -3
  57. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +9 -2
  58. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +9 -2
  59. data/vendor/libsodium/src/libsodium/sodium/utils.c +97 -72
  60. data/vendor/libsodium/test/Makefile.in +1 -0
  61. data/vendor/libsodium/test/default/Makefile.am +9 -2
  62. data/vendor/libsodium/test/default/Makefile.in +38 -78
  63. data/vendor/libsodium/test/default/box_easy2.c +55 -10
  64. data/vendor/libsodium/test/default/box_easy2.exp +3 -0
  65. data/vendor/libsodium/test/default/cmptest.h +4 -0
  66. data/vendor/libsodium/test/default/{pre.js → pre.js.inc} +10 -4
  67. data/vendor/libsodium/test/default/pwhash.c +6 -4
  68. data/vendor/libsodium/test/default/scalarmult6.c +0 -2
  69. data/vendor/libsodium/test/default/sign.c +1 -1
  70. data/vendor/libsodium/test/default/sodium_utils2.c +5 -2
  71. data/vendor/libsodium/test/default/sodium_utils3.c +3 -1
  72. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c645d0125d12808a809a8c7de0b6ff79bb6cd3d0
4
- data.tar.gz: ec8deca0ae399111f2623b4e6dbc3a39ad9006b0
3
+ metadata.gz: 33a04283007dfdd8685c7aad46cec02f1e670967
4
+ data.tar.gz: 772f9aef30e1e609323306a722e681afa992a7dc
5
5
  SHA512:
6
- metadata.gz: 8ff98dfc4b8d48de229e2d2a3b161f0aa286d041f8e700de33088bbd85ac577fd5ef50ace267987bd574f0c38f7e7c7b60a5cb5f1ed0a26753f2a181feaeb33e
7
- data.tar.gz: d08112930635b0f08f6db1828c75ad2c7db32dfcb39ee745d7f49d3ae1ec62a85e47d0b1f7f21e3cb4abad0000c348fb420314c21c53066cf74f24a8ddc37c27
6
+ metadata.gz: d2430921a7eca540cf60a927e09f9cc3510b46740edbeac44061530ae94f2f7dbd2d9b349dbe2aeb0fb110e8d33ee5b9d3759c5d5f58fb50ad430fe9f87dede5
7
+ data.tar.gz: 38153f19b0379e46771d073f6ab12486e5013e9042acb40b6ed25be28c5bce4449876f1b84aca3af5e2ff8cee796468e9393b9dbf043875605a23ab424d9cc4b
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.0.2 (2015-01-31)
2
+ ------------------
3
+ * Update to libsodium 1.0.2
4
+
1
5
  1.0.1 (2014-11-25)
2
6
  ------------------
3
7
  * Update to libsodium 1.0.1
@@ -1,5 +1,5 @@
1
1
  module RbNaCl
2
2
  module Libsodium
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -1,4 +1,24 @@
1
1
 
2
+ * Version 1.0.2
3
+ - The _easy and _detached APIs now support precalculated keys;
4
+ crypto_box_easy_afternm(), crypto_box_open_easy_afternm(),
5
+ crypto_box_detached_afternm() and crypto_box_open_detached_afternm()
6
+ have been added as an alternative to the NaCl interface.
7
+ - Memory allocation functions can now be used on Operating systems with
8
+ no memory protection.
9
+ - crypto_sign_open() and crypto_sign_edwards25519sha512batch_open()
10
+ now accept a NULL pointer instead of a pointer to the message size, if
11
+ storing this information is not required.
12
+ - The close-on-exec flag is now set on the descriptor returned when
13
+ opening /dev/urandom.
14
+ - A libsodium-uninstalled.pc file to use pkg-config even when
15
+ libsodium is not installed, has been added.
16
+ - The iOS target now includes armv7s and arm64 optimized code, as well
17
+ as i386 and x86_64 code for the iOS simulator.
18
+ - sodium_free() can now be called on regions with PROT_NONE protection.
19
+ - The Javascript tests can run on Ubuntu, where the node binary was
20
+ renamed nodejs. io.js can also be used instead of node.
21
+
2
22
  * Version 1.0.1
3
23
  - DLL_EXPORT was renamed SODIUM_DLL_EXPORT in order to avoid
4
24
  collisions with similar macros defined by other libraries.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2013-2014
2
+ * Copyright (c) 2013-2015
3
3
  * Frank Denis <j at pureftpd dot org>
4
4
  *
5
5
  * Permission to use, copy, modify, and/or distribute this software for any
@@ -82,12 +82,13 @@ subdir = .
82
82
  DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83
83
  $(top_srcdir)/configure $(am__configure_deps) \
84
84
  $(srcdir)/libsodium.pc.in \
85
+ $(srcdir)/libsodium-uninstalled.pc.in \
85
86
  $(top_srcdir)/src/libsodium/include/sodium/version.h.in \
86
87
  AUTHORS ChangeLog README THANKS compile build-aux/compile \
87
88
  config.guess build-aux/config.guess config.sub \
88
- build-aux/config.sub depcomp install-sh build-aux/install-sh \
89
- missing build-aux/missing ltmain.sh build-aux/ltmain.sh \
90
- $(top_srcdir)/build-aux/compile \
89
+ build-aux/config.sub depcomp build-aux/depcomp install-sh \
90
+ build-aux/install-sh missing build-aux/missing ltmain.sh \
91
+ build-aux/ltmain.sh $(top_srcdir)/build-aux/compile \
91
92
  $(top_srcdir)/build-aux/config.guess \
92
93
  $(top_srcdir)/build-aux/config.sub \
93
94
  $(top_srcdir)/build-aux/install-sh \
@@ -105,7 +106,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
105
106
  am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
106
107
  configure.lineno config.status.lineno
107
108
  mkinstalldirs = $(install_sh) -d
108
- CONFIG_CLEAN_FILES = libsodium.pc \
109
+ CONFIG_CLEAN_FILES = libsodium.pc libsodium-uninstalled.pc \
109
110
  src/libsodium/include/sodium/version.h
110
111
  CONFIG_CLEAN_VPATH_FILES =
111
112
  AM_V_P = $(am__v_P_@AM_V@)
@@ -313,6 +314,7 @@ SODIUM_LIBRARY_VERSION = @SODIUM_LIBRARY_VERSION@
313
314
  SODIUM_LIBRARY_VERSION_MAJOR = @SODIUM_LIBRARY_VERSION_MAJOR@
314
315
  SODIUM_LIBRARY_VERSION_MINOR = @SODIUM_LIBRARY_VERSION_MINOR@
315
316
  STRIP = @STRIP@
317
+ TEST_LDFLAGS = @TEST_LDFLAGS@
316
318
  VERSION = @VERSION@
317
319
  abs_builddir = @abs_builddir@
318
320
  abs_srcdir = @abs_srcdir@
@@ -424,6 +426,8 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
424
426
  $(am__aclocal_m4_deps):
425
427
  libsodium.pc: $(top_builddir)/config.status $(srcdir)/libsodium.pc.in
426
428
  cd $(top_builddir) && $(SHELL) ./config.status $@
429
+ libsodium-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/libsodium-uninstalled.pc.in
430
+ cd $(top_builddir) && $(SHELL) ./config.status $@
427
431
  src/libsodium/include/sodium/version.h: $(top_builddir)/config.status $(top_srcdir)/src/libsodium/include/sodium/version.h.in
428
432
  cd $(top_builddir) && $(SHELL) ./config.status $@
429
433
 
@@ -1,5 +1,6 @@
1
1
  @alethia7
2
2
  @dnaq
3
+ @harleqin
3
4
  @joshjdevl
4
5
  @jshahbazi
5
6
  @lvh
@@ -11,12 +12,14 @@ Chris Rebert (@cvrebert)
11
12
  Colm MacCárthaigh (@colmmacc)
12
13
  Donald Stufft (@dstufft)
13
14
  Douglas Campos (@qmx)
15
+ Eric Dong (@quantum1423)
14
16
  Eric Voskuil (@evoskuil)
15
17
  Gabriel Handford (@gabriel)
16
18
  Jachym Holecek (@freza)
17
19
  Jan de Muijnck-Hughes (@jfdm)
18
20
  Jason McCampbell (@jasonmccampbell)
19
21
  Jeroen Habraken (@VeXocide)
22
+ Jesper Louis Andersen (@jlouis)
20
23
  Joseph Abrahamson (@tel)
21
24
  Kenneth Ballenegger (@kballenegger)
22
25
  Loic Maury (@loicmaury)
@@ -1,6 +1,6 @@
1
1
  @%:@! /bin/sh
2
2
  @%:@ Guess values for system-dependent variables and create Makefiles.
3
- @%:@ Generated by GNU Autoconf 2.69 for libsodium 1.0.1.
3
+ @%:@ Generated by GNU Autoconf 2.69 for libsodium 1.0.2.
4
4
  @%:@
5
5
  @%:@ Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6
6
  @%:@
@@ -590,8 +590,8 @@ MAKEFLAGS=
590
590
  # Identity of this package.
591
591
  PACKAGE_NAME='libsodium'
592
592
  PACKAGE_TARNAME='libsodium'
593
- PACKAGE_VERSION='1.0.1'
594
- PACKAGE_STRING='libsodium 1.0.1'
593
+ PACKAGE_VERSION='1.0.2'
594
+ PACKAGE_STRING='libsodium 1.0.2'
595
595
  PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596
596
  PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
597
 
@@ -639,6 +639,9 @@ LIB@&t@OBJS
639
639
  HAVE_LD_OUTPUT_DEF_FALSE
640
640
  HAVE_LD_OUTPUT_DEF_TRUE
641
641
  AS
642
+ EMSCRIPTEN_FALSE
643
+ EMSCRIPTEN_TRUE
644
+ TEST_LDFLAGS
642
645
  LIBTOOL_EXTRA_FLAGS
643
646
  HAVE_CPUID_V
644
647
  HAVE_TI_MODE_V
@@ -1353,7 +1356,7 @@ if test "$ac_init_help" = "long"; then
1353
1356
  # Omit some internal or obsolete options to make the list less imposing.
1354
1357
  # This message is too long to be a string in the A/UX 3.1 sh.
1355
1358
  cat <<_ACEOF
1356
- \`configure' configures libsodium 1.0.1 to adapt to many kinds of systems.
1359
+ \`configure' configures libsodium 1.0.2 to adapt to many kinds of systems.
1357
1360
 
1358
1361
  Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1362
 
@@ -1423,7 +1426,7 @@ fi
1423
1426
 
1424
1427
  if test -n "$ac_init_help"; then
1425
1428
  case $ac_init_help in
1426
- short | recursive ) echo "Configuration of libsodium 1.0.1:";;
1429
+ short | recursive ) echo "Configuration of libsodium 1.0.2:";;
1427
1430
  esac
1428
1431
  cat <<\_ACEOF
1429
1432
 
@@ -1444,7 +1447,8 @@ Optional Features:
1444
1447
  --disable-asm Disable assembly implementations
1445
1448
  --disable-pie Do not produce position independent executables
1446
1449
  --enable-blocking-random
1447
- Use /dev/random instead of /dev/urandom
1450
+ Enable this switch only if /dev/urandom is totally
1451
+ broken on the target platform
1448
1452
  --enable-minimal Only compile the minimum set of functions required
1449
1453
  for the high-level API
1450
1454
  --enable-debug For maintainers only - please do not use
@@ -1550,7 +1554,7 @@ fi
1550
1554
  test -n "$ac_init_help" && exit $ac_status
1551
1555
  if $ac_init_version; then
1552
1556
  cat <<\_ACEOF
1553
- libsodium configure 1.0.1
1557
+ libsodium configure 1.0.2
1554
1558
  generated by GNU Autoconf 2.69
1555
1559
 
1556
1560
  Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1919,7 +1923,7 @@ cat >config.log <<_ACEOF
1919
1923
  This file contains any messages produced by compilers while
1920
1924
  running configure, to aid debugging if configure makes a mistake.
1921
1925
 
1922
- It was created by libsodium $as_me 1.0.1, which was
1926
+ It was created by libsodium $as_me 1.0.2, which was
1923
1927
  generated by GNU Autoconf 2.69. Invocation command line was
1924
1928
 
1925
1929
  $ $0 $@
@@ -2855,7 +2859,7 @@ fi
2855
2859
 
2856
2860
  # Define the identity of the package.
2857
2861
  PACKAGE='libsodium'
2858
- VERSION='1.0.1'
2862
+ VERSION='1.0.2'
2859
2863
 
2860
2864
 
2861
2865
  cat >>confdefs.h <<_ACEOF
@@ -3150,9 +3154,9 @@ ISODATE=`date +%Y-%m-%d`
3150
3154
 
3151
3155
 
3152
3156
  SODIUM_LIBRARY_VERSION_MAJOR=7
3153
- SODIUM_LIBRARY_VERSION_MINOR=3
3157
+ SODIUM_LIBRARY_VERSION_MINOR=4
3154
3158
  DLL_VERSION=6
3155
- SODIUM_LIBRARY_VERSION=13:3:0
3159
+ SODIUM_LIBRARY_VERSION=14:0:1
3156
3160
  # | | |
3157
3161
  # +------+ | +---+
3158
3162
  # | | |
@@ -3172,6 +3176,13 @@ SODIUM_LIBRARY_VERSION=13:3:0
3172
3176
  LX_CFLAGS=${CFLAGS-NONE}
3173
3177
 
3174
3178
 
3179
+ if test pwd | fgrep ' ' > /dev/null 2>&1; then :
3180
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" >&5
3181
+ $as_echo "$as_me: WARNING: The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" >&2;}
3182
+
3183
+ fi
3184
+
3185
+
3175
3186
  @%:@ Check whether --enable-ssp was given.
3176
3187
  if test "${enable_ssp+set}" = set; then :
3177
3188
  enableval=$enable_ssp;
@@ -5383,14 +5394,14 @@ fi
5383
5394
 
5384
5395
  fi
5385
5396
 
5386
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
5387
- $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
5388
- if ${ax_cv_check_cflags___fwrapv+:} false; then :
5397
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5398
+ $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5399
+ if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
5389
5400
  $as_echo_n "(cached) " >&6
5390
5401
  else
5391
5402
 
5392
5403
  ax_check_save_flags=$CFLAGS
5393
- CFLAGS="$CFLAGS -fwrapv"
5404
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
5394
5405
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395
5406
  /* end confdefs.h. */
5396
5407
  #include <stdio.h>
@@ -5403,29 +5414,29 @@ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5403
5414
  }
5404
5415
  _ACEOF
5405
5416
  if ac_fn_c_try_compile "$LINENO"; then :
5406
- ax_cv_check_cflags___fwrapv=yes
5417
+ ax_cv_check_cflags___fno_strict_aliasing=yes
5407
5418
  else
5408
- ax_cv_check_cflags___fwrapv=no
5419
+ ax_cv_check_cflags___fno_strict_aliasing=no
5409
5420
  fi
5410
5421
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411
5422
  CFLAGS=$ax_check_save_flags
5412
5423
  fi
5413
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5414
- $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5415
- if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
5416
- CFLAGS="$CFLAGS -fwrapv"
5424
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5425
+ $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5426
+ if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5427
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
5417
5428
  else
5418
5429
  :
5419
5430
  fi
5420
5431
 
5421
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5422
- $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5423
- if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
5432
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
5433
+ $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
5434
+ if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
5424
5435
  $as_echo_n "(cached) " >&6
5425
5436
  else
5426
5437
 
5427
5438
  ax_check_save_flags=$CFLAGS
5428
- CFLAGS="$CFLAGS -fno-strict-aliasing"
5439
+ CFLAGS="$CFLAGS -fno-strict-overflow"
5429
5440
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430
5441
  /* end confdefs.h. */
5431
5442
  #include <stdio.h>
@@ -5438,29 +5449,27 @@ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5438
5449
  }
5439
5450
  _ACEOF
5440
5451
  if ac_fn_c_try_compile "$LINENO"; then :
5441
- ax_cv_check_cflags___fno_strict_aliasing=yes
5452
+ ax_cv_check_cflags___fno_strict_overflow=yes
5442
5453
  else
5443
- ax_cv_check_cflags___fno_strict_aliasing=no
5454
+ ax_cv_check_cflags___fno_strict_overflow=no
5444
5455
  fi
5445
5456
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446
5457
  CFLAGS=$ax_check_save_flags
5447
5458
  fi
5448
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5449
- $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5450
- if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5451
- CFLAGS="$CFLAGS -fno-strict-aliasing"
5459
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5460
+ $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5461
+ if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5462
+ CFLAGS="$CFLAGS -fno-strict-overflow"
5452
5463
  else
5453
- :
5454
- fi
5455
-
5456
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
5457
- $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
5458
- if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
5464
+
5465
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
5466
+ $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
5467
+ if ${ax_cv_check_cflags___fwrapv+:} false; then :
5459
5468
  $as_echo_n "(cached) " >&6
5460
5469
  else
5461
5470
 
5462
5471
  ax_check_save_flags=$CFLAGS
5463
- CFLAGS="$CFLAGS -fno-strict-overflow"
5472
+ CFLAGS="$CFLAGS -fwrapv"
5464
5473
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465
5474
  /* end confdefs.h. */
5466
5475
  #include <stdio.h>
@@ -5473,22 +5482,25 @@ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5473
5482
  }
5474
5483
  _ACEOF
5475
5484
  if ac_fn_c_try_compile "$LINENO"; then :
5476
- ax_cv_check_cflags___fno_strict_overflow=yes
5485
+ ax_cv_check_cflags___fwrapv=yes
5477
5486
  else
5478
- ax_cv_check_cflags___fno_strict_overflow=no
5487
+ ax_cv_check_cflags___fwrapv=no
5479
5488
  fi
5480
5489
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481
5490
  CFLAGS=$ax_check_save_flags
5482
5491
  fi
5483
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5484
- $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5485
- if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5486
- CFLAGS="$CFLAGS -fno-strict-overflow"
5492
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5493
+ $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5494
+ if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
5495
+ CFLAGS="$CFLAGS -fwrapv"
5487
5496
  else
5488
5497
  :
5489
5498
  fi
5490
5499
 
5491
5500
 
5501
+ fi
5502
+
5503
+
5492
5504
  LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
5493
5505
  LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
5494
5506
  @%:@ Check whether --enable-soname-versions was given.
@@ -14577,9 +14589,7 @@ _ACEOF
14577
14589
  fi
14578
14590
  done
14579
14591
 
14580
-
14581
- fi
14582
- for ac_func in mlock mprotect explicit_bzero posix_memalign
14592
+ for ac_func in mmap mlock madvise mprotect explicit_bzero
14583
14593
  do :
14584
14594
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14585
14595
  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -14592,6 +14602,36 @@ fi
14592
14602
  done
14593
14603
 
14594
14604
 
14605
+ fi
14606
+ for ac_func in posix_memalign
14607
+ do :
14608
+ ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
14609
+ if test "x$ac_cv_func_posix_memalign" = xyes; then :
14610
+ cat >>confdefs.h <<_ACEOF
14611
+ @%:@define HAVE_POSIX_MEMALIGN 1
14612
+ _ACEOF
14613
+
14614
+ fi
14615
+ done
14616
+
14617
+
14618
+
14619
+
14620
+ TEST_LDFLAGS=''
14621
+ if test "x$EMSCRIPTEN" != "x"; then :
14622
+
14623
+ EXEEXT=.js
14624
+ TEST_LDFLAGS='--pre-js pre.js.inc'
14625
+
14626
+ fi
14627
+
14628
+ if test "x$EMSCRIPTEN" != "x"; then
14629
+ EMSCRIPTEN_TRUE=
14630
+ EMSCRIPTEN_FALSE='#'
14631
+ else
14632
+ EMSCRIPTEN_TRUE='#'
14633
+ EMSCRIPTEN_FALSE=
14634
+ fi
14595
14635
 
14596
14636
 
14597
14637
 
@@ -14941,13 +14981,7 @@ fi
14941
14981
 
14942
14982
 
14943
14983
 
14944
- if test "x$PKG_CONFIG" != "x"; then :
14945
-
14946
- ac_config_files="$ac_config_files libsodium.pc"
14947
-
14948
-
14949
- fi
14950
- ac_config_files="$ac_config_files Makefile dist-build/Makefile msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
14984
+ ac_config_files="$ac_config_files Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
14951
14985
 
14952
14986
  cat >confcache <<\_ACEOF
14953
14987
  # This file is a shell script that caches the results of configure
@@ -15138,6 +15172,10 @@ if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
15138
15172
  as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
15139
15173
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140
15174
  fi
15175
+ if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
15176
+ as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
15177
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
15178
+ fi
15141
15179
  if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
15142
15180
  as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
15143
15181
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -15539,7 +15577,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15539
15577
  # report actual input values of CONFIG_FILES etc. instead of their
15540
15578
  # values after options handling.
15541
15579
  ac_log="
15542
- This file was extended by libsodium $as_me 1.0.1, which was
15580
+ This file was extended by libsodium $as_me 1.0.2, which was
15543
15581
  generated by GNU Autoconf 2.69. Invocation command line was
15544
15582
 
15545
15583
  CONFIG_FILES = $CONFIG_FILES
@@ -15597,7 +15635,7 @@ _ACEOF
15597
15635
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15598
15636
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15599
15637
  ac_cs_version="\\
15600
- libsodium config.status 1.0.1
15638
+ libsodium config.status 1.0.2
15601
15639
  configured by $0, generated by GNU Autoconf 2.69,
15602
15640
  with options \\"\$ac_cs_config\\"
15603
15641
 
@@ -15996,9 +16034,10 @@ do
15996
16034
  case $ac_config_target in
15997
16035
  "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15998
16036
  "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15999
- "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
16000
16037
  "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16001
16038
  "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
16039
+ "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
16040
+ "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
16002
16041
  "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
16003
16042
  "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16004
16043
  "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;