virgil-crypto 2.0.2b0

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 (879) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.gitmodules +3 -0
  4. data/Gemfile +4 -0
  5. data/README.md +36 -0
  6. data/Rakefile +12 -0
  7. data/bin/console +14 -0
  8. data/bin/setup +8 -0
  9. data/ext/native/extconf.rb +25 -0
  10. data/ext/native/src/.gitignore +17 -0
  11. data/ext/native/src/.travis.yml +50 -0
  12. data/ext/native/src/CMakeLists.txt +336 -0
  13. data/ext/native/src/ChangeLog +440 -0
  14. data/ext/native/src/Jenkinsfile +208 -0
  15. data/ext/native/src/LICENSE +33 -0
  16. data/ext/native/src/README.md +195 -0
  17. data/ext/native/src/VERSION +1 -0
  18. data/ext/native/src/benchmark/CMakeLists.txt +52 -0
  19. data/ext/native/src/benchmark/benchmark_cipher.cxx +99 -0
  20. data/ext/native/src/benchmark/benchmark_hash.cxx +85 -0
  21. data/ext/native/src/benchmark/benchmark_signer.cxx +89 -0
  22. data/ext/native/src/benchmark/benchpress.hpp +464 -0
  23. data/ext/native/src/benchmark/cxxopts.hpp +1312 -0
  24. data/ext/native/src/ci/configure.sh +71 -0
  25. data/ext/native/src/ci/install-cmake.sh +48 -0
  26. data/ext/native/src/ci/install-credentials.sh +45 -0
  27. data/ext/native/src/ci/install-doxygen.sh +48 -0
  28. data/ext/native/src/ci/install-phpunit.sh +47 -0
  29. data/ext/native/src/ci/install-swig.sh +47 -0
  30. data/ext/native/src/ci/publish-docs.sh +125 -0
  31. data/ext/native/src/ci/run.sh +55 -0
  32. data/ext/native/src/ci/travis_ci_rsa.enc +0 -0
  33. data/ext/native/src/cmake/android.toolchain.cmake +1697 -0
  34. data/ext/native/src/cmake/apple.toolchain.cmake +323 -0
  35. data/ext/native/src/cmake/aux_source_directory_to_file.cmake +70 -0
  36. data/ext/native/src/cmake/check_pointer_size.cmake +64 -0
  37. data/ext/native/src/cmake/cmake_args.cmake +64 -0
  38. data/ext/native/src/cmake/copy_all_files.cmake +70 -0
  39. data/ext/native/src/cmake/file_regex_replace.cmake +69 -0
  40. data/ext/native/src/cmake/find_host_utils.cmake +54 -0
  41. data/ext/native/src/cmake/pnacl.toolchain.cmake +87 -0
  42. data/ext/native/src/cmake/uppercase_first_char.cmake +45 -0
  43. data/ext/native/src/cmake/uppercase_namespaces.cmake +86 -0
  44. data/ext/native/src/cmake/virgil_depends.cmake +53 -0
  45. data/ext/native/src/cmake/virgil_depends_local.cmake +325 -0
  46. data/ext/native/src/docs/.gitignore +0 -0
  47. data/ext/native/src/lib/CMakeLists.txt +162 -0
  48. data/ext/native/src/lib/Doxyfile.in +2310 -0
  49. data/ext/native/src/lib/cmake/config.cmake.in +40 -0
  50. data/ext/native/src/lib/include/CMakeLists.txt +68 -0
  51. data/ext/native/src/lib/include/virgil/crypto/VirgilByteArray.h +143 -0
  52. data/ext/native/src/lib/include/virgil/crypto/VirgilByteArrayUtils.h +121 -0
  53. data/ext/native/src/lib/include/virgil/crypto/VirgilChunkCipher.h +117 -0
  54. data/ext/native/src/lib/include/virgil/crypto/VirgilCipher.h +93 -0
  55. data/ext/native/src/lib/include/virgil/crypto/VirgilCipherBase.h +302 -0
  56. data/ext/native/src/lib/include/virgil/crypto/VirgilCryptoError.h +136 -0
  57. data/ext/native/src/lib/include/virgil/crypto/VirgilCryptoException.h +117 -0
  58. data/ext/native/src/lib/include/virgil/crypto/VirgilCustomParams.h +159 -0
  59. data/ext/native/src/lib/include/virgil/crypto/VirgilDataSink.h +77 -0
  60. data/ext/native/src/lib/include/virgil/crypto/VirgilDataSource.h +66 -0
  61. data/ext/native/src/lib/include/virgil/crypto/VirgilKeyPair.h +274 -0
  62. data/ext/native/src/lib/include/virgil/crypto/VirgilSigner.h +84 -0
  63. data/ext/native/src/lib/include/virgil/crypto/VirgilStreamCipher.h +99 -0
  64. data/ext/native/src/lib/include/virgil/crypto/VirgilStreamSigner.h +80 -0
  65. data/ext/native/src/lib/include/virgil/crypto/VirgilTinyCipher.h +283 -0
  66. data/ext/native/src/lib/include/virgil/crypto/VirgilVersion.h +88 -0
  67. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilAsymmetricCipher.h +395 -0
  68. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilBase64.h +70 -0
  69. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilHash.h +261 -0
  70. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilKDF.h +175 -0
  71. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilPBE.h +164 -0
  72. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilPBKDF.h +198 -0
  73. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilRandom.h +121 -0
  74. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilSymmetricCipher.h +305 -0
  75. data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilSystemCryptoError.h +149 -0
  76. data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Compatible.h +100 -0
  77. data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Reader.h +179 -0
  78. data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Writer.h +241 -0
  79. data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/internal/VirgilAsn1Alg.h +114 -0
  80. data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSContent.h +113 -0
  81. data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSContentInfo.h +91 -0
  82. data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSEncryptedContent.h +90 -0
  83. data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSEnvelopedData.h +116 -0
  84. data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSKeyTransRecipient.h +103 -0
  85. data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSPasswordRecipient.h +98 -0
  86. data/ext/native/src/lib/include/virgil/crypto/foundation/internal/VirgilOID.h +81 -0
  87. data/ext/native/src/lib/include/virgil/crypto/foundation/internal/VirgilTagFilter.h +95 -0
  88. data/ext/native/src/lib/include/virgil/crypto/foundation/internal/mbedtls_context.h +93 -0
  89. data/ext/native/src/lib/include/virgil/crypto/foundation/internal/mbedtls_context_policy_spec.h +231 -0
  90. data/ext/native/src/lib/include/virgil/crypto/foundation/internal/mbedtls_type_utils.h +407 -0
  91. data/ext/native/src/lib/include/virgil/crypto/internal/utils.h +58 -0
  92. data/ext/native/src/lib/include/virgil/crypto/stream/VirgilBytesDataSink.h +84 -0
  93. data/ext/native/src/lib/include/virgil/crypto/stream/VirgilBytesDataSource.h +90 -0
  94. data/ext/native/src/lib/include/virgil/crypto/stream/VirgilStreamDataSink.h +79 -0
  95. data/ext/native/src/lib/include/virgil/crypto/stream/VirgilStreamDataSource.h +84 -0
  96. data/ext/native/src/lib/mainpage.dox +60 -0
  97. data/ext/native/src/lib/src/VirgilAsn1Alg.cxx +122 -0
  98. data/ext/native/src/lib/src/VirgilAsn1Compatible.cxx +67 -0
  99. data/ext/native/src/lib/src/VirgilAsn1Reader.cxx +190 -0
  100. data/ext/native/src/lib/src/VirgilAsn1Writer.cxx +329 -0
  101. data/ext/native/src/lib/src/VirgilAsymmetricCipher.cxx +633 -0
  102. data/ext/native/src/lib/src/VirgilBase64.cxx +94 -0
  103. data/ext/native/src/lib/src/VirgilByteArrayUtils.cxx +222 -0
  104. data/ext/native/src/lib/src/VirgilCMSContent.cxx +124 -0
  105. data/ext/native/src/lib/src/VirgilCMSContentInfo.cxx +111 -0
  106. data/ext/native/src/lib/src/VirgilCMSEncryptedContent.cxx +84 -0
  107. data/ext/native/src/lib/src/VirgilCMSEnvelopedData.cxx +131 -0
  108. data/ext/native/src/lib/src/VirgilCMSKeyTransRecipient.cxx +96 -0
  109. data/ext/native/src/lib/src/VirgilCMSPasswordRecipient.cxx +93 -0
  110. data/ext/native/src/lib/src/VirgilChunkCipher.cxx +215 -0
  111. data/ext/native/src/lib/src/VirgilCipher.cxx +92 -0
  112. data/ext/native/src/lib/src/VirgilCipherBase.cxx +340 -0
  113. data/ext/native/src/lib/src/VirgilCryptoError.cxx +88 -0
  114. data/ext/native/src/lib/src/VirgilCryptoException.cxx +84 -0
  115. data/ext/native/src/lib/src/VirgilCustomParams.cxx +193 -0
  116. data/ext/native/src/lib/src/VirgilDataSink.cxx +46 -0
  117. data/ext/native/src/lib/src/VirgilHash.cxx +269 -0
  118. data/ext/native/src/lib/src/VirgilKDF.cxx +209 -0
  119. data/ext/native/src/lib/src/VirgilKeyPair.cxx +165 -0
  120. data/ext/native/src/lib/src/VirgilPBE.cxx +215 -0
  121. data/ext/native/src/lib/src/VirgilPBKDF.cxx +286 -0
  122. data/ext/native/src/lib/src/VirgilRandom.cxx +112 -0
  123. data/ext/native/src/lib/src/VirgilSigner.cxx +91 -0
  124. data/ext/native/src/lib/src/VirgilStreamCipher.cxx +116 -0
  125. data/ext/native/src/lib/src/VirgilStreamSigner.cxx +98 -0
  126. data/ext/native/src/lib/src/VirgilSymmetricCipher.cxx +369 -0
  127. data/ext/native/src/lib/src/VirgilSystemCryptoError.cxx +58 -0
  128. data/ext/native/src/lib/src/VirgilTagFilter.cxx +76 -0
  129. data/ext/native/src/lib/src/VirgilTinyCipher.cxx +648 -0
  130. data/ext/native/src/lib/src/VirgilVersion.cxx.in +28 -0
  131. data/ext/native/src/lib/src/stream/VirgilBytesDataSink.cxx +61 -0
  132. data/ext/native/src/lib/src/stream/VirgilBytesDataSource.cxx +68 -0
  133. data/ext/native/src/lib/src/stream/VirgilStreamDataSink.cxx +57 -0
  134. data/ext/native/src/lib/src/stream/VirgilStreamDataSource.cxx +68 -0
  135. data/ext/native/src/libs_ext/mbedtls/configs/config.h +84 -0
  136. data/ext/native/src/libs_ext/mbedtls/configs/config_desktop.h +13 -0
  137. data/ext/native/src/libs_ext/mbedtls/configs/config_pnacl.h +8 -0
  138. data/ext/native/src/libs_ext/mbedtls/mbedtls.cmake +102 -0
  139. data/ext/native/src/libs_ext/rapidjson/rapidjson.cmake +61 -0
  140. data/ext/native/src/libs_ext/tinyformat/cmake/config.cmake.in +43 -0
  141. data/ext/native/src/libs_ext/tinyformat/src/tinyformat.h +1003 -0
  142. data/ext/native/src/libs_ext/tinyformat/tinyformat.cmake +77 -0
  143. data/ext/native/src/migration-2.0.md +108 -0
  144. data/ext/native/src/tests/CMakeLists.txt +50 -0
  145. data/ext/native/src/tests/catch.hpp +10200 -0
  146. data/ext/native/src/tests/test_asn1_writer.cxx +268 -0
  147. data/ext/native/src/tests/test_asymmetric_cipher.cxx +140 -0
  148. data/ext/native/src/tests/test_base64.cxx +102 -0
  149. data/ext/native/src/tests/test_byte_array_utils.cxx +102 -0
  150. data/ext/native/src/tests/test_chunk_cipher.cxx +310 -0
  151. data/ext/native/src/tests/test_cipher.cxx +402 -0
  152. data/ext/native/src/tests/test_cipher_base.cxx +353 -0
  153. data/ext/native/src/tests/test_contract_copy_move.cxx +131 -0
  154. data/ext/native/src/tests/test_hash.cxx +153 -0
  155. data/ext/native/src/tests/test_key_pair.cxx +204 -0
  156. data/ext/native/src/tests/test_pbe.cxx +95 -0
  157. data/ext/native/src/tests/test_pbkdf.cxx +368 -0
  158. data/ext/native/src/tests/test_random.cxx +93 -0
  159. data/ext/native/src/tests/test_runner.cxx +43 -0
  160. data/ext/native/src/tests/test_signer.cxx +111 -0
  161. data/ext/native/src/tests/test_stream_cipher.cxx +277 -0
  162. data/ext/native/src/tests/test_symmetric_cipher.cxx +105 -0
  163. data/ext/native/src/tests/test_tag_filter.cxx +74 -0
  164. data/ext/native/src/tests/test_tiny_cipher.cxx +172 -0
  165. data/ext/native/src/utils/build.bat +274 -0
  166. data/ext/native/src/utils/build.sh +354 -0
  167. data/ext/native/src/utils/env.sh +39 -0
  168. data/ext/native/src/utils/zip.vbs +45 -0
  169. data/ext/native/src/wrappers/CMakeLists.txt +63 -0
  170. data/ext/native/src/wrappers/asmjs/CMakeLists.txt +109 -0
  171. data/ext/native/src/wrappers/asmjs/error.js +41 -0
  172. data/ext/native/src/wrappers/asmjs/example.html +77 -0
  173. data/ext/native/src/wrappers/asmjs/helpers.js +155 -0
  174. data/ext/native/src/wrappers/asmjs/patch_embind.pl +115 -0
  175. data/ext/native/src/wrappers/asmjs/wrapper.cxx +340 -0
  176. data/ext/native/src/wrappers/java/CMakeLists.txt +156 -0
  177. data/ext/native/src/wrappers/java/src/VirgilStreamDataSink.java +62 -0
  178. data/ext/native/src/wrappers/java/src/VirgilStreamDataSource.java +72 -0
  179. data/ext/native/src/wrappers/net/CMakeLists.txt +170 -0
  180. data/ext/native/src/wrappers/net/cmake/FindCSharp.cmake +72 -0
  181. data/ext/native/src/wrappers/net/cmake/FindDotNetFrameworkSdk.cmake +92 -0
  182. data/ext/native/src/wrappers/net/cmake/FindMono.cmake +162 -0
  183. data/ext/native/src/wrappers/net/cmake/UseCSharp.cmake +119 -0
  184. data/ext/native/src/wrappers/net/cmake/UseDotNetFrameworkSdk.cmake +12 -0
  185. data/ext/native/src/wrappers/net/cmake/UseMono.cmake +16 -0
  186. data/ext/native/src/wrappers/net/src/AssemblyInfo.cs +56 -0
  187. data/ext/native/src/wrappers/net/src/VirgilStreamDataSink.cs +63 -0
  188. data/ext/native/src/wrappers/net/src/VirgilStreamDataSource.cs +74 -0
  189. data/ext/native/src/wrappers/nodejs/CMakeLists.txt +134 -0
  190. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/android-ifaddrs.h +54 -0
  191. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/ares.h +636 -0
  192. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/ares_version.h +24 -0
  193. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/libplatform/libplatform.h +38 -0
  194. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/nameser.h +211 -0
  195. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node.h +447 -0
  196. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_buffer.h +125 -0
  197. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_internals.h +236 -0
  198. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_object_wrap.h +137 -0
  199. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_version.h +69 -0
  200. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/aes.h +149 -0
  201. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1.h +1417 -0
  202. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1_mac.h +579 -0
  203. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1t.h +973 -0
  204. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/bio.h +875 -0
  205. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/blowfish.h +130 -0
  206. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/bn.h +957 -0
  207. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/buffer.h +118 -0
  208. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/camellia.h +132 -0
  209. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cast.h +107 -0
  210. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cmac.h +82 -0
  211. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cms.h +505 -0
  212. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/comp.h +79 -0
  213. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/conf.h +267 -0
  214. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/conf_api.h +89 -0
  215. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/crypto.h +661 -0
  216. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/des.h +257 -0
  217. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/des_old.h +497 -0
  218. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dh.h +287 -0
  219. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dsa.h +329 -0
  220. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dso.h +451 -0
  221. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dtls1.h +268 -0
  222. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/e_os2.h +328 -0
  223. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ebcdic.h +26 -0
  224. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ec.h +1193 -0
  225. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ecdh.h +127 -0
  226. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ecdsa.h +260 -0
  227. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/engine.h +961 -0
  228. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/err.h +389 -0
  229. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/evp.h +1480 -0
  230. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/hmac.h +109 -0
  231. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/idea.h +105 -0
  232. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/krb5_asn.h +240 -0
  233. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/kssl.h +197 -0
  234. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/lhash.h +240 -0
  235. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/md4.h +119 -0
  236. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/md5.h +119 -0
  237. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/mdc2.h +94 -0
  238. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/modes.h +153 -0
  239. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/obj_mac.h +4031 -0
  240. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/objects.h +1143 -0
  241. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ocsp.h +626 -0
  242. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/opensslconf.h +333 -0
  243. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/opensslv.h +97 -0
  244. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ossl_typ.h +209 -0
  245. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pem.h +611 -0
  246. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pem2.h +70 -0
  247. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pkcs12.h +342 -0
  248. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pkcs7.h +481 -0
  249. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pqueue.h +99 -0
  250. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rand.h +150 -0
  251. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rc2.h +103 -0
  252. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rc4.h +88 -0
  253. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ripemd.h +105 -0
  254. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rsa.h +610 -0
  255. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/safestack.h +2536 -0
  256. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/seed.h +149 -0
  257. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/sha.h +214 -0
  258. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/srp.h +169 -0
  259. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/srtp.h +148 -0
  260. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl.h +2766 -0
  261. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl2.h +265 -0
  262. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl23.h +84 -0
  263. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl3.h +730 -0
  264. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/stack.h +106 -0
  265. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/symhacks.h +486 -0
  266. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/tls1.h +788 -0
  267. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ts.h +862 -0
  268. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/txt_db.h +112 -0
  269. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ui.h +415 -0
  270. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ui_compat.h +88 -0
  271. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/whrlpool.h +41 -0
  272. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509.h +1301 -0
  273. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509_vfy.h +595 -0
  274. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509v3.h +1015 -0
  275. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/pthread-fixes.h +72 -0
  276. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/smalloc.h +153 -0
  277. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/stdint-msvc2008.h +247 -0
  278. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/tree.h +768 -0
  279. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-aix.h +32 -0
  280. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-bsd.h +34 -0
  281. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-darwin.h +61 -0
  282. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-errno.h +418 -0
  283. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-linux.h +34 -0
  284. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-sunos.h +44 -0
  285. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-threadpool.h +37 -0
  286. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-unix.h +383 -0
  287. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-version.h +39 -0
  288. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-win.h +647 -0
  289. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv.h +1467 -0
  290. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-debug.h +267 -0
  291. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-platform.h +62 -0
  292. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-profiler.h +611 -0
  293. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h +48 -0
  294. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-util.h +487 -0
  295. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-version.h +20 -0
  296. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8.h +6741 -0
  297. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8config.h +451 -0
  298. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8stdint.h +33 -0
  299. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/zconf.h +511 -0
  300. data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/zlib.h +1768 -0
  301. data/ext/native/src/wrappers/nodejs/node-v0.12.7/lib/win/x64/node.lib +0 -0
  302. data/ext/native/src/wrappers/nodejs/node-v0.12.7/lib/win/x86/node.lib +0 -0
  303. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/android-ifaddrs.h +54 -0
  304. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/ares.h +589 -0
  305. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/ares_version.h +24 -0
  306. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/libplatform/libplatform.h +38 -0
  307. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/nameser.h +211 -0
  308. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node.h +470 -0
  309. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_buffer.h +65 -0
  310. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_internals.h +339 -0
  311. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_object_wrap.h +116 -0
  312. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_version.h +45 -0
  313. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/aes.h +149 -0
  314. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/BSD-x86/opensslconf.h +258 -0
  315. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/BSD-x86_64/opensslconf.h +258 -0
  316. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/VC-WIN32/opensslconf.h +259 -0
  317. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/VC-WIN64A/opensslconf.h +259 -0
  318. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/aix-gcc/opensslconf.h +261 -0
  319. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/aix64-gcc/opensslconf.h +261 -0
  320. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/darwin-i386-cc/opensslconf.h +261 -0
  321. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +261 -0
  322. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-aarch64/opensslconf.h +258 -0
  323. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-armv4/opensslconf.h +258 -0
  324. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-elf/opensslconf.h +258 -0
  325. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-ppc/opensslconf.h +258 -0
  326. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-ppc64/opensslconf.h +258 -0
  327. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-x32/opensslconf.h +258 -0
  328. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-x86_64/opensslconf.h +258 -0
  329. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/solaris-x86-gcc/opensslconf.h +258 -0
  330. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +258 -0
  331. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1.h +1419 -0
  332. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1_mac.h +579 -0
  333. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1t.h +973 -0
  334. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/bio.h +879 -0
  335. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/blowfish.h +130 -0
  336. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/bn.h +939 -0
  337. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/buffer.h +119 -0
  338. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/camellia.h +132 -0
  339. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cast.h +107 -0
  340. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cmac.h +82 -0
  341. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cms.h +555 -0
  342. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/comp.h +79 -0
  343. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/conf.h +267 -0
  344. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/conf_api.h +89 -0
  345. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/crypto.h +661 -0
  346. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/des.h +257 -0
  347. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/des_old.h +497 -0
  348. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dh.h +392 -0
  349. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dsa.h +332 -0
  350. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dso.h +451 -0
  351. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dtls1.h +272 -0
  352. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/e_os2.h +328 -0
  353. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ebcdic.h +26 -0
  354. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ec.h +1282 -0
  355. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ecdh.h +134 -0
  356. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ecdsa.h +335 -0
  357. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/engine.h +960 -0
  358. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/err.h +389 -0
  359. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/evp.h +1534 -0
  360. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/hmac.h +109 -0
  361. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/idea.h +105 -0
  362. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/krb5_asn.h +240 -0
  363. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/kssl.h +197 -0
  364. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/lhash.h +240 -0
  365. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/md4.h +119 -0
  366. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/md5.h +119 -0
  367. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/mdc2.h +94 -0
  368. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/modes.h +163 -0
  369. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/obj_mac.h +4194 -0
  370. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/objects.h +1143 -0
  371. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ocsp.h +637 -0
  372. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/opensslconf.h +138 -0
  373. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/opensslv.h +97 -0
  374. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ossl_typ.h +211 -0
  375. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pem.h +615 -0
  376. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pem2.h +70 -0
  377. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pkcs12.h +342 -0
  378. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pkcs7.h +481 -0
  379. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pqueue.h +99 -0
  380. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rand.h +150 -0
  381. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rc2.h +103 -0
  382. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rc4.h +88 -0
  383. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ripemd.h +105 -0
  384. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rsa.h +664 -0
  385. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/safestack.h +2672 -0
  386. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/seed.h +149 -0
  387. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/sha.h +214 -0
  388. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/srp.h +169 -0
  389. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/srtp.h +147 -0
  390. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl.h +3164 -0
  391. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl2.h +265 -0
  392. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl23.h +84 -0
  393. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl3.h +774 -0
  394. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/stack.h +107 -0
  395. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/symhacks.h +516 -0
  396. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/tls1.h +813 -0
  397. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ts.h +862 -0
  398. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/txt_db.h +112 -0
  399. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ui.h +415 -0
  400. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ui_compat.h +88 -0
  401. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/whrlpool.h +41 -0
  402. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509.h +1327 -0
  403. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509_vfy.h +647 -0
  404. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509v3.h +1055 -0
  405. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/pthread-fixes.h +72 -0
  406. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/stdint-msvc2008.h +247 -0
  407. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/tree.h +768 -0
  408. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-aix.h +32 -0
  409. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-bsd.h +34 -0
  410. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-darwin.h +61 -0
  411. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-errno.h +418 -0
  412. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-linux.h +34 -0
  413. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-sunos.h +44 -0
  414. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-threadpool.h +37 -0
  415. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-unix.h +383 -0
  416. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-version.h +43 -0
  417. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-win.h +655 -0
  418. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv.h +1472 -0
  419. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-debug.h +280 -0
  420. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-platform.h +82 -0
  421. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-profiler.h +648 -0
  422. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h +48 -0
  423. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-util.h +640 -0
  424. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-version.h +20 -0
  425. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8.h +8366 -0
  426. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8config.h +424 -0
  427. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/zconf.h +511 -0
  428. data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/zlib.h +1768 -0
  429. data/ext/native/src/wrappers/nodejs/node-v4.1.0/lib/win/x64/node.lib +0 -0
  430. data/ext/native/src/wrappers/nodejs/node-v4.1.0/lib/win/x86/node.lib +0 -0
  431. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/android-ifaddrs.h +54 -0
  432. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/ares.h +589 -0
  433. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/ares_version.h +24 -0
  434. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/common.gypi +337 -0
  435. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/config.gypi +44 -0
  436. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/libplatform/libplatform.h +38 -0
  437. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/nameser.h +211 -0
  438. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node.h +470 -0
  439. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_buffer.h +65 -0
  440. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_internals.h +333 -0
  441. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_object_wrap.h +116 -0
  442. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_version.h +57 -0
  443. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/aes.h +149 -0
  444. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/BSD-x86/opensslconf.h +270 -0
  445. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/BSD-x86_64/opensslconf.h +270 -0
  446. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/VC-WIN32/opensslconf.h +271 -0
  447. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/VC-WIN64A/opensslconf.h +271 -0
  448. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/aix-gcc/opensslconf.h +273 -0
  449. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/aix64-gcc/opensslconf.h +273 -0
  450. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/darwin-i386-cc/opensslconf.h +273 -0
  451. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +273 -0
  452. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-aarch64/opensslconf.h +270 -0
  453. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-armv4/opensslconf.h +270 -0
  454. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-elf/opensslconf.h +270 -0
  455. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-ppc/opensslconf.h +270 -0
  456. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-ppc64/opensslconf.h +270 -0
  457. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-x32/opensslconf.h +270 -0
  458. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-x86_64/opensslconf.h +270 -0
  459. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/solaris-x86-gcc/opensslconf.h +270 -0
  460. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +270 -0
  461. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1.h +1419 -0
  462. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1_mac.h +579 -0
  463. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1t.h +973 -0
  464. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/bio.h +883 -0
  465. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/blowfish.h +130 -0
  466. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/bn.h +949 -0
  467. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/buffer.h +125 -0
  468. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/camellia.h +132 -0
  469. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cast.h +107 -0
  470. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cmac.h +82 -0
  471. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cms.h +555 -0
  472. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/comp.h +83 -0
  473. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/conf.h +267 -0
  474. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/conf_api.h +89 -0
  475. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/crypto.h +661 -0
  476. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/des.h +257 -0
  477. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/des_old.h +497 -0
  478. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dh.h +393 -0
  479. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dsa.h +332 -0
  480. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dso.h +451 -0
  481. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dtls1.h +272 -0
  482. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/e_os2.h +328 -0
  483. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ebcdic.h +26 -0
  484. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ec.h +1282 -0
  485. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ecdh.h +134 -0
  486. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ecdsa.h +335 -0
  487. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/engine.h +960 -0
  488. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/err.h +389 -0
  489. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/evp.h +1534 -0
  490. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/hmac.h +109 -0
  491. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/idea.h +105 -0
  492. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/krb5_asn.h +240 -0
  493. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/kssl.h +197 -0
  494. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/lhash.h +240 -0
  495. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/md4.h +119 -0
  496. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/md5.h +119 -0
  497. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/mdc2.h +94 -0
  498. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/modes.h +163 -0
  499. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/obj_mac.h +4194 -0
  500. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/objects.h +1143 -0
  501. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ocsp.h +637 -0
  502. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/opensslconf.h +138 -0
  503. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/opensslv.h +97 -0
  504. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ossl_typ.h +211 -0
  505. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pem.h +615 -0
  506. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pem2.h +70 -0
  507. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pkcs12.h +342 -0
  508. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pkcs7.h +481 -0
  509. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pqueue.h +99 -0
  510. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rand.h +150 -0
  511. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rc2.h +103 -0
  512. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rc4.h +88 -0
  513. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ripemd.h +105 -0
  514. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rsa.h +664 -0
  515. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/safestack.h +2672 -0
  516. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/seed.h +149 -0
  517. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/sha.h +214 -0
  518. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/srp.h +179 -0
  519. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/srtp.h +147 -0
  520. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl.h +3169 -0
  521. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl2.h +265 -0
  522. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl23.h +84 -0
  523. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl3.h +774 -0
  524. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/stack.h +107 -0
  525. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/symhacks.h +516 -0
  526. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/tls1.h +810 -0
  527. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ts.h +862 -0
  528. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/txt_db.h +112 -0
  529. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ui.h +415 -0
  530. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ui_compat.h +88 -0
  531. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/whrlpool.h +41 -0
  532. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509.h +1328 -0
  533. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509_vfy.h +647 -0
  534. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509v3.h +1055 -0
  535. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/pthread-fixes.h +72 -0
  536. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/stdint-msvc2008.h +247 -0
  537. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/tree.h +768 -0
  538. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-aix.h +32 -0
  539. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-bsd.h +34 -0
  540. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-darwin.h +61 -0
  541. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-errno.h +418 -0
  542. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-linux.h +34 -0
  543. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-sunos.h +44 -0
  544. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-threadpool.h +37 -0
  545. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-unix.h +383 -0
  546. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-version.h +43 -0
  547. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-win.h +653 -0
  548. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv.h +1482 -0
  549. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-debug.h +280 -0
  550. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-platform.h +82 -0
  551. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-profiler.h +648 -0
  552. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h +48 -0
  553. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-util.h +640 -0
  554. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-version.h +20 -0
  555. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8.h +8379 -0
  556. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8config.h +424 -0
  557. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/zconf.h +511 -0
  558. data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/zlib.h +1768 -0
  559. data/ext/native/src/wrappers/nodejs/node-v4.4.4/lib/win/x64/node.lib +0 -0
  560. data/ext/native/src/wrappers/nodejs/node-v4.4.4/lib/win/x86/node.lib +0 -0
  561. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/android-ifaddrs.h +54 -0
  562. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares.h +627 -0
  563. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_build.h +117 -0
  564. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_rules.h +130 -0
  565. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_version.h +24 -0
  566. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/common.gypi +335 -0
  567. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/config.gypi +45 -0
  568. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/libplatform/libplatform.h +38 -0
  569. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/nameser.h +211 -0
  570. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node.h +470 -0
  571. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_buffer.h +65 -0
  572. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_internals.h +331 -0
  573. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_object_wrap.h +116 -0
  574. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_version.h +54 -0
  575. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/aes.h +149 -0
  576. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/BSD-x86/opensslconf.h +270 -0
  577. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/BSD-x86_64/opensslconf.h +270 -0
  578. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/VC-WIN32/opensslconf.h +271 -0
  579. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/VC-WIN64A/opensslconf.h +271 -0
  580. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/aix-gcc/opensslconf.h +273 -0
  581. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/aix64-gcc/opensslconf.h +273 -0
  582. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/darwin-i386-cc/opensslconf.h +273 -0
  583. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +273 -0
  584. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-aarch64/opensslconf.h +270 -0
  585. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-armv4/opensslconf.h +270 -0
  586. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-elf/opensslconf.h +270 -0
  587. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-ppc/opensslconf.h +270 -0
  588. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-ppc64/opensslconf.h +270 -0
  589. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-x32/opensslconf.h +270 -0
  590. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-x86_64/opensslconf.h +270 -0
  591. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/solaris-x86-gcc/opensslconf.h +270 -0
  592. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +270 -0
  593. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1.h +1419 -0
  594. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1_mac.h +579 -0
  595. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1t.h +973 -0
  596. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/bio.h +883 -0
  597. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/blowfish.h +130 -0
  598. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/bn.h +949 -0
  599. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/buffer.h +125 -0
  600. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/camellia.h +132 -0
  601. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cast.h +107 -0
  602. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cmac.h +82 -0
  603. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cms.h +555 -0
  604. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/comp.h +79 -0
  605. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/conf.h +267 -0
  606. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/conf_api.h +89 -0
  607. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/crypto.h +661 -0
  608. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/des.h +257 -0
  609. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/des_old.h +497 -0
  610. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dh.h +393 -0
  611. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dsa.h +332 -0
  612. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dso.h +451 -0
  613. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dtls1.h +272 -0
  614. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/e_os2.h +328 -0
  615. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ebcdic.h +26 -0
  616. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ec.h +1282 -0
  617. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ecdh.h +134 -0
  618. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ecdsa.h +335 -0
  619. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/engine.h +960 -0
  620. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/err.h +389 -0
  621. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/evp.h +1534 -0
  622. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/hmac.h +109 -0
  623. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/idea.h +105 -0
  624. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/krb5_asn.h +240 -0
  625. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/kssl.h +197 -0
  626. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/lhash.h +240 -0
  627. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/md4.h +119 -0
  628. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/md5.h +119 -0
  629. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/mdc2.h +94 -0
  630. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/modes.h +163 -0
  631. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/obj_mac.h +4194 -0
  632. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/objects.h +1143 -0
  633. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ocsp.h +637 -0
  634. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/opensslconf.h +138 -0
  635. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/opensslv.h +97 -0
  636. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ossl_typ.h +211 -0
  637. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pem.h +615 -0
  638. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pem2.h +70 -0
  639. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pkcs12.h +342 -0
  640. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pkcs7.h +481 -0
  641. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pqueue.h +99 -0
  642. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rand.h +150 -0
  643. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rc2.h +103 -0
  644. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rc4.h +88 -0
  645. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ripemd.h +105 -0
  646. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rsa.h +664 -0
  647. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/safestack.h +2672 -0
  648. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/seed.h +149 -0
  649. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/sha.h +214 -0
  650. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/srp.h +179 -0
  651. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/srtp.h +147 -0
  652. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl.h +3169 -0
  653. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl2.h +265 -0
  654. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl23.h +84 -0
  655. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl3.h +774 -0
  656. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/stack.h +107 -0
  657. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/symhacks.h +516 -0
  658. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/tls1.h +810 -0
  659. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ts.h +862 -0
  660. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/txt_db.h +112 -0
  661. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ui.h +415 -0
  662. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ui_compat.h +88 -0
  663. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/whrlpool.h +41 -0
  664. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509.h +1327 -0
  665. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509_vfy.h +647 -0
  666. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509v3.h +1055 -0
  667. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/pthread-fixes.h +72 -0
  668. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/stdint-msvc2008.h +247 -0
  669. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/tree.h +768 -0
  670. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-aix.h +32 -0
  671. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-bsd.h +34 -0
  672. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-darwin.h +61 -0
  673. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-errno.h +418 -0
  674. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-linux.h +34 -0
  675. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-sunos.h +44 -0
  676. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-threadpool.h +37 -0
  677. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-unix.h +383 -0
  678. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-version.h +43 -0
  679. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-win.h +653 -0
  680. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv.h +1482 -0
  681. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-debug.h +280 -0
  682. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-platform.h +114 -0
  683. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-profiler.h +648 -0
  684. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h +48 -0
  685. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-util.h +643 -0
  686. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-version.h +20 -0
  687. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8.h +8369 -0
  688. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8config.h +424 -0
  689. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/zconf.h +511 -0
  690. data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/zlib.h +1768 -0
  691. data/ext/native/src/wrappers/nodejs/node-v5.9.1/lib/win/x64/node.lib +0 -0
  692. data/ext/native/src/wrappers/nodejs/node-v5.9.1/lib/win/x86/node.lib +0 -0
  693. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/android-ifaddrs.h +54 -0
  694. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares.h +635 -0
  695. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_build.h +117 -0
  696. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_rules.h +130 -0
  697. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_version.h +24 -0
  698. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/common.gypi +361 -0
  699. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/config.gypi +47 -0
  700. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/libplatform/libplatform.h +38 -0
  701. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/nameser.h +211 -0
  702. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node.h +489 -0
  703. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_buffer.h +68 -0
  704. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_internals.h +309 -0
  705. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_object_wrap.h +111 -0
  706. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_version.h +54 -0
  707. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/aes.h +149 -0
  708. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/BSD-x86/opensslconf.h +270 -0
  709. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/BSD-x86_64/opensslconf.h +270 -0
  710. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/VC-WIN32/opensslconf.h +271 -0
  711. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/VC-WIN64A/opensslconf.h +271 -0
  712. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/aix-gcc/opensslconf.h +273 -0
  713. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/aix64-gcc/opensslconf.h +273 -0
  714. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/darwin-i386-cc/opensslconf.h +273 -0
  715. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +273 -0
  716. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-aarch64/opensslconf.h +270 -0
  717. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-armv4/opensslconf.h +270 -0
  718. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-elf/opensslconf.h +270 -0
  719. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-ppc/opensslconf.h +270 -0
  720. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-ppc64/opensslconf.h +270 -0
  721. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-x32/opensslconf.h +270 -0
  722. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-x86_64/opensslconf.h +270 -0
  723. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux32-s390x/opensslconf.h +270 -0
  724. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux64-s390x/opensslconf.h +270 -0
  725. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/solaris-x86-gcc/opensslconf.h +270 -0
  726. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +270 -0
  727. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1.h +1419 -0
  728. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1_mac.h +579 -0
  729. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1t.h +973 -0
  730. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/bio.h +883 -0
  731. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/blowfish.h +130 -0
  732. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/bn.h +949 -0
  733. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/buffer.h +125 -0
  734. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/camellia.h +132 -0
  735. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cast.h +107 -0
  736. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cmac.h +82 -0
  737. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cms.h +555 -0
  738. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/comp.h +83 -0
  739. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/conf.h +267 -0
  740. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/conf_api.h +89 -0
  741. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/crypto.h +661 -0
  742. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/des.h +257 -0
  743. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/des_old.h +497 -0
  744. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dh.h +393 -0
  745. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dsa.h +332 -0
  746. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dso.h +451 -0
  747. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dtls1.h +272 -0
  748. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/e_os2.h +328 -0
  749. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ebcdic.h +26 -0
  750. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ec.h +1282 -0
  751. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ecdh.h +134 -0
  752. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ecdsa.h +335 -0
  753. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/engine.h +960 -0
  754. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/err.h +389 -0
  755. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/evp.h +1534 -0
  756. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/hmac.h +109 -0
  757. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/idea.h +105 -0
  758. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/krb5_asn.h +240 -0
  759. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/kssl.h +197 -0
  760. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/lhash.h +240 -0
  761. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/md4.h +119 -0
  762. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/md5.h +119 -0
  763. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/mdc2.h +94 -0
  764. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/modes.h +163 -0
  765. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/obj_mac.h +4194 -0
  766. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/objects.h +1143 -0
  767. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ocsp.h +637 -0
  768. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/opensslconf.h +146 -0
  769. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/opensslv.h +97 -0
  770. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ossl_typ.h +211 -0
  771. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pem.h +615 -0
  772. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pem2.h +70 -0
  773. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pkcs12.h +342 -0
  774. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pkcs7.h +481 -0
  775. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pqueue.h +99 -0
  776. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rand.h +150 -0
  777. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rc2.h +103 -0
  778. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rc4.h +88 -0
  779. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ripemd.h +105 -0
  780. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rsa.h +664 -0
  781. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/safestack.h +2672 -0
  782. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/seed.h +149 -0
  783. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/sha.h +214 -0
  784. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/srp.h +179 -0
  785. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/srtp.h +147 -0
  786. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl.h +3169 -0
  787. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl2.h +265 -0
  788. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl23.h +84 -0
  789. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl3.h +774 -0
  790. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/stack.h +107 -0
  791. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/symhacks.h +516 -0
  792. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/tls1.h +810 -0
  793. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ts.h +862 -0
  794. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/txt_db.h +112 -0
  795. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ui.h +415 -0
  796. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ui_compat.h +88 -0
  797. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/whrlpool.h +41 -0
  798. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509.h +1328 -0
  799. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509_vfy.h +647 -0
  800. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509v3.h +1055 -0
  801. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/pthread-fixes.h +72 -0
  802. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/stdint-msvc2008.h +247 -0
  803. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/tree.h +768 -0
  804. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-aix.h +32 -0
  805. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-bsd.h +34 -0
  806. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-darwin.h +61 -0
  807. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-errno.h +418 -0
  808. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-linux.h +34 -0
  809. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-sunos.h +44 -0
  810. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-threadpool.h +37 -0
  811. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-unix.h +383 -0
  812. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-version.h +43 -0
  813. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-win.h +648 -0
  814. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv.h +1495 -0
  815. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-debug.h +288 -0
  816. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-experimental.h +54 -0
  817. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-platform.h +171 -0
  818. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-profiler.h +782 -0
  819. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-testing.h +48 -0
  820. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-util.h +643 -0
  821. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-version.h +20 -0
  822. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8.h +8586 -0
  823. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8config.h +438 -0
  824. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/zconf.h +511 -0
  825. data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/zlib.h +1768 -0
  826. data/ext/native/src/wrappers/nodejs/node-v6.1.0/lib/win/x64/node.lib +0 -0
  827. data/ext/native/src/wrappers/nodejs/node-v6.1.0/lib/win/x86/node.lib +0 -0
  828. data/ext/native/src/wrappers/php/CMakeLists.txt +118 -0
  829. data/ext/native/src/wrappers/php/cmake/FindPHPLibs.cmake +49 -0
  830. data/ext/native/src/wrappers/php/tests/CMakeLists.txt +94 -0
  831. data/ext/native/src/wrappers/php/tests/StringSink.php.in +60 -0
  832. data/ext/native/src/wrappers/php/tests/StringSource.php.in +67 -0
  833. data/ext/native/src/wrappers/php/tests/VirgilAsn1Reader_Test.php.in +160 -0
  834. data/ext/native/src/wrappers/php/tests/VirgilAsn1Writer_Test.php.in +160 -0
  835. data/ext/native/src/wrappers/php/tests/VirgilAsymmetricCipher_EC_Test.php.in +337 -0
  836. data/ext/native/src/wrappers/php/tests/VirgilAsymmetricCipher_RSA_Test.php.in +340 -0
  837. data/ext/native/src/wrappers/php/tests/VirgilChunkCipher_Test.php.in +207 -0
  838. data/ext/native/src/wrappers/php/tests/VirgilCipher_Test.php.in +181 -0
  839. data/ext/native/src/wrappers/php/tests/VirgilCustomParams_Test.php.in +78 -0
  840. data/ext/native/src/wrappers/php/tests/VirgilHash_MD5_Test.php.in +159 -0
  841. data/ext/native/src/wrappers/php/tests/VirgilHash_SHA256_Test.php.in +159 -0
  842. data/ext/native/src/wrappers/php/tests/VirgilHash_SHA512_Test.php.in +167 -0
  843. data/ext/native/src/wrappers/php/tests/VirgilKDF_Test.php.in +123 -0
  844. data/ext/native/src/wrappers/php/tests/VirgilPBE_Test.php.in +84 -0
  845. data/ext/native/src/wrappers/php/tests/VirgilPBKDF_Test.php.in +66 -0
  846. data/ext/native/src/wrappers/php/tests/VirgilRandom_Test.php.in +56 -0
  847. data/ext/native/src/wrappers/php/tests/VirgilSigner_Test.php.in +211 -0
  848. data/ext/native/src/wrappers/php/tests/VirgilStreamCipher_Test.php.in +207 -0
  849. data/ext/native/src/wrappers/php/tests/VirgilStreamSigner_Test.php.in +212 -0
  850. data/ext/native/src/wrappers/php/tests/VirgilSymmetricCipher_Test.php.in +174 -0
  851. data/ext/native/src/wrappers/php/tests/VirgilVersion_Test.php.in +61 -0
  852. data/ext/native/src/wrappers/php/tests/data/CMakeLists.txt +50 -0
  853. data/ext/native/src/wrappers/php/tests/data/asn1_complex.der +0 -0
  854. data/ext/native/src/wrappers/php/tests/data/asn1_custom_tag.der +0 -0
  855. data/ext/native/src/wrappers/php/tests/data/asn1_integer.der +1 -0
  856. data/ext/native/src/wrappers/php/tests/data/asn1_octet_string.der +0 -0
  857. data/ext/native/src/wrappers/php/tests/data/asn1_sequence.der +0 -0
  858. data/ext/native/src/wrappers/php/tests/data/asn1_utf8_string.der +1 -0
  859. data/ext/native/src/wrappers/php/tests/data/certificate_public_key.pem +6 -0
  860. data/ext/native/src/wrappers/python/CMakeLists.txt +95 -0
  861. data/ext/native/src/wrappers/ruby/CMakeLists.txt +84 -0
  862. data/ext/native/src/wrappers/swig/common.i +119 -0
  863. data/ext/native/src/wrappers/swig/csharp/FixedArray.i +347 -0
  864. data/ext/native/src/wrappers/swig/csharp/VirgilByteArray.i +38 -0
  865. data/ext/native/src/wrappers/swig/csharp/common.i +48 -0
  866. data/ext/native/src/wrappers/swig/csharp/csharphead.swg.in +85 -0
  867. data/ext/native/src/wrappers/swig/java/VirgilByteArray.i +158 -0
  868. data/ext/native/src/wrappers/swig/java/common.i +70 -0
  869. data/ext/native/src/wrappers/swig/php/VirgilByteArray.i +107 -0
  870. data/ext/native/src/wrappers/swig/php/common.i +90 -0
  871. data/ext/native/src/wrappers/swig/util.i +85 -0
  872. data/ext/native/src/wrappers/swig/wrapper.i.in +158 -0
  873. data/lib/virgil/crypto.rb +10 -0
  874. data/lib/virgil/crypto/bytes.rb +57 -0
  875. data/lib/virgil/crypto/version.rb +5 -0
  876. data/lib/virgil/crypto/virgil_stream_data_sink.rb +53 -0
  877. data/lib/virgil/crypto/virgil_stream_data_source.rb +54 -0
  878. data/virgil-crypto.gemspec +53 -0
  879. metadata +978 -0
