node-aix-ppc64 18.16.0 → 18.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +601 -0
  2. package/LICENSE +538 -525
  3. package/README.md +44 -33
  4. package/bin/node +0 -0
  5. package/include/node/config.gypi +7 -7
  6. package/include/node/js_native_api.h +6 -6
  7. package/include/node/js_native_api_types.h +2 -1
  8. package/include/node/node.exp +12706 -12368
  9. package/include/node/node.h +27 -5
  10. package/include/node/node_api.h +28 -60
  11. package/include/node/node_version.h +6 -2
  12. package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +1 -1
  13. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/cmp.h +4 -3
  14. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/opensslv.h +5 -5
  15. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +1 -1
  16. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/cmp.h +4 -3
  17. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/opensslv.h +5 -5
  18. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +11 -11
  19. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/cmp.h +4 -3
  20. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/opensslv.h +5 -5
  21. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +1 -1
  22. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/cmp.h +4 -3
  23. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/opensslv.h +5 -5
  24. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  25. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/cmp.h +4 -3
  26. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/opensslv.h +5 -5
  27. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +9 -9
  28. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/cmp.h +4 -3
  29. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/opensslv.h +5 -5
  30. package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +24 -24
  31. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/cmp.h +4 -3
  32. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/opensslv.h +5 -5
  33. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +24 -24
  34. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/cmp.h +4 -3
  35. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/opensslv.h +5 -5
  36. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +24 -24
  37. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/cmp.h +4 -3
  38. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/opensslv.h +5 -5
  39. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +1 -1
  40. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/cmp.h +4 -3
  41. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/opensslv.h +5 -5
  42. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +2 -2
  43. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/cmp.h +4 -3
  44. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/opensslv.h +5 -5
  45. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +2 -2
  46. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/cmp.h +4 -3
  47. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/opensslv.h +5 -5
  48. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +2 -2
  49. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/cmp.h +4 -3
  50. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/opensslv.h +5 -5
  51. package/include/node/openssl/archs/aix64-gcc-as/asm/crypto/buildinf.h +1 -1
  52. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/cmp.h +4 -3
  53. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/opensslv.h +5 -5
  54. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/crypto/buildinf.h +1 -1
  55. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/cmp.h +4 -3
  56. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/opensslv.h +5 -5
  57. package/include/node/openssl/archs/aix64-gcc-as/no-asm/crypto/buildinf.h +1 -1
  58. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/cmp.h +4 -3
  59. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/opensslv.h +5 -5
  60. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +1 -1
  61. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/cmp.h +4 -3
  62. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/opensslv.h +5 -5
  63. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +1 -1
  64. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/cmp.h +4 -3
  65. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/opensslv.h +5 -5
  66. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +9 -10
  67. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/cmp.h +4 -3
  68. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/opensslv.h +5 -5
  69. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +1 -1
  70. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/cmp.h +4 -3
  71. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/opensslv.h +5 -5
  72. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +1 -1
  73. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/cmp.h +4 -3
  74. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/opensslv.h +5 -5
  75. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +9 -9
  76. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/cmp.h +4 -3
  77. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/opensslv.h +5 -5
  78. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +1 -1
  79. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/cmp.h +4 -3
  80. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/opensslv.h +5 -5
  81. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +1 -1
  82. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/cmp.h +4 -3
  83. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/opensslv.h +5 -5
  84. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +9 -9
  85. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/cmp.h +4 -3
  86. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/opensslv.h +5 -5
  87. package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +1 -1
  88. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/cmp.h +4 -3
  89. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/opensslv.h +5 -5
  90. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +1 -1
  91. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/cmp.h +4 -3
  92. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/opensslv.h +5 -5
  93. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +1 -1
  94. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/cmp.h +4 -3
  95. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/opensslv.h +5 -5
  96. package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +1 -1
  97. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/cmp.h +4 -3
  98. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/opensslv.h +5 -5
  99. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +1 -1
  100. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/cmp.h +4 -3
  101. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/opensslv.h +5 -5
  102. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +1 -1
  103. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/cmp.h +4 -3
  104. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/opensslv.h +5 -5
  105. package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +1 -1
  106. package/include/node/openssl/archs/linux-elf/asm/include/openssl/cmp.h +4 -3
  107. package/include/node/openssl/archs/linux-elf/asm/include/openssl/opensslv.h +5 -5
  108. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +1 -1
  109. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/cmp.h +4 -3
  110. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/opensslv.h +5 -5
  111. package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +1 -1
  112. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/cmp.h +4 -3
  113. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/opensslv.h +5 -5
  114. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +1 -1
  115. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/cmp.h +4 -3
  116. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/opensslv.h +5 -5
  117. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +1 -1
  118. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/cmp.h +4 -3
  119. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/opensslv.h +5 -5
  120. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +1 -1
  121. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/cmp.h +4 -3
  122. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/opensslv.h +5 -5
  123. package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +1 -1
  124. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/cmp.h +4 -3
  125. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/opensslv.h +5 -5
  126. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  127. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/cmp.h +4 -3
  128. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/opensslv.h +5 -5
  129. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +1 -1
  130. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/cmp.h +4 -3
  131. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/opensslv.h +5 -5
  132. package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +1 -1
  133. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/cmp.h +4 -3
  134. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/opensslv.h +5 -5
  135. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +1 -1
  136. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/cmp.h +4 -3
  137. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/opensslv.h +5 -5
  138. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +1 -1
  139. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/cmp.h +4 -3
  140. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/opensslv.h +5 -5
  141. package/include/node/openssl/archs/linux64-loongarch64/no-asm/crypto/buildinf.h +29 -0
  142. package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/cmp.h +597 -0
  143. package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/opensslv.h +114 -0
  144. package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +9 -8
  145. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/cmp.h +4 -3
  146. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/opensslv.h +5 -5
  147. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +9 -8
  148. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/cmp.h +4 -3
  149. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/opensslv.h +5 -5
  150. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +1 -1
  151. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/cmp.h +4 -3
  152. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/opensslv.h +5 -5
  153. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/buildinf.h +1 -1
  154. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/cmp.h +4 -3
  155. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/opensslv.h +5 -5
  156. package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +1 -1
  157. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/cmp.h +4 -3
  158. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/opensslv.h +5 -5
  159. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +1 -1
  160. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/cmp.h +4 -3
  161. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/opensslv.h +5 -5
  162. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +1 -1
  163. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/cmp.h +4 -3
  164. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/opensslv.h +5 -5
  165. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +1 -1
  166. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/cmp.h +4 -3
  167. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/opensslv.h +5 -5
  168. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +1 -1
  169. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/cmp.h +4 -3
  170. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/opensslv.h +5 -5
  171. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +1 -1
  172. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/cmp.h +4 -3
  173. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/opensslv.h +5 -5
  174. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +1 -1
  175. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/cmp.h +4 -3
  176. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/opensslv.h +5 -5
  177. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +1 -1
  178. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/cmp.h +4 -3
  179. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/opensslv.h +5 -5
  180. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +1 -1
  181. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/cmp.h +4 -3
  182. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/opensslv.h +5 -5
  183. package/include/node/openssl/cmperr.h +3 -1
  184. package/include/node/openssl/dsaerr.h +2 -1
  185. package/include/node/openssl/ecerr.h +2 -1
  186. package/include/node/zconf.h +5 -1
  187. package/include/node/zlib.h +4 -4
  188. package/package.json +1 -1
  189. package/share/man/man1/node.1 +2 -1