@@ -0,0 +1,138 @@
1
+ /*
2
+ In OpenSSL, opensslconf.h was generated by Configure script with
3
+ specifying a target argument, where it includes several defines that
4
+ depend on OS and architecture platform.
5
+
6
+ In node, we statically mapped --dest-os and --dest-cpu options in
7
+ configure to the target of Configure in OpenSSL and make
8
+ `deps/openssl/conf/openssconf.h` so as to include each file
9
+ according to its target by checking pre-defined compiler macros.
10
+
11
+ Included opnesslconf.h files for supported target architectures can
12
+ be generated by `Makefile` and stored under
13
+ `archs/{target}/opensslconf.h`. The Makefile also fixes several
14
+ defines to meet node build requirements.
15
+
16
+ Here is a map table of configure options in node, target arch of
17
+ Configure in OpenSSL and CI support.
18
+
19
+ | --dest-os | --dest-cpu | OpenSSL target arch | CI |
20
+ | --------- | ---------- | -------------------- | --- |
21
+ | aix | ppc | aix-gcc | o |
22
+ | aix | ppc64 | aix64-gcc | o |
23
+ | linux | ia32 | linux-elf | o |
24
+ | linux | x32 | linux-x32 | - |
25
+ | linux | x64 | linux-x86_64 | o |
26
+ | linux | arm | linux-armv4 | o |
27
+ | linux | arm64 | linux-aarch64 | o |
28
+ | linux | ppc | linux-ppc | o |
29
+ | linux | ppc64 | linux-ppc64 | o |
30
+ | mac | ia32 | darwin-i386-cc | o |
31
+ | mac | x64 | darwin64-x86-cc | o |
32
+ | win | ia32 | VC-WIN32 | - |
33
+ | win | x64 | VC-WIN64A | o |
34
+ | solaris | ia32 | solaris-x86-gcc | o |
35
+ | solaris | x64 | solaris64-x86_64-gcc | o |
36
+ | freebsd | ia32 | BSD-x86 | o |
37
+ | freebsd | x64 | BSD-x86_64 | o |
38
+ | openbsd | ia32 | BSD-x86 | - |
39
+ | openbsd | x64 | BSD-x86_64 | - |
40
+ | others | others | linux-elf | - |
41
+
42
+ --dest-os and --dest-cpu are mapped to pre-defined macros.
43
+
44
+ | --dest-os | pre-defined macro |
45
+ | ------------------ | ------------------------- |
46
+ | aix | _AIX |
47
+ | win | _WIN32 |
48
+ | win(64bit) | _WIN64 |
49
+ | mac | __APPLE__ && __MACH__ |
50
+ | solaris | __sun |
51
+ | freebsd | __FreeBSD__ |
52
+ | openbsd | __OpenBSD__ |
53
+ | linux (not andorid)| __linux__ && !__ANDROID__ |
54
+ | android | __ANDROID__ |
55
+
56
+ | --dest-cpu | pre-defined macro |
57
+ | ---------- | ----------------- |
58
+ | arm | __arm__ |
59
+ | arm64 | __aarch64__ |
60
+ | ia32 | __i386__ |
61
+ | ia32(win) | _M_IX86 |
62
+ | mips | __mips__ |
63
+ | mipsel | __MIPSEL__ |
64
+ | x32 | __ILP32__ |
65
+ | x64 | __x86_64__ |
66
+ | x64(win) | _M_X64 |
67
+ | ppc | __PPC__ |
68
+ | | _ARCH_PPC |
69
+ | ppc64 | __PPC64__ |
70
+ | | _ARCH_PPC64 |
71
+
72
+ These are the list which is not implemented yet.
73
+
74
+ | --dest-os | --dest-cpu | OpenSSL target arch | CI |
75
+ | --------- | ---------- | -------------------- | --- |
76
+ | linux | mips | linux-mips32,linux-mips64,linux64-mips64? | --- |
77
+ | linux | mipsel | ? | --- |
78
+ | android | ia32 | android-x86 | --- |
79
+ | android | arm | android-armv7 | --- |
80
+ | android | mips | android-mips | --- |
81
+ | android | mipsel | ? | --- |
82
+
83
+ Supported target arch list in OpenSSL can be obtained by typing
84
+ `deps/openssl/openssl/Configure LIST`.
85
+
86
+ */
87
+
88
+ #undef OPENSSL_LINUX
89
+ #if defined(__linux) && !defined(__ANDROID__)
90
+ # define OPENSSL_LINUX 1
91
+ #endif
92
+
93
+ #if defined(OPENSSL_LINUX) && defined(__i386__)
94
+ # include "./archs/linux-elf/opensslconf.h"
95
+ #elif defined(OPENSSL_LINUX) && defined(__ILP32__)
96
+ # include "./archs/linux-x32/opensslconf.h"
97
+ #elif defined(OPENSSL_LINUX) && defined(__x86_64__)
98
+ # include "./archs/linux-x86_64/opensslconf.h"
99
+ #elif defined(OPENSSL_LINUX) && defined(__arm__)
100
+ # include "./archs/linux-armv4/opensslconf.h"
101
+ #elif defined(OPENSSL_LINUX) && defined(__aarch64__)
102
+ # include "./archs/linux-aarch64/opensslconf.h"
103
+ #elif defined(__APPLE__) && defined(__MACH__) && defined(__i386__)
104
+ # include "./archs/darwin-i386-cc/opensslconf.h"
105
+ #elif defined(__APPLE__) && defined(__MACH__) && defined(__x86_64__)
106
+ # include "./archs/darwin64-x86_64-cc/opensslconf.h"
107
+ #elif defined(_WIN32) && defined(_M_IX86)
108
+ # include "./archs/VC-WIN32/opensslconf.h"
109
+ #elif defined(_WIN32) && defined(_M_X64)
110
+ # include "./archs/VC-WIN64A/opensslconf.h"
111
+ #elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__i386__)
112
+ # include "./archs/BSD-x86/opensslconf.h"
113
+ #elif (defined(__FreeBSD__) || defined(__OpenBSD__)) && defined(__x86_64__)
114
+ # include "./archs/BSD-x86_64/opensslconf.h"
115
+ #elif defined(__sun) && defined(__i386__)
116
+ # include "./archs/solaris-x86-gcc/opensslconf.h"
117
+ #elif defined(__sun) && defined(__x86_64__)
118
+ # include "./archs/solaris64-x86_64-gcc/opensslconf.h"
119
+ #elif defined(OPENSSL_LINUX) && defined(__PPC64__)
120
+ # include "./archs/linux-ppc64/opensslconf.h"
121
+ #elif defined(OPENSSL_LINUX) && !defined(__PPC64__) && defined(__ppc__)
122
+ # include "./archs/linux-ppc/opensslconf.h"
123
+ #elif defined(_AIX) && defined(_ARCH_PPC64)
124
+ # include "./archs/aix64-gcc/opensslconf.h"
125
+ #elif defined(_AIX) && !defined(_ARCH_PPC64) && defined(_ARCH_PPC)
126
+ # include "./archs/aix-gcc/opensslconf.h"
127
+ #else
128
+ # include "./archs/linux-elf/opensslconf.h"
129
+ #endif
130
+
131
+ /* GOST is not included in all platform */
132
+ #ifndef OPENSSL_NO_GOST
133
+ # define OPENSSL_NO_GOST
134
+ #endif
135
+ /* HW_PADLOCK is not included in all platform */
136
+ #ifndef OPENSSL_NO_HW_PADLOCK
137
+ # define OPENSSL_NO_HW_PADLOCK
138
+ #endif
@@ -0,0 +1,97 @@
1
+ #ifndef HEADER_OPENSSLV_H
2
+ # define HEADER_OPENSSLV_H
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ /*-
9
+ * Numeric release version identifier:
10
+ * MNNFFPPS: major minor fix patch status
11
+ * The status nibble has one of the values 0 for development, 1 to e for betas
12
+ * 1 to 14, and f for release. The patch level is exactly that.
13
+ * For example:
14
+ * 0.9.3-dev 0x00903000
15
+ * 0.9.3-beta1 0x00903001
16
+ * 0.9.3-beta2-dev 0x00903002
17
+ * 0.9.3-beta2 0x00903002 (same as ...beta2-dev)
18
+ * 0.9.3 0x0090300f
19
+ * 0.9.3a 0x0090301f
20
+ * 0.9.4 0x0090400f
21
+ * 1.2.3z 0x102031af
22
+ *
23
+ * For continuity reasons (because 0.9.5 is already out, and is coded
24
+ * 0x00905100), between 0.9.5 and 0.9.6 the coding of the patch level
25
+ * part is slightly different, by setting the highest bit. This means
26
+ * that 0.9.5a looks like this: 0x0090581f. At 0.9.6, we can start
27
+ * with 0x0090600S...
28
+ *
29
+ * (Prior to 0.9.3-dev a different scheme was used: 0.9.2b is 0x0922.)
30
+ * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for
31
+ * major minor fix final patch/beta)
32
+ */
33
+ # define OPENSSL_VERSION_NUMBER 0x1000204fL
34
+ # ifdef OPENSSL_FIPS
35
+ # define OPENSSL_VERSION_TEXT "OpenSSL 1.0.2d-fips 9 Jul 2015"
36
+ # else
37
+ # define OPENSSL_VERSION_TEXT "OpenSSL 1.0.2d 9 Jul 2015"
38
+ # endif
39
+ # define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT
40
+
41
+ /*-
42
+ * The macros below are to be used for shared library (.so, .dll, ...)
43
+ * versioning. That kind of versioning works a bit differently between
44
+ * operating systems. The most usual scheme is to set a major and a minor
45
+ * number, and have the runtime loader check that the major number is equal
46
+ * to what it was at application link time, while the minor number has to
47
+ * be greater or equal to what it was at application link time. With this
48
+ * scheme, the version number is usually part of the file name, like this:
49
+ *
50
+ * libcrypto.so.0.9
51
+ *
52
+ * Some unixen also make a softlink with the major verson number only:
53
+ *
54
+ * libcrypto.so.0
55
+ *
56
+ * On Tru64 and IRIX 6.x it works a little bit differently. There, the
57
+ * shared library version is stored in the file, and is actually a series
58
+ * of versions, separated by colons. The rightmost version present in the
59
+ * library when linking an application is stored in the application to be
60
+ * matched at run time. When the application is run, a check is done to
61
+ * see if the library version stored in the application matches any of the
62
+ * versions in the version string of the library itself.
63
+ * This version string can be constructed in any way, depending on what
64
+ * kind of matching is desired. However, to implement the same scheme as
65
+ * the one used in the other unixen, all compatible versions, from lowest
66
+ * to highest, should be part of the string. Consecutive builds would
67
+ * give the following versions strings:
68
+ *
69
+ * 3.0
70
+ * 3.0:3.1
71
+ * 3.0:3.1:3.2
72
+ * 4.0
73
+ * 4.0:4.1
74
+ *
75
+ * Notice how version 4 is completely incompatible with version, and
76
+ * therefore give the breach you can see.
77
+ *
78
+ * There may be other schemes as well that I haven't yet discovered.
79
+ *
80
+ * So, here's the way it works here: first of all, the library version
81
+ * number doesn't need at all to match the overall OpenSSL version.
82
+ * However, it's nice and more understandable if it actually does.
83
+ * The current library version is stored in the macro SHLIB_VERSION_NUMBER,
84
+ * which is just a piece of text in the format "M.m.e" (Major, minor, edit).
85
+ * For the sake of Tru64, IRIX, and any other OS that behaves in similar ways,
86
+ * we need to keep a history of version numbers, which is done in the
87
+ * macro SHLIB_VERSION_HISTORY. The numbers are separated by colons and
88
+ * should only keep the versions that are binary compatible with the current.
89
+ */
90
+ # define SHLIB_VERSION_HISTORY ""
91
+ # define SHLIB_VERSION_NUMBER "1.0.0"
92
+
93
+
94
+ #ifdef __cplusplus
95
+ }
96
+ #endif
97
+ #endif /* HEADER_OPENSSLV_H */
@@ -0,0 +1,211 @@
1
+ /* ====================================================================
2
+ * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
3
+ *
4
+ * Redistribution and use in source and binary forms, with or without
5
+ * modification, are permitted provided that the following conditions
6
+ * are met:
7
+ *
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ * notice, this list of conditions and the following disclaimer.
10
+ *
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in
13
+ * the documentation and/or other materials provided with the
14
+ * distribution.
15
+ *
16
+ * 3. All advertising materials mentioning features or use of this
17
+ * software must display the following acknowledgment:
18
+ * "This product includes software developed by the OpenSSL Project
19
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
20
+ *
21
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
22
+ * endorse or promote products derived from this software without
23
+ * prior written permission. For written permission, please contact
24
+ * openssl-core@openssl.org.
25
+ *
26
+ * 5. Products derived from this software may not be called "OpenSSL"
27
+ * nor may "OpenSSL" appear in their names without prior written
28
+ * permission of the OpenSSL Project.
29
+ *
30
+ * 6. Redistributions of any form whatsoever must retain the following
31
+ * acknowledgment:
32
+ * "This product includes software developed by the OpenSSL Project
33
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
34
+ *
35
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
36
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
38
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
39
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
42
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
43
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
44
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
46
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
47
+ * ====================================================================
48
+ *
49
+ * This product includes cryptographic software written by Eric Young
50
+ * (eay@cryptsoft.com). This product includes software written by Tim
51
+ * Hudson (tjh@cryptsoft.com).
52
+ *
53
+ */
54
+
55
+ #ifndef HEADER_OPENSSL_TYPES_H
56
+ # define HEADER_OPENSSL_TYPES_H
57
+
58
+ #ifdef __cplusplus
59
+ extern "C" {
60
+ #endif
61
+
62
+ # include <openssl/e_os2.h>
63
+
64
+ # ifdef NO_ASN1_TYPEDEFS
65
+ # define ASN1_INTEGER ASN1_STRING
66
+ # define ASN1_ENUMERATED ASN1_STRING
67
+ # define ASN1_BIT_STRING ASN1_STRING
68
+ # define ASN1_OCTET_STRING ASN1_STRING
69
+ # define ASN1_PRINTABLESTRING ASN1_STRING
70
+ # define ASN1_T61STRING ASN1_STRING
71
+ # define ASN1_IA5STRING ASN1_STRING
72
+ # define ASN1_UTCTIME ASN1_STRING
73
+ # define ASN1_GENERALIZEDTIME ASN1_STRING
74
+ # define ASN1_TIME ASN1_STRING
75
+ # define ASN1_GENERALSTRING ASN1_STRING
76
+ # define ASN1_UNIVERSALSTRING ASN1_STRING
77
+ # define ASN1_BMPSTRING ASN1_STRING
78
+ # define ASN1_VISIBLESTRING ASN1_STRING
79
+ # define ASN1_UTF8STRING ASN1_STRING
80
+ # define ASN1_BOOLEAN int
81
+ # define ASN1_NULL int
82
+ # else
83
+ typedef struct asn1_string_st ASN1_INTEGER;
84
+ typedef struct asn1_string_st ASN1_ENUMERATED;
85
+ typedef struct asn1_string_st ASN1_BIT_STRING;
86
+ typedef struct asn1_string_st ASN1_OCTET_STRING;
87
+ typedef struct asn1_string_st ASN1_PRINTABLESTRING;
88
+ typedef struct asn1_string_st ASN1_T61STRING;
89
+ typedef struct asn1_string_st ASN1_IA5STRING;
90
+ typedef struct asn1_string_st ASN1_GENERALSTRING;
91
+ typedef struct asn1_string_st ASN1_UNIVERSALSTRING;
92
+ typedef struct asn1_string_st ASN1_BMPSTRING;
93
+ typedef struct asn1_string_st ASN1_UTCTIME;
94
+ typedef struct asn1_string_st ASN1_TIME;
95
+ typedef struct asn1_string_st ASN1_GENERALIZEDTIME;
96
+ typedef struct asn1_string_st ASN1_VISIBLESTRING;
97
+ typedef struct asn1_string_st ASN1_UTF8STRING;
98
+ typedef struct asn1_string_st ASN1_STRING;
99
+ typedef int ASN1_BOOLEAN;
100
+ typedef int ASN1_NULL;
101
+ # endif
102
+
103
+ typedef struct asn1_object_st ASN1_OBJECT;
104
+
105
+ typedef struct ASN1_ITEM_st ASN1_ITEM;
106
+ typedef struct asn1_pctx_st ASN1_PCTX;
107
+
108
+ # ifdef OPENSSL_SYS_WIN32
109
+ # undef X509_NAME
110
+ # undef X509_EXTENSIONS
111
+ # undef X509_CERT_PAIR
112
+ # undef PKCS7_ISSUER_AND_SERIAL
113
+ # undef OCSP_REQUEST
114
+ # undef OCSP_RESPONSE
115
+ # endif
116
+
117
+ # ifdef BIGNUM
118
+ # undef BIGNUM
119
+ # endif
120
+ typedef struct bignum_st BIGNUM;
121
+ typedef struct bignum_ctx BN_CTX;
122
+ typedef struct bn_blinding_st BN_BLINDING;
123
+ typedef struct bn_mont_ctx_st BN_MONT_CTX;
124
+ typedef struct bn_recp_ctx_st BN_RECP_CTX;
125
+ typedef struct bn_gencb_st BN_GENCB;
126
+
127
+ typedef struct buf_mem_st BUF_MEM;
128
+
129
+ typedef struct evp_cipher_st EVP_CIPHER;
130
+ typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
131
+ typedef struct env_md_st EVP_MD;
132
+ typedef struct env_md_ctx_st EVP_MD_CTX;
133
+ typedef struct evp_pkey_st EVP_PKEY;
134
+
135
+ typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD;
136
+
137
+ typedef struct evp_pkey_method_st EVP_PKEY_METHOD;
138
+ typedef struct evp_pkey_ctx_st EVP_PKEY_CTX;
139
+
140
+ typedef struct dh_st DH;
141
+ typedef struct dh_method DH_METHOD;
142
+
143
+ typedef struct dsa_st DSA;
144
+ typedef struct dsa_method DSA_METHOD;
145
+
146
+ typedef struct rsa_st RSA;
147
+ typedef struct rsa_meth_st RSA_METHOD;
148
+
149
+ typedef struct rand_meth_st RAND_METHOD;
150
+
151
+ typedef struct ecdh_method ECDH_METHOD;
152
+ typedef struct ecdsa_method ECDSA_METHOD;
153
+
154
+ typedef struct x509_st X509;
155
+ typedef struct X509_algor_st X509_ALGOR;
156
+ typedef struct X509_crl_st X509_CRL;
157
+ typedef struct x509_crl_method_st X509_CRL_METHOD;
158
+ typedef struct x509_revoked_st X509_REVOKED;
159
+ typedef struct X509_name_st X509_NAME;
160
+ typedef struct X509_pubkey_st X509_PUBKEY;
161
+ typedef struct x509_store_st X509_STORE;
162
+ typedef struct x509_store_ctx_st X509_STORE_CTX;
163
+
164
+ typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO;
165
+
166
+ typedef struct v3_ext_ctx X509V3_CTX;
167
+ typedef struct conf_st CONF;
168
+
169
+ typedef struct store_st STORE;
170
+ typedef struct store_method_st STORE_METHOD;
171
+
172
+ typedef struct ui_st UI;
173
+ typedef struct ui_method_st UI_METHOD;
174
+
175
+ typedef struct st_ERR_FNS ERR_FNS;
176
+
177
+ typedef struct engine_st ENGINE;
178
+ typedef struct ssl_st SSL;
179
+ typedef struct ssl_ctx_st SSL_CTX;
180
+
181
+ typedef struct X509_POLICY_NODE_st X509_POLICY_NODE;
182
+ typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;
183
+ typedef struct X509_POLICY_TREE_st X509_POLICY_TREE;
184
+ typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;
185
+
186
+ typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID;
187
+ typedef struct DIST_POINT_st DIST_POINT;
188
+ typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;
189
+ typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;
190
+
191
+ /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */
192
+ # define DECLARE_PKCS12_STACK_OF(type)/* Nothing */
193
+ # define IMPLEMENT_PKCS12_STACK_OF(type)/* Nothing */
194
+
195
+ typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
196
+ /* Callback types for crypto.h */
197
+ typedef int CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
198
+ int idx, long argl, void *argp);
199
+ typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
200
+ int idx, long argl, void *argp);
201
+ typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from,
202
+ void *from_d, int idx, long argl, void *argp);
203
+
204
+ typedef struct ocsp_req_ctx_st OCSP_REQ_CTX;
205
+ typedef struct ocsp_response_st OCSP_RESPONSE;
206
+ typedef struct ocsp_responder_id_st OCSP_RESPID;
207
+
208
+ #ifdef __cplusplus
209
+ }
210
+ #endif
211
+ #endif /* def HEADER_OPENSSL_TYPES_H */
@@ -0,0 +1,615 @@
1
+ /* crypto/pem/pem.h */
2
+ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3
+ * All rights reserved.
4
+ *
5
+ * This package is an SSL implementation written
6
+ * by Eric Young (eay@cryptsoft.com).
7
+ * The implementation was written so as to conform with Netscapes SSL.
8
+ *
9
+ * This library is free for commercial and non-commercial use as long as
10
+ * the following conditions are aheared to. The following conditions
11
+ * apply to all code found in this distribution, be it the RC4, RSA,
12
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13
+ * included with this distribution is covered by the same copyright terms
14
+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15
+ *
16
+ * Copyright remains Eric Young's, and as such any Copyright notices in
17
+ * the code are not to be removed.
18
+ * If this package is used in a product, Eric Young should be given attribution
19
+ * as the author of the parts of the library used.
20
+ * This can be in the form of a textual message at program startup or
21
+ * in documentation (online or textual) provided with the package.
22
+ *
23
+ * Redistribution and use in source and binary forms, with or without
24
+ * modification, are permitted provided that the following conditions
25
+ * are met:
26
+ * 1. Redistributions of source code must retain the copyright
27
+ * notice, this list of conditions and the following disclaimer.
28
+ * 2. Redistributions in binary form must reproduce the above copyright
29
+ * notice, this list of conditions and the following disclaimer in the
30
+ * documentation and/or other materials provided with the distribution.
31
+ * 3. All advertising materials mentioning features or use of this software
32
+ * must display the following acknowledgement:
33
+ * "This product includes cryptographic software written by
34
+ * Eric Young (eay@cryptsoft.com)"
35
+ * The word 'cryptographic' can be left out if the rouines from the library
36
+ * being used are not cryptographic related :-).
37
+ * 4. If you include any Windows specific code (or a derivative thereof) from
38
+ * the apps directory (application code) you must include an acknowledgement:
39
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40
+ *
41
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51
+ * SUCH DAMAGE.
52
+ *
53
+ * The licence and distribution terms for any publically available version or
54
+ * derivative of this code cannot be changed. i.e. this code cannot simply be
55
+ * copied and put under another distribution licence
56
+ * [including the GNU Public Licence.]
57
+ */
58
+
59
+ #ifndef HEADER_PEM_H
60
+ # define HEADER_PEM_H
61
+
62
+ # include <openssl/e_os2.h>
63
+ # ifndef OPENSSL_NO_BIO
64
+ # include <openssl/bio.h>
65
+ # endif
66
+ # ifndef OPENSSL_NO_STACK
67
+ # include <openssl/stack.h>
68
+ # endif
69
+ # include <openssl/evp.h>
70
+ # include <openssl/x509.h>
71
+ # include <openssl/pem2.h>
72
+
73
+ #ifdef __cplusplus
74
+ extern "C" {
75
+ #endif
76
+
77
+ # define PEM_BUFSIZE 1024
78
+
79
+ # define PEM_OBJ_UNDEF 0
80
+ # define PEM_OBJ_X509 1
81
+ # define PEM_OBJ_X509_REQ 2
82
+ # define PEM_OBJ_CRL 3
83
+ # define PEM_OBJ_SSL_SESSION 4
84
+ # define PEM_OBJ_PRIV_KEY 10
85
+ # define PEM_OBJ_PRIV_RSA 11
86
+ # define PEM_OBJ_PRIV_DSA 12
87
+ # define PEM_OBJ_PRIV_DH 13
88
+ # define PEM_OBJ_PUB_RSA 14
89
+ # define PEM_OBJ_PUB_DSA 15
90
+ # define PEM_OBJ_PUB_DH 16
91
+ # define PEM_OBJ_DHPARAMS 17
92
+ # define PEM_OBJ_DSAPARAMS 18
93
+ # define PEM_OBJ_PRIV_RSA_PUBLIC 19
94
+ # define PEM_OBJ_PRIV_ECDSA 20
95
+ # define PEM_OBJ_PUB_ECDSA 21
96
+ # define PEM_OBJ_ECPARAMETERS 22
97
+
98
+ # define PEM_ERROR 30
99
+ # define PEM_DEK_DES_CBC 40
100
+ # define PEM_DEK_IDEA_CBC 45
101
+ # define PEM_DEK_DES_EDE 50
102
+ # define PEM_DEK_DES_ECB 60
103
+ # define PEM_DEK_RSA 70
104
+ # define PEM_DEK_RSA_MD2 80
105
+ # define PEM_DEK_RSA_MD5 90
106
+
107
+ # define PEM_MD_MD2 NID_md2
108
+ # define PEM_MD_MD5 NID_md5
109
+ # define PEM_MD_SHA NID_sha
110
+ # define PEM_MD_MD2_RSA NID_md2WithRSAEncryption
111
+ # define PEM_MD_MD5_RSA NID_md5WithRSAEncryption
112
+ # define PEM_MD_SHA_RSA NID_sha1WithRSAEncryption
113
+
114
+ # define PEM_STRING_X509_OLD "X509 CERTIFICATE"
115
+ # define PEM_STRING_X509 "CERTIFICATE"
116
+ # define PEM_STRING_X509_PAIR "CERTIFICATE PAIR"
117
+ # define PEM_STRING_X509_TRUSTED "TRUSTED CERTIFICATE"
118
+ # define PEM_STRING_X509_REQ_OLD "NEW CERTIFICATE REQUEST"
119
+ # define PEM_STRING_X509_REQ "CERTIFICATE REQUEST"
120
+ # define PEM_STRING_X509_CRL "X509 CRL"
121
+ # define PEM_STRING_EVP_PKEY "ANY PRIVATE KEY"
122
+ # define PEM_STRING_PUBLIC "PUBLIC KEY"
123
+ # define PEM_STRING_RSA "RSA PRIVATE KEY"
124
+ # define PEM_STRING_RSA_PUBLIC "RSA PUBLIC KEY"
125
+ # define PEM_STRING_DSA "DSA PRIVATE KEY"
126
+ # define PEM_STRING_DSA_PUBLIC "DSA PUBLIC KEY"
127
+ # define PEM_STRING_PKCS7 "PKCS7"
128
+ # define PEM_STRING_PKCS7_SIGNED "PKCS #7 SIGNED DATA"
129
+ # define PEM_STRING_PKCS8 "ENCRYPTED PRIVATE KEY"
130
+ # define PEM_STRING_PKCS8INF "PRIVATE KEY"
131
+ # define PEM_STRING_DHPARAMS "DH PARAMETERS"
132
+ # define PEM_STRING_DHXPARAMS "X9.42 DH PARAMETERS"
133
+ # define PEM_STRING_SSL_SESSION "SSL SESSION PARAMETERS"
134
+ # define PEM_STRING_DSAPARAMS "DSA PARAMETERS"
135
+ # define PEM_STRING_ECDSA_PUBLIC "ECDSA PUBLIC KEY"
136
+ # define PEM_STRING_ECPARAMETERS "EC PARAMETERS"
137
+ # define PEM_STRING_ECPRIVATEKEY "EC PRIVATE KEY"
138
+ # define PEM_STRING_PARAMETERS "PARAMETERS"
139
+ # define PEM_STRING_CMS "CMS"
140
+
141
+ /*
142
+ * Note that this structure is initialised by PEM_SealInit and cleaned up
143
+ * by PEM_SealFinal (at least for now)
144
+ */
145
+ typedef struct PEM_Encode_Seal_st {
146
+ EVP_ENCODE_CTX encode;
147
+ EVP_MD_CTX md;
148
+ EVP_CIPHER_CTX cipher;
149
+ } PEM_ENCODE_SEAL_CTX;
150
+
151
+ /* enc_type is one off */
152
+ # define PEM_TYPE_ENCRYPTED 10
153
+ # define PEM_TYPE_MIC_ONLY 20
154
+ # define PEM_TYPE_MIC_CLEAR 30
155
+ # define PEM_TYPE_CLEAR 40
156
+
157
+ typedef struct pem_recip_st {
158
+ char *name;
159
+ X509_NAME *dn;
160
+ int cipher;
161
+ int key_enc;
162
+ /* char iv[8]; unused and wrong size */
163
+ } PEM_USER;
164
+
165
+ typedef struct pem_ctx_st {
166
+ int type; /* what type of object */
167
+ struct {
168
+ int version;
169
+ int mode;
170
+ } proc_type;
171
+
172
+ char *domain;
173
+
174
+ struct {
175
+ int cipher;
176
+ /*-
177
+ unused, and wrong size
178
+ unsigned char iv[8]; */
179
+ } DEK_info;
180
+
181
+ PEM_USER *originator;
182
+
183
+ int num_recipient;
184
+ PEM_USER **recipient;
185
+ /*-
186
+ XXX(ben): don#t think this is used!
187
+ STACK *x509_chain; / * certificate chain */
188
+ EVP_MD *md; /* signature type */
189
+
190
+ int md_enc; /* is the md encrypted or not? */
191
+ int md_len; /* length of md_data */
192
+ char *md_data; /* message digest, could be pkey encrypted */
193
+
194
+ EVP_CIPHER *dec; /* date encryption cipher */
195
+ int key_len; /* key length */
196
+ unsigned char *key; /* key */
197
+ /*-
198
+ unused, and wrong size
199
+ unsigned char iv[8]; */
200
+
201
+ int data_enc; /* is the data encrypted */
202
+ int data_len;
203
+ unsigned char *data;
204
+ } PEM_CTX;
205
+
206
+ /*
207
+ * These macros make the PEM_read/PEM_write functions easier to maintain and
208
+ * write. Now they are all implemented with either: IMPLEMENT_PEM_rw(...) or
209
+ * IMPLEMENT_PEM_rw_cb(...)
210
+ */
211
+
212
+ # ifdef OPENSSL_NO_FP_API
213
+
214
+ # define IMPLEMENT_PEM_read_fp(name, type, str, asn1) /**/
215
+ # define IMPLEMENT_PEM_write_fp(name, type, str, asn1) /**/
216
+ # define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) /**/
217
+ # define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) /**/
218
+ # define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) /**/
219
+ # else
220
+
221
+ # define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \
222
+ type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\
223
+ { \
224
+ return PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \
225
+ }
226
+
227
+ # define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \
228
+ int PEM_write_##name(FILE *fp, type *x) \
229
+ { \
230
+ return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL); \
231
+ }
232
+
233
+ # define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \
234
+ int PEM_write_##name(FILE *fp, const type *x) \
235
+ { \
236
+ return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(void *)x,NULL,NULL,0,NULL,NULL); \
237
+ }
238
+
239
+ # define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \
240
+ int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \
241
+ unsigned char *kstr, int klen, pem_password_cb *cb, \
242
+ void *u) \
243
+ { \
244
+ return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \
245
+ }
246
+
247
+ # define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \
248
+ int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \
249
+ unsigned char *kstr, int klen, pem_password_cb *cb, \
250
+ void *u) \
251
+ { \
252
+ return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \
253
+ }
254
+
255
+ # endif
256
+
257
+ # define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
258
+ type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\
259
+ { \
260
+ return PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \
261
+ }
262
+
263
+ # define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
264
+ int PEM_write_bio_##name(BIO *bp, type *x) \
265
+ { \
266
+ return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL); \
267
+ }
268
+
269
+ # define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
270
+ int PEM_write_bio_##name(BIO *bp, const type *x) \
271
+ { \
272
+ return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,NULL,NULL,0,NULL,NULL); \
273
+ }
274
+
275
+ # define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
276
+ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
277
+ unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
278
+ { \
279
+ return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u); \
280
+ }
281
+
282
+ # define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
283
+ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
284
+ unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
285
+ { \
286
+ return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,enc,kstr,klen,cb,u); \
287
+ }
288
+
289
+ # define IMPLEMENT_PEM_write(name, type, str, asn1) \
290
+ IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
291
+ IMPLEMENT_PEM_write_fp(name, type, str, asn1)
292
+
293
+ # define IMPLEMENT_PEM_write_const(name, type, str, asn1) \
294
+ IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
295
+ IMPLEMENT_PEM_write_fp_const(name, type, str, asn1)
296
+
297
+ # define IMPLEMENT_PEM_write_cb(name, type, str, asn1) \
298
+ IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
299
+ IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)
300
+
301
+ # define IMPLEMENT_PEM_write_cb_const(name, type, str, asn1) \
302
+ IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
303
+ IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1)
304
+
305
+ # define IMPLEMENT_PEM_read(name, type, str, asn1) \
306
+ IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
307
+ IMPLEMENT_PEM_read_fp(name, type, str, asn1)
308
+
309
+ # define IMPLEMENT_PEM_rw(name, type, str, asn1) \
310
+ IMPLEMENT_PEM_read(name, type, str, asn1) \
311
+ IMPLEMENT_PEM_write(name, type, str, asn1)
312
+
313
+ # define IMPLEMENT_PEM_rw_const(name, type, str, asn1) \
314
+ IMPLEMENT_PEM_read(name, type, str, asn1) \
315
+ IMPLEMENT_PEM_write_const(name, type, str, asn1)
316
+
317
+ # define IMPLEMENT_PEM_rw_cb(name, type, str, asn1) \
318
+ IMPLEMENT_PEM_read(name, type, str, asn1) \
319
+ IMPLEMENT_PEM_write_cb(name, type, str, asn1)
320
+
321
+ /* These are the same except they are for the declarations */
322
+
323
+ # if defined(OPENSSL_NO_FP_API)
324
+
325
+ # define DECLARE_PEM_read_fp(name, type) /**/
326
+ # define DECLARE_PEM_write_fp(name, type) /**/
327
+ # define DECLARE_PEM_write_cb_fp(name, type) /**/
328
+ # else
329
+
330
+ # define DECLARE_PEM_read_fp(name, type) \
331
+ type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u);
332
+
333
+ # define DECLARE_PEM_write_fp(name, type) \
334
+ int PEM_write_##name(FILE *fp, type *x);
335
+
336
+ # define DECLARE_PEM_write_fp_const(name, type) \
337
+ int PEM_write_##name(FILE *fp, const type *x);
338
+
339
+ # define DECLARE_PEM_write_cb_fp(name, type) \
340
+ int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \
341
+ unsigned char *kstr, int klen, pem_password_cb *cb, void *u);
342
+
343
+ # endif
344
+
345
+ # ifndef OPENSSL_NO_BIO
346
+ # define DECLARE_PEM_read_bio(name, type) \
347
+ type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u);
348
+
349
+ # define DECLARE_PEM_write_bio(name, type) \
350
+ int PEM_write_bio_##name(BIO *bp, type *x);
351
+
352
+ # define DECLARE_PEM_write_bio_const(name, type) \
353
+ int PEM_write_bio_##name(BIO *bp, const type *x);
354
+
355
+ # define DECLARE_PEM_write_cb_bio(name, type) \
356
+ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
357
+ unsigned char *kstr, int klen, pem_password_cb *cb, void *u);
358
+
359
+ # else
360
+
361
+ # define DECLARE_PEM_read_bio(name, type) /**/
362
+ # define DECLARE_PEM_write_bio(name, type) /**/
363
+ # define DECLARE_PEM_write_bio_const(name, type) /**/
364
+ # define DECLARE_PEM_write_cb_bio(name, type) /**/
365
+ # endif
366
+ # define DECLARE_PEM_write(name, type) \
367
+ DECLARE_PEM_write_bio(name, type) \
368
+ DECLARE_PEM_write_fp(name, type)
369
+ # define DECLARE_PEM_write_const(name, type) \
370
+ DECLARE_PEM_write_bio_const(name, type) \
371
+ DECLARE_PEM_write_fp_const(name, type)
372
+ # define DECLARE_PEM_write_cb(name, type) \
373
+ DECLARE_PEM_write_cb_bio(name, type) \
374
+ DECLARE_PEM_write_cb_fp(name, type)
375
+ # define DECLARE_PEM_read(name, type) \
376
+ DECLARE_PEM_read_bio(name, type) \
377
+ DECLARE_PEM_read_fp(name, type)
378
+ # define DECLARE_PEM_rw(name, type) \
379
+ DECLARE_PEM_read(name, type) \
380
+ DECLARE_PEM_write(name, type)
381
+ # define DECLARE_PEM_rw_const(name, type) \
382
+ DECLARE_PEM_read(name, type) \
383
+ DECLARE_PEM_write_const(name, type)
384
+ # define DECLARE_PEM_rw_cb(name, type) \
385
+ DECLARE_PEM_read(name, type) \
386
+ DECLARE_PEM_write_cb(name, type)
387
+ # if 1
388
+ /* "userdata": new with OpenSSL 0.9.4 */
389
+ typedef int pem_password_cb (char *buf, int size, int rwflag, void *userdata);
390
+ # else
391
+ /* OpenSSL 0.9.3, 0.9.3a */
392
+ typedef int pem_password_cb (char *buf, int size, int rwflag);
393
+ # endif
394
+
395
+ int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher);
396
+ int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *len,
397
+ pem_password_cb *callback, void *u);
398
+
399
+ # ifndef OPENSSL_NO_BIO
400
+ int PEM_read_bio(BIO *bp, char **name, char **header,
401
+ unsigned char **data, long *len);
402
+ int PEM_write_bio(BIO *bp, const char *name, const char *hdr,
403
+ const unsigned char *data, long len);
404
+ int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm,
405
+ const char *name, BIO *bp, pem_password_cb *cb,
406
+ void *u);
407
+ void *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,
408
+ pem_password_cb *cb, void *u);
409
+ int PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x,
410
+ const EVP_CIPHER *enc, unsigned char *kstr, int klen,
411
+ pem_password_cb *cb, void *u);
412
+
413
+ STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk,
414
+ pem_password_cb *cb, void *u);
415
+ int PEM_X509_INFO_write_bio(BIO *bp, X509_INFO *xi, EVP_CIPHER *enc,
416
+ unsigned char *kstr, int klen,
417
+ pem_password_cb *cd, void *u);
418
+ # endif
419
+
420
+ int PEM_read(FILE *fp, char **name, char **header,
421
+ unsigned char **data, long *len);
422
+ int PEM_write(FILE *fp, const char *name, const char *hdr,
423
+ const unsigned char *data, long len);
424
+ void *PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x,
425
+ pem_password_cb *cb, void *u);
426
+ int PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp,
427
+ void *x, const EVP_CIPHER *enc, unsigned char *kstr,
428
+ int klen, pem_password_cb *callback, void *u);
429
+ STACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk,
430
+ pem_password_cb *cb, void *u);
431
+
432
+ int PEM_SealInit(PEM_ENCODE_SEAL_CTX *ctx, EVP_CIPHER *type,
433
+ EVP_MD *md_type, unsigned char **ek, int *ekl,
434
+ unsigned char *iv, EVP_PKEY **pubk, int npubk);
435
+ void PEM_SealUpdate(PEM_ENCODE_SEAL_CTX *ctx, unsigned char *out, int *outl,
436
+ unsigned char *in, int inl);
437
+ int PEM_SealFinal(PEM_ENCODE_SEAL_CTX *ctx, unsigned char *sig, int *sigl,
438
+ unsigned char *out, int *outl, EVP_PKEY *priv);
439
+
440
+ void PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type);
441
+ void PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);
442
+ int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
443
+ unsigned int *siglen, EVP_PKEY *pkey);
444
+
445
+ int PEM_def_callback(char *buf, int num, int w, void *key);
446
+ void PEM_proc_type(char *buf, int type);
447
+ void PEM_dek_info(char *buf, const char *type, int len, char *str);
448
+
449
+ # include <openssl/symhacks.h>
450
+
451
+ DECLARE_PEM_rw(X509, X509)
452
+ DECLARE_PEM_rw(X509_AUX, X509)
453
+ DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
454
+ DECLARE_PEM_rw(X509_REQ, X509_REQ)
455
+ DECLARE_PEM_write(X509_REQ_NEW, X509_REQ)
456
+ DECLARE_PEM_rw(X509_CRL, X509_CRL)
457
+ DECLARE_PEM_rw(PKCS7, PKCS7)
458
+ DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE)
459
+ DECLARE_PEM_rw(PKCS8, X509_SIG)
460
+ DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO)
461
+ # ifndef OPENSSL_NO_RSA
462
+ DECLARE_PEM_rw_cb(RSAPrivateKey, RSA)
463
+ DECLARE_PEM_rw_const(RSAPublicKey, RSA)
464
+ DECLARE_PEM_rw(RSA_PUBKEY, RSA)
465
+ # endif
466
+ # ifndef OPENSSL_NO_DSA
467
+ DECLARE_PEM_rw_cb(DSAPrivateKey, DSA)
468
+ DECLARE_PEM_rw(DSA_PUBKEY, DSA)
469
+ DECLARE_PEM_rw_const(DSAparams, DSA)
470
+ # endif
471
+ # ifndef OPENSSL_NO_EC
472
+ DECLARE_PEM_rw_const(ECPKParameters, EC_GROUP)
473
+ DECLARE_PEM_rw_cb(ECPrivateKey, EC_KEY)
474
+ DECLARE_PEM_rw(EC_PUBKEY, EC_KEY)
475
+ # endif
476
+ # ifndef OPENSSL_NO_DH
477
+ DECLARE_PEM_rw_const(DHparams, DH)
478
+ DECLARE_PEM_write_const(DHxparams, DH)
479
+ # endif
480
+ DECLARE_PEM_rw_cb(PrivateKey, EVP_PKEY)
481
+ DECLARE_PEM_rw(PUBKEY, EVP_PKEY)
482
+
483
+ int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,
484
+ char *kstr, int klen,
485
+ pem_password_cb *cb, void *u);
486
+ int PEM_write_bio_PKCS8PrivateKey(BIO *, EVP_PKEY *, const EVP_CIPHER *,
487
+ char *, int, pem_password_cb *, void *);
488
+ int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
489
+ char *kstr, int klen,
490
+ pem_password_cb *cb, void *u);
491
+ int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid,
492
+ char *kstr, int klen,
493
+ pem_password_cb *cb, void *u);
494
+ EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb,
495
+ void *u);
496
+
497
+ int i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,
498
+ char *kstr, int klen,
499
+ pem_password_cb *cb, void *u);
500
+ int i2d_PKCS8PrivateKey_nid_fp(FILE *fp, EVP_PKEY *x, int nid,
501
+ char *kstr, int klen,
502
+ pem_password_cb *cb, void *u);
503
+ int PEM_write_PKCS8PrivateKey_nid(FILE *fp, EVP_PKEY *x, int nid,
504
+ char *kstr, int klen,
505
+ pem_password_cb *cb, void *u);
506
+
507
+ EVP_PKEY *d2i_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY **x, pem_password_cb *cb,
508
+ void *u);
509
+
510
+ int PEM_write_PKCS8PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,
511
+ char *kstr, int klen, pem_password_cb *cd,
512
+ void *u);
513
+
514
+ EVP_PKEY *PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x);
515
+ int PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x);
516
+
517
+ EVP_PKEY *b2i_PrivateKey(const unsigned char **in, long length);
518
+ EVP_PKEY *b2i_PublicKey(const unsigned char **in, long length);
519
+ EVP_PKEY *b2i_PrivateKey_bio(BIO *in);
520
+ EVP_PKEY *b2i_PublicKey_bio(BIO *in);
521
+ int i2b_PrivateKey_bio(BIO *out, EVP_PKEY *pk);
522
+ int i2b_PublicKey_bio(BIO *out, EVP_PKEY *pk);
523
+ # ifndef OPENSSL_NO_RC4
524
+ EVP_PKEY *b2i_PVK_bio(BIO *in, pem_password_cb *cb, void *u);
525
+ int i2b_PVK_bio(BIO *out, EVP_PKEY *pk, int enclevel,
526
+ pem_password_cb *cb, void *u);
527
+ # endif
528
+
529
+ /* BEGIN ERROR CODES */
530
+ /*
531
+ * The following lines are auto generated by the script mkerr.pl. Any changes
532
+ * made after this point may be overwritten when the script is next run.
533
+ */
534
+ void ERR_load_PEM_strings(void);
535
+
536
+ /* Error codes for the PEM functions. */
537
+
538
+ /* Function codes. */
539
+ # define PEM_F_B2I_DSS 127
540
+ # define PEM_F_B2I_PVK_BIO 128
541
+ # define PEM_F_B2I_RSA 129
542
+ # define PEM_F_CHECK_BITLEN_DSA 130
543
+ # define PEM_F_CHECK_BITLEN_RSA 131
544
+ # define PEM_F_D2I_PKCS8PRIVATEKEY_BIO 120
545
+ # define PEM_F_D2I_PKCS8PRIVATEKEY_FP 121
546
+ # define PEM_F_DO_B2I 132
547
+ # define PEM_F_DO_B2I_BIO 133
548
+ # define PEM_F_DO_BLOB_HEADER 134
549
+ # define PEM_F_DO_PK8PKEY 126
550
+ # define PEM_F_DO_PK8PKEY_FP 125
551
+ # define PEM_F_DO_PVK_BODY 135
552
+ # define PEM_F_DO_PVK_HEADER 136
553
+ # define PEM_F_I2B_PVK 137
554
+ # define PEM_F_I2B_PVK_BIO 138
555
+ # define PEM_F_LOAD_IV 101
556
+ # define PEM_F_PEM_ASN1_READ 102
557
+ # define PEM_F_PEM_ASN1_READ_BIO 103
558
+ # define PEM_F_PEM_ASN1_WRITE 104
559
+ # define PEM_F_PEM_ASN1_WRITE_BIO 105
560
+ # define PEM_F_PEM_DEF_CALLBACK 100
561
+ # define PEM_F_PEM_DO_HEADER 106
562
+ # define PEM_F_PEM_F_PEM_WRITE_PKCS8PRIVATEKEY 118
563
+ # define PEM_F_PEM_GET_EVP_CIPHER_INFO 107
564
+ # define PEM_F_PEM_PK8PKEY 119
565
+ # define PEM_F_PEM_READ 108
566
+ # define PEM_F_PEM_READ_BIO 109
567
+ # define PEM_F_PEM_READ_BIO_DHPARAMS 141
568
+ # define PEM_F_PEM_READ_BIO_PARAMETERS 140
569
+ # define PEM_F_PEM_READ_BIO_PRIVATEKEY 123
570
+ # define PEM_F_PEM_READ_DHPARAMS 142
571
+ # define PEM_F_PEM_READ_PRIVATEKEY 124
572
+ # define PEM_F_PEM_SEALFINAL 110
573
+ # define PEM_F_PEM_SEALINIT 111
574
+ # define PEM_F_PEM_SIGNFINAL 112
575
+ # define PEM_F_PEM_WRITE 113
576
+ # define PEM_F_PEM_WRITE_BIO 114
577
+ # define PEM_F_PEM_WRITE_PRIVATEKEY 139
578
+ # define PEM_F_PEM_X509_INFO_READ 115
579
+ # define PEM_F_PEM_X509_INFO_READ_BIO 116
580
+ # define PEM_F_PEM_X509_INFO_WRITE_BIO 117
581
+
582
+ /* Reason codes. */
583
+ # define PEM_R_BAD_BASE64_DECODE 100
584
+ # define PEM_R_BAD_DECRYPT 101
585
+ # define PEM_R_BAD_END_LINE 102
586
+ # define PEM_R_BAD_IV_CHARS 103
587
+ # define PEM_R_BAD_MAGIC_NUMBER 116
588
+ # define PEM_R_BAD_PASSWORD_READ 104
589
+ # define PEM_R_BAD_VERSION_NUMBER 117
590
+ # define PEM_R_BIO_WRITE_FAILURE 118
591
+ # define PEM_R_CIPHER_IS_NULL 127
592
+ # define PEM_R_ERROR_CONVERTING_PRIVATE_KEY 115
593
+ # define PEM_R_EXPECTING_PRIVATE_KEY_BLOB 119
594
+ # define PEM_R_EXPECTING_PUBLIC_KEY_BLOB 120
595
+ # define PEM_R_INCONSISTENT_HEADER 121
596
+ # define PEM_R_KEYBLOB_HEADER_PARSE_ERROR 122
597
+ # define PEM_R_KEYBLOB_TOO_SHORT 123
598
+ # define PEM_R_NOT_DEK_INFO 105
599
+ # define PEM_R_NOT_ENCRYPTED 106
600
+ # define PEM_R_NOT_PROC_TYPE 107
601
+ # define PEM_R_NO_START_LINE 108
602
+ # define PEM_R_PROBLEMS_GETTING_PASSWORD 109
603
+ # define PEM_R_PUBLIC_KEY_NO_RSA 110
604
+ # define PEM_R_PVK_DATA_TOO_SHORT 124
605
+ # define PEM_R_PVK_TOO_SHORT 125
606
+ # define PEM_R_READ_KEY 111
607
+ # define PEM_R_SHORT_HEADER 112
608
+ # define PEM_R_UNSUPPORTED_CIPHER 113
609
+ # define PEM_R_UNSUPPORTED_ENCRYPTION 114
610
+ # define PEM_R_UNSUPPORTED_KEY_COMPONENTS 126
611
+
612
+ #ifdef __cplusplus
613
+ }
614
+ #endif
615
+ #endif