@@ -75,6 +75,9 @@
75
75
  #include "v8-platform.h" // NOLINT(build/include_order)
76
76
  #include "node_version.h" // NODE_MODULE_VERSION
77
77
 
78
+ #define NAPI_EXPERIMENTAL
79
+ #include "node_api.h"
80
+
78
81
  #include <functional>
79
82
  #include <memory>
80
83
  #include <ostream>
@@ -121,8 +124,6 @@
121
124
  // Forward-declare libuv loop
122
125
  struct uv_loop_s;
123
126
 
124
- struct napi_module;
125
-
126
127
  // Forward-declare these functions now to stop MSVS from becoming
127
128
  // terminally confused when it's done in node_internals.h
128
129
  namespace node {
@@ -361,10 +362,25 @@ inline std::unique_ptr<InitializationResult> InitializeOncePerProcess(
361
362
  }
362
363
 
363
364
  enum OptionEnvvarSettings {
364
- kAllowedInEnvironment,
365
- kDisallowedInEnvironment
365
+ // Allow the options to be set via the environment variable, like
366
+ // `NODE_OPTIONS`.
367
+ kAllowedInEnvvar = 0,
368
+ // Disallow the options to be set via the environment variable, like
369
+ // `NODE_OPTIONS`.
370
+ kDisallowedInEnvvar = 1,
371
+ // Deprecated, use kAllowedInEnvvar instead.
372
+ kAllowedInEnvironment = kAllowedInEnvvar,
373
+ // Deprecated, use kDisallowedInEnvvar instead.
374
+ kDisallowedInEnvironment = kDisallowedInEnvvar,
366
375
  };
367
376
 
377
+ // Process the arguments and set up the per-process options.
378
+ // If the `settings` is set as OptionEnvvarSettings::kAllowedInEnvvar, the
379
+ // options that are allowed in the environment variable are processed. Options
380
+ // that are disallowed to be set via environment variable are processed as
381
+ // errors.
382
+ // Otherwise all the options that are disallowed (and those are allowed) to be
383
+ // set via environment variable are processed.
368
384
  NODE_EXTERN int ProcessGlobalArgs(std::vector<std::string>* args,
369
385
  std::vector<std::string>* exec_args,
370
386
  std::vector<std::string>* errors,
@@ -629,7 +645,8 @@ NODE_EXTERN Environment* GetCurrentEnvironment(v8::Local<v8::Context> context);
629
645
  NODE_EXTERN IsolateData* GetEnvironmentIsolateData(Environment* env);
630
646
  NODE_EXTERN ArrayBufferAllocator* GetArrayBufferAllocator(IsolateData* data);
631
647
 
632
- NODE_EXTERN void OnFatalError(const char* location, const char* message);
648
+ [[noreturn]] NODE_EXTERN void OnFatalError(const char* location,
649
+ const char* message);
633
650
  NODE_EXTERN void PromiseRejectCallback(v8::PromiseRejectMessage message);
634
651
  NODE_EXTERN bool AllowWasmCodeGenerationCallback(v8::Local<v8::Context> context,
635
652
  v8::Local<v8::String>);
@@ -1081,6 +1098,11 @@ NODE_EXTERN void AddLinkedBinding(Environment* env,
1081
1098
  const char* name,
1082
1099
  addon_context_register_func fn,
1083
1100
  void* priv);
1101
+ NODE_EXTERN void AddLinkedBinding(
1102
+ Environment* env,
1103
+ const char* name,
1104
+ napi_addon_register_func fn,
1105
+ int32_t module_api_version = NODE_API_DEFAULT_MODULE_API_VERSION);
1084
1106
 
1085
1107
  /* Registers a callback with the passed-in Environment instance. The callback
1086
1108
  * is called after the event loop exits, but before the VM is disposed.
@@ -30,7 +30,9 @@ struct uv_loop_s; // Forward declaration.
30
30
 
31
31
  typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
32
32
  napi_value exports);
33
+ typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)();
33
34
 
35
+ // Used by deprecated registration method napi_module_register.
34
36
  typedef struct napi_module {
35
37
  int nm_version;
36
38
  unsigned int nm_flags;
@@ -43,85 +45,51 @@ typedef struct napi_module {
43
45
 
44
46
  #define NAPI_MODULE_VERSION 1
45
47
 
46
- #if defined(_MSC_VER)
47
- #if defined(__cplusplus)
48
- #define NAPI_C_CTOR(fn) \
49
- static void NAPI_CDECL fn(void); \
50
- namespace { \
51
- struct fn##_ { \
52
- fn##_() { fn(); } \
53
- } fn##_v_; \
54
- } \
55
- static void NAPI_CDECL fn(void)
56
- #else // !defined(__cplusplus)
57
- #pragma section(".CRT$XCU", read)
58
- // The NAPI_C_CTOR macro defines a function fn that is called during CRT
59
- // initialization.
60
- // C does not support dynamic initialization of static variables and this code
61
- // simulates C++ behavior. Exporting the function pointer prevents it from being
62
- // optimized. See for details:
63
- // https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-initialization?view=msvc-170
64
- #define NAPI_C_CTOR(fn) \
65
- static void NAPI_CDECL fn(void); \
66
- __declspec(dllexport, allocate(".CRT$XCU")) void(NAPI_CDECL * fn##_)(void) = \
67
- fn; \
68
- static void NAPI_CDECL fn(void)
69
- #endif // defined(__cplusplus)
70
- #else
71
- #define NAPI_C_CTOR(fn) \
72
- static void fn(void) __attribute__((constructor)); \
73
- static void fn(void)
74
- #endif
75
-
76
- #define NAPI_MODULE_X(modname, regfunc, priv, flags) \
77
- EXTERN_C_START \
78
- static napi_module _module = { \
79
- NAPI_MODULE_VERSION, \
80
- flags, \
81
- __FILE__, \
82
- regfunc, \
83
- #modname, \
84
- priv, \
85
- {0}, \
86
- }; \
87
- NAPI_C_CTOR(_register_##modname) { napi_module_register(&_module); } \
88
- EXTERN_C_END
89
-
90
48
  #define NAPI_MODULE_INITIALIZER_X(base, version) \
91
49
  NAPI_MODULE_INITIALIZER_X_HELPER(base, version)
92
50
  #define NAPI_MODULE_INITIALIZER_X_HELPER(base, version) base##version
93
51
 
94
52
  #ifdef __wasm32__
95
- #define NAPI_WASM_INITIALIZER \
96
- NAPI_MODULE_INITIALIZER_X(napi_register_wasm_v, NAPI_MODULE_VERSION)
97
- #define NAPI_MODULE(modname, regfunc) \
98
- EXTERN_C_START \
99
- NAPI_MODULE_EXPORT napi_value NAPI_WASM_INITIALIZER(napi_env env, \
100
- napi_value exports) { \
101
- return regfunc(env, exports); \
102
- } \
103
- EXTERN_C_END
53
+ #define NAPI_MODULE_INITIALIZER_BASE napi_register_wasm_v
104
54
  #else
105
- #define NAPI_MODULE(modname, regfunc) \
106
- NAPI_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
55
+ #define NAPI_MODULE_INITIALIZER_BASE napi_register_module_v
107
56
  #endif
108
57
 
109
- #define NAPI_MODULE_INITIALIZER_BASE napi_register_module_v
58
+ #define NODE_API_MODULE_GET_API_VERSION_BASE node_api_module_get_api_version_v
110
59
 
111
60
  #define NAPI_MODULE_INITIALIZER \
112
61
  NAPI_MODULE_INITIALIZER_X(NAPI_MODULE_INITIALIZER_BASE, NAPI_MODULE_VERSION)
113
62
 
63
+ #define NODE_API_MODULE_GET_API_VERSION \
64
+ NAPI_MODULE_INITIALIZER_X(NODE_API_MODULE_GET_API_VERSION_BASE, \
65
+ NAPI_MODULE_VERSION)
66
+
114
67
  #define NAPI_MODULE_INIT() \
115
68
  EXTERN_C_START \
69
+ NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION() { \
70
+ return NAPI_VERSION; \
71
+ } \
116
72
  NAPI_MODULE_EXPORT napi_value NAPI_MODULE_INITIALIZER(napi_env env, \
117
73
  napi_value exports); \
118
74
  EXTERN_C_END \
119
- NAPI_MODULE(NODE_GYP_MODULE_NAME, NAPI_MODULE_INITIALIZER) \
120
75
  napi_value NAPI_MODULE_INITIALIZER(napi_env env, napi_value exports)
121
76
 
77
+ #define NAPI_MODULE(modname, regfunc) \
78
+ NAPI_MODULE_INIT() { return regfunc(env, exports); }
79
+
80
+ // Deprecated. Use NAPI_MODULE.
81
+ #define NAPI_MODULE_X(modname, regfunc, priv, flags) \
82
+ NAPI_MODULE(modname, regfunc)
83
+
122
84
  EXTERN_C_START
123
85
 
124
- NAPI_EXTERN void NAPI_CDECL napi_module_register(napi_module* mod);
86
+ // Deprecated. Replaced by symbol-based registration defined by NAPI_MODULE
87
+ // and NAPI_MODULE_INIT macros.
88
+ #if defined(__cplusplus) && __cplusplus >= 201402L
89
+ [[deprecated]]
90
+ #endif
91
+ NAPI_EXTERN void NAPI_CDECL
92
+ napi_module_register(napi_module* mod);
125
93
 
126
94
  NAPI_EXTERN NAPI_NO_RETURN void NAPI_CDECL
127
95
  napi_fatal_error(const char* location,
@@ -280,12 +248,12 @@ napi_remove_async_cleanup_hook(napi_async_cleanup_hook_handle remove_handle);
280
248
 
281
249
  #endif // NAPI_VERSION >= 8
282
250
 
283
- #ifdef NAPI_EXPERIMENTAL
251
+ #if NAPI_VERSION >= 9
284
252
 
285
253
  NAPI_EXTERN napi_status NAPI_CDECL
286
254
  node_api_get_module_file_name(napi_env env, const char** result);
287
255
 
288
- #endif // NAPI_EXPERIMENTAL
256
+ #endif // NAPI_VERSION >= 9
289
257
 
290
258
  EXTERN_C_END
291
259
 
@@ -23,7 +23,7 @@
23
23
  #define SRC_NODE_VERSION_H_
24
24
 
25
25
  #define NODE_MAJOR_VERSION 18
26
- #define NODE_MINOR_VERSION 16
26
+ #define NODE_MINOR_VERSION 17
27
27
  #define NODE_PATCH_VERSION 0
28
28
 
29
29
  #define NODE_VERSION_IS_LTS 1
@@ -93,6 +93,10 @@
93
93
 
94
94
  // The NAPI_VERSION provided by this version of the runtime. This is the version
95
95
  // which the Node binary being built supports.
96
- #define NAPI_VERSION 8
96
+ #define NAPI_VERSION 9
97
+
98
+ // Node API modules use NAPI_VERSION 8 by default if it is not explicitly
99
+ // specified. It must be always 8.
100
+ #define NODE_API_DEFAULT_MODULE_API_VERSION 8
97
101
 
98
102
  #endif // SRC_NODE_VERSION_H_
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86"
14
- #define DATE "built on: Mon Feb 13 14:21:06 2023 UTC"
14
+ #define DATE "built on: Fri Jun 9 11:58:46 2023 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -2,7 +2,7 @@
2
2
  * WARNING: do not edit!
3
3
  * Generated by Makefile from include/openssl/cmp.h.in
4
4
  *
5
- * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
5
+ * Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.
6
6
  * Copyright Nokia 2007-2019
7
7
  * Copyright Siemens AG 2015-2019
8
8
  *
@@ -442,8 +442,8 @@ int OSSL_CMP_CTX_build_cert_chain(OSSL_CMP_CTX *ctx, X509_STORE *own_trusted,
442
442
  int OSSL_CMP_CTX_set1_pkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey);
443
443
  int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx,
444
444
  const unsigned char *ref, int len);
445
- int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, const unsigned char *sec,
446
- const int len);
445
+ int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx,
446
+ const unsigned char *sec, int len);
447
447
  /* CMP message header and extra certificates: */
448
448
  int OSSL_CMP_CTX_set1_recipient(OSSL_CMP_CTX *ctx, const X509_NAME *name);
449
449
  int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav);
@@ -503,6 +503,7 @@ ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const OSSL_CMP_PKIHEADER *hdr);
503
503
  OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
504
504
  int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
505
505
  int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
+ int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
507
  OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid);
507
508
  OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
508
509
  const char *propq);
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 0
32
- # define OPENSSL_VERSION_PATCH 8
32
+ # define OPENSSL_VERSION_PATCH 9
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,21 +74,21 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.0.8"
78
- # define OPENSSL_FULL_VERSION_STR "3.0.8+quic"
77
+ # define OPENSSL_VERSION_STR "3.0.9"
78
+ # define OPENSSL_FULL_VERSION_STR "3.0.9+quic"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "7 Feb 2023"
85
+ # define OPENSSL_RELEASE_DATE "30 May 2023"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.8+quic 7 Feb 2023"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.9+quic 30 May 2023"
92
92
 
93
93
  /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
94
94
  # ifdef OPENSSL_VERSION_PRE_RELEASE
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86"
14
- #define DATE "built on: Mon Feb 13 14:21:18 2023 UTC"
14
+ #define DATE "built on: Fri Jun 9 11:59:07 2023 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -2,7 +2,7 @@
2
2
  * WARNING: do not edit!
3
3
  * Generated by Makefile from include/openssl/cmp.h.in
4
4
  *
5
- * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
5
+ * Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.
6
6
  * Copyright Nokia 2007-2019
7
7
  * Copyright Siemens AG 2015-2019
8
8
  *
@@ -442,8 +442,8 @@ int OSSL_CMP_CTX_build_cert_chain(OSSL_CMP_CTX *ctx, X509_STORE *own_trusted,
442
442
  int OSSL_CMP_CTX_set1_pkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey);
443
443
  int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx,
444
444
  const unsigned char *ref, int len);
445
- int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, const unsigned char *sec,
446
- const int len);
445
+ int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx,
446
+ const unsigned char *sec, int len);
447
447
  /* CMP message header and extra certificates: */
448
448
  int OSSL_CMP_CTX_set1_recipient(OSSL_CMP_CTX *ctx, const X509_NAME *name);
449
449
  int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav);
@@ -503,6 +503,7 @@ ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const OSSL_CMP_PKIHEADER *hdr);
503
503
  OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
504
504
  int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
505
505
  int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
+ int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
507
  OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid);
507
508
  OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
508
509
  const char *propq);
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 0
32
- # define OPENSSL_VERSION_PATCH 8
32
+ # define OPENSSL_VERSION_PATCH 9
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,21 +74,21 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.0.8"
78
- # define OPENSSL_FULL_VERSION_STR "3.0.8+quic"
77
+ # define OPENSSL_VERSION_STR "3.0.9"
78
+ # define OPENSSL_FULL_VERSION_STR "3.0.9+quic"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "7 Feb 2023"
85
+ # define OPENSSL_RELEASE_DATE "30 May 2023"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.8+quic 7 Feb 2023"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.9+quic 30 May 2023"
92
92
 
93
93
  /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
94
94
  # ifdef OPENSSL_VERSION_PRE_RELEASE
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86"
14
- #define DATE "built on: Mon Feb 13 14:21:30 2023 UTC"
14
+ #define DATE "built on: Fri Jun 9 11:59:26 2023 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -19,14 +19,14 @@
19
19
  * literal
20
20
  */
21
21
  static const char compiler_flags[] = {
22
- 'c','o','m','p','i','l','e','r',':',' ','g','c','c',' ','-','f',
23
- 'P','I','C',' ','-','p','t','h','r','e','a','d',' ','-','W','a',
24
- 'l','l',' ','-','O','3',' ','-','f','o','m','i','t','-','f','r',
25
- 'a','m','e','-','p','o','i','n','t','e','r',' ','-','D','L','_',
26
- 'E','N','D','I','A','N',' ','-','D','O','P','E','N','S','S','L',
27
- '_','P','I','C',' ','-','D','_','T','H','R','E','A','D','_','S',
28
- 'A','F','E',' ','-','D','_','R','E','E','N','T','R','A','N','T',
29
- ' ','-','D','O','P','E','N','S','S','L','_','B','U','I','L','D',
30
- 'I','N','G','_','O','P','E','N','S','S','L',' ','-','D','N','D',
31
- 'E','B','U','G','\0'
22
+ 'c','o','m','p','i','l','e','r',':',' ','c','c',' ','-','f','P',
23
+ 'I','C',' ','-','p','t','h','r','e','a','d',' ','-','W','a','l',
24
+ 'l',' ','-','O','3',' ','-','f','o','m','i','t','-','f','r','a',
25
+ 'm','e','-','p','o','i','n','t','e','r',' ','-','D','L','_','E',
26
+ 'N','D','I','A','N',' ','-','D','O','P','E','N','S','S','L','_',
27
+ 'P','I','C',' ','-','D','_','T','H','R','E','A','D','_','S','A',
28
+ 'F','E',' ','-','D','_','R','E','E','N','T','R','A','N','T',' ',
29
+ '-','D','O','P','E','N','S','S','L','_','B','U','I','L','D','I',
30
+ 'N','G','_','O','P','E','N','S','S','L',' ','-','D','N','D','E',
31
+ 'B','U','G','\0'
32
32
  };
@@ -2,7 +2,7 @@
2
2
  * WARNING: do not edit!
3
3
  * Generated by Makefile from include/openssl/cmp.h.in
4
4
  *
5
- * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
5
+ * Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.
6
6
  * Copyright Nokia 2007-2019
7
7
  * Copyright Siemens AG 2015-2019
8
8
  *
@@ -442,8 +442,8 @@ int OSSL_CMP_CTX_build_cert_chain(OSSL_CMP_CTX *ctx, X509_STORE *own_trusted,
442
442
  int OSSL_CMP_CTX_set1_pkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey);
443
443
  int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx,
444
444
  const unsigned char *ref, int len);
445
- int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, const unsigned char *sec,
446
- const int len);
445
+ int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx,
446
+ const unsigned char *sec, int len);
447
447
  /* CMP message header and extra certificates: */
448
448
  int OSSL_CMP_CTX_set1_recipient(OSSL_CMP_CTX *ctx, const X509_NAME *name);
449
449
  int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav);
@@ -503,6 +503,7 @@ ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const OSSL_CMP_PKIHEADER *hdr);
503
503
  OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
504
504
  int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
505
505
  int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
+ int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
507
  OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid);
507
508
  OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
508
509
  const char *propq);
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 0
32
- # define OPENSSL_VERSION_PATCH 8
32
+ # define OPENSSL_VERSION_PATCH 9
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,21 +74,21 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.0.8"
78
- # define OPENSSL_FULL_VERSION_STR "3.0.8+quic"
77
+ # define OPENSSL_VERSION_STR "3.0.9"
78
+ # define OPENSSL_FULL_VERSION_STR "3.0.9+quic"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "7 Feb 2023"
85
+ # define OPENSSL_RELEASE_DATE "30 May 2023"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.8+quic 7 Feb 2023"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.9+quic 30 May 2023"
92
92
 
93
93
  /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
94
94
  # ifdef OPENSSL_VERSION_PRE_RELEASE
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86_64"
14
- #define DATE "built on: Mon Feb 13 14:21:40 2023 UTC"
14
+ #define DATE "built on: Fri Jun 9 11:59:45 2023 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -2,7 +2,7 @@
2
2
  * WARNING: do not edit!
3
3
  * Generated by Makefile from include/openssl/cmp.h.in
4
4
  *
5
- * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
5
+ * Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.
6
6
  * Copyright Nokia 2007-2019
7
7
  * Copyright Siemens AG 2015-2019
8
8
  *
@@ -442,8 +442,8 @@ int OSSL_CMP_CTX_build_cert_chain(OSSL_CMP_CTX *ctx, X509_STORE *own_trusted,
442
442
  int OSSL_CMP_CTX_set1_pkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey);
443
443
  int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx,
444
444
  const unsigned char *ref, int len);
445
- int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, const unsigned char *sec,
446
- const int len);
445
+ int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx,
446
+ const unsigned char *sec, int len);
447
447
  /* CMP message header and extra certificates: */
448
448
  int OSSL_CMP_CTX_set1_recipient(OSSL_CMP_CTX *ctx, const X509_NAME *name);
449
449
  int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav);
@@ -503,6 +503,7 @@ ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const OSSL_CMP_PKIHEADER *hdr);
503
503
  OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
504
504
  int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
505
505
  int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
+ int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
507
  OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid);
507
508
  OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
508
509
  const char *propq);
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 0
32
- # define OPENSSL_VERSION_PATCH 8
32
+ # define OPENSSL_VERSION_PATCH 9
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,21 +74,21 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.0.8"
78
- # define OPENSSL_FULL_VERSION_STR "3.0.8+quic"
77
+ # define OPENSSL_VERSION_STR "3.0.9"
78
+ # define OPENSSL_FULL_VERSION_STR "3.0.9+quic"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "7 Feb 2023"
85
+ # define OPENSSL_RELEASE_DATE "30 May 2023"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.8+quic 7 Feb 2023"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.9+quic 30 May 2023"
92
92
 
93
93
  /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
94
94
  # ifdef OPENSSL_VERSION_PRE_RELEASE
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  #define PLATFORM "platform: BSD-x86_64"
14
- #define DATE "built on: Mon Feb 13 14:21:54 2023 UTC"
14
+ #define DATE "built on: Fri Jun 9 12:00:09 2023 UTC"
15
15
 
16
16
  /*
17
17
  * Generate compiler_flags as an array of individual characters. This is a
@@ -2,7 +2,7 @@
2
2
  * WARNING: do not edit!
3
3
  * Generated by Makefile from include/openssl/cmp.h.in
4
4
  *
5
- * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
5
+ * Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.
6
6
  * Copyright Nokia 2007-2019
7
7
  * Copyright Siemens AG 2015-2019
8
8
  *
@@ -442,8 +442,8 @@ int OSSL_CMP_CTX_build_cert_chain(OSSL_CMP_CTX *ctx, X509_STORE *own_trusted,
442
442
  int OSSL_CMP_CTX_set1_pkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey);
443
443
  int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx,
444
444
  const unsigned char *ref, int len);
445
- int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx, const unsigned char *sec,
446
- const int len);
445
+ int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx,
446
+ const unsigned char *sec, int len);
447
447
  /* CMP message header and extra certificates: */
448
448
  int OSSL_CMP_CTX_set1_recipient(OSSL_CMP_CTX *ctx, const X509_NAME *name);
449
449
  int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav);
@@ -503,6 +503,7 @@ ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const OSSL_CMP_PKIHEADER *hdr);
503
503
  OSSL_CMP_PKIHEADER *OSSL_CMP_MSG_get0_header(const OSSL_CMP_MSG *msg);
504
504
  int OSSL_CMP_MSG_get_bodytype(const OSSL_CMP_MSG *msg);
505
505
  int OSSL_CMP_MSG_update_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
+ int OSSL_CMP_MSG_update_recipNonce(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg);
506
507
  OSSL_CRMF_MSG *OSSL_CMP_CTX_setup_CRM(OSSL_CMP_CTX *ctx, int for_KUR, int rid);
507
508
  OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
508
509
  const char *propq);
@@ -29,7 +29,7 @@ extern "C" {
29
29
  */
30
30
  # define OPENSSL_VERSION_MAJOR 3
31
31
  # define OPENSSL_VERSION_MINOR 0
32
- # define OPENSSL_VERSION_PATCH 8
32
+ # define OPENSSL_VERSION_PATCH 9
33
33
 
34
34
  /*
35
35
  * Additional version information
@@ -74,21 +74,21 @@ extern "C" {
74
74
  * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75
75
  * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76
76
  */
77
- # define OPENSSL_VERSION_STR "3.0.8"
78
- # define OPENSSL_FULL_VERSION_STR "3.0.8+quic"
77
+ # define OPENSSL_VERSION_STR "3.0.9"
78
+ # define OPENSSL_FULL_VERSION_STR "3.0.9+quic"
79
79
 
80
80
  /*
81
81
  * SECTION 3: ADDITIONAL METADATA
82
82
  *
83
83
  * These strings are defined separately to allow them to be parsable.
84
84
  */
85
- # define OPENSSL_RELEASE_DATE "7 Feb 2023"
85
+ # define OPENSSL_RELEASE_DATE "30 May 2023"
86
86
 
87
87
  /*
88
88
  * SECTION 4: BACKWARD COMPATIBILITY
89
89
  */
90
90
 
91
- # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.8+quic 7 Feb 2023"
91
+ # define OPENSSL_VERSION_TEXT "OpenSSL 3.0.9+quic 30 May 2023"
92
92
 
93
93
  /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
94
94
  # ifdef OPENSSL_VERSION_PRE_RELEASE