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.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.gitmodules +3 -0
- data/Gemfile +4 -0
- data/README.md +36 -0
- data/Rakefile +12 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ext/native/extconf.rb +25 -0
- data/ext/native/src/.gitignore +17 -0
- data/ext/native/src/.travis.yml +50 -0
- data/ext/native/src/CMakeLists.txt +336 -0
- data/ext/native/src/ChangeLog +440 -0
- data/ext/native/src/Jenkinsfile +208 -0
- data/ext/native/src/LICENSE +33 -0
- data/ext/native/src/README.md +195 -0
- data/ext/native/src/VERSION +1 -0
- data/ext/native/src/benchmark/CMakeLists.txt +52 -0
- data/ext/native/src/benchmark/benchmark_cipher.cxx +99 -0
- data/ext/native/src/benchmark/benchmark_hash.cxx +85 -0
- data/ext/native/src/benchmark/benchmark_signer.cxx +89 -0
- data/ext/native/src/benchmark/benchpress.hpp +464 -0
- data/ext/native/src/benchmark/cxxopts.hpp +1312 -0
- data/ext/native/src/ci/configure.sh +71 -0
- data/ext/native/src/ci/install-cmake.sh +48 -0
- data/ext/native/src/ci/install-credentials.sh +45 -0
- data/ext/native/src/ci/install-doxygen.sh +48 -0
- data/ext/native/src/ci/install-phpunit.sh +47 -0
- data/ext/native/src/ci/install-swig.sh +47 -0
- data/ext/native/src/ci/publish-docs.sh +125 -0
- data/ext/native/src/ci/run.sh +55 -0
- data/ext/native/src/ci/travis_ci_rsa.enc +0 -0
- data/ext/native/src/cmake/android.toolchain.cmake +1697 -0
- data/ext/native/src/cmake/apple.toolchain.cmake +323 -0
- data/ext/native/src/cmake/aux_source_directory_to_file.cmake +70 -0
- data/ext/native/src/cmake/check_pointer_size.cmake +64 -0
- data/ext/native/src/cmake/cmake_args.cmake +64 -0
- data/ext/native/src/cmake/copy_all_files.cmake +70 -0
- data/ext/native/src/cmake/file_regex_replace.cmake +69 -0
- data/ext/native/src/cmake/find_host_utils.cmake +54 -0
- data/ext/native/src/cmake/pnacl.toolchain.cmake +87 -0
- data/ext/native/src/cmake/uppercase_first_char.cmake +45 -0
- data/ext/native/src/cmake/uppercase_namespaces.cmake +86 -0
- data/ext/native/src/cmake/virgil_depends.cmake +53 -0
- data/ext/native/src/cmake/virgil_depends_local.cmake +325 -0
- data/ext/native/src/docs/.gitignore +0 -0
- data/ext/native/src/lib/CMakeLists.txt +162 -0
- data/ext/native/src/lib/Doxyfile.in +2310 -0
- data/ext/native/src/lib/cmake/config.cmake.in +40 -0
- data/ext/native/src/lib/include/CMakeLists.txt +68 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilByteArray.h +143 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilByteArrayUtils.h +121 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilChunkCipher.h +117 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilCipher.h +93 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilCipherBase.h +302 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilCryptoError.h +136 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilCryptoException.h +117 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilCustomParams.h +159 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilDataSink.h +77 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilDataSource.h +66 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilKeyPair.h +274 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilSigner.h +84 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilStreamCipher.h +99 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilStreamSigner.h +80 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilTinyCipher.h +283 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilVersion.h +88 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilAsymmetricCipher.h +395 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilBase64.h +70 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilHash.h +261 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilKDF.h +175 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilPBE.h +164 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilPBKDF.h +198 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilRandom.h +121 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilSymmetricCipher.h +305 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilSystemCryptoError.h +149 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Compatible.h +100 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Reader.h +179 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Writer.h +241 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/internal/VirgilAsn1Alg.h +114 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSContent.h +113 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSContentInfo.h +91 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSEncryptedContent.h +90 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSEnvelopedData.h +116 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSKeyTransRecipient.h +103 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSPasswordRecipient.h +98 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/internal/VirgilOID.h +81 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/internal/VirgilTagFilter.h +95 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/internal/mbedtls_context.h +93 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/internal/mbedtls_context_policy_spec.h +231 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/internal/mbedtls_type_utils.h +407 -0
- data/ext/native/src/lib/include/virgil/crypto/internal/utils.h +58 -0
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilBytesDataSink.h +84 -0
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilBytesDataSource.h +90 -0
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilStreamDataSink.h +79 -0
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilStreamDataSource.h +84 -0
- data/ext/native/src/lib/mainpage.dox +60 -0
- data/ext/native/src/lib/src/VirgilAsn1Alg.cxx +122 -0
- data/ext/native/src/lib/src/VirgilAsn1Compatible.cxx +67 -0
- data/ext/native/src/lib/src/VirgilAsn1Reader.cxx +190 -0
- data/ext/native/src/lib/src/VirgilAsn1Writer.cxx +329 -0
- data/ext/native/src/lib/src/VirgilAsymmetricCipher.cxx +633 -0
- data/ext/native/src/lib/src/VirgilBase64.cxx +94 -0
- data/ext/native/src/lib/src/VirgilByteArrayUtils.cxx +222 -0
- data/ext/native/src/lib/src/VirgilCMSContent.cxx +124 -0
- data/ext/native/src/lib/src/VirgilCMSContentInfo.cxx +111 -0
- data/ext/native/src/lib/src/VirgilCMSEncryptedContent.cxx +84 -0
- data/ext/native/src/lib/src/VirgilCMSEnvelopedData.cxx +131 -0
- data/ext/native/src/lib/src/VirgilCMSKeyTransRecipient.cxx +96 -0
- data/ext/native/src/lib/src/VirgilCMSPasswordRecipient.cxx +93 -0
- data/ext/native/src/lib/src/VirgilChunkCipher.cxx +215 -0
- data/ext/native/src/lib/src/VirgilCipher.cxx +92 -0
- data/ext/native/src/lib/src/VirgilCipherBase.cxx +340 -0
- data/ext/native/src/lib/src/VirgilCryptoError.cxx +88 -0
- data/ext/native/src/lib/src/VirgilCryptoException.cxx +84 -0
- data/ext/native/src/lib/src/VirgilCustomParams.cxx +193 -0
- data/ext/native/src/lib/src/VirgilDataSink.cxx +46 -0
- data/ext/native/src/lib/src/VirgilHash.cxx +269 -0
- data/ext/native/src/lib/src/VirgilKDF.cxx +209 -0
- data/ext/native/src/lib/src/VirgilKeyPair.cxx +165 -0
- data/ext/native/src/lib/src/VirgilPBE.cxx +215 -0
- data/ext/native/src/lib/src/VirgilPBKDF.cxx +286 -0
- data/ext/native/src/lib/src/VirgilRandom.cxx +112 -0
- data/ext/native/src/lib/src/VirgilSigner.cxx +91 -0
- data/ext/native/src/lib/src/VirgilStreamCipher.cxx +116 -0
- data/ext/native/src/lib/src/VirgilStreamSigner.cxx +98 -0
- data/ext/native/src/lib/src/VirgilSymmetricCipher.cxx +369 -0
- data/ext/native/src/lib/src/VirgilSystemCryptoError.cxx +58 -0
- data/ext/native/src/lib/src/VirgilTagFilter.cxx +76 -0
- data/ext/native/src/lib/src/VirgilTinyCipher.cxx +648 -0
- data/ext/native/src/lib/src/VirgilVersion.cxx.in +28 -0
- data/ext/native/src/lib/src/stream/VirgilBytesDataSink.cxx +61 -0
- data/ext/native/src/lib/src/stream/VirgilBytesDataSource.cxx +68 -0
- data/ext/native/src/lib/src/stream/VirgilStreamDataSink.cxx +57 -0
- data/ext/native/src/lib/src/stream/VirgilStreamDataSource.cxx +68 -0
- data/ext/native/src/libs_ext/mbedtls/configs/config.h +84 -0
- data/ext/native/src/libs_ext/mbedtls/configs/config_desktop.h +13 -0
- data/ext/native/src/libs_ext/mbedtls/configs/config_pnacl.h +8 -0
- data/ext/native/src/libs_ext/mbedtls/mbedtls.cmake +102 -0
- data/ext/native/src/libs_ext/rapidjson/rapidjson.cmake +61 -0
- data/ext/native/src/libs_ext/tinyformat/cmake/config.cmake.in +43 -0
- data/ext/native/src/libs_ext/tinyformat/src/tinyformat.h +1003 -0
- data/ext/native/src/libs_ext/tinyformat/tinyformat.cmake +77 -0
- data/ext/native/src/migration-2.0.md +108 -0
- data/ext/native/src/tests/CMakeLists.txt +50 -0
- data/ext/native/src/tests/catch.hpp +10200 -0
- data/ext/native/src/tests/test_asn1_writer.cxx +268 -0
- data/ext/native/src/tests/test_asymmetric_cipher.cxx +140 -0
- data/ext/native/src/tests/test_base64.cxx +102 -0
- data/ext/native/src/tests/test_byte_array_utils.cxx +102 -0
- data/ext/native/src/tests/test_chunk_cipher.cxx +310 -0
- data/ext/native/src/tests/test_cipher.cxx +402 -0
- data/ext/native/src/tests/test_cipher_base.cxx +353 -0
- data/ext/native/src/tests/test_contract_copy_move.cxx +131 -0
- data/ext/native/src/tests/test_hash.cxx +153 -0
- data/ext/native/src/tests/test_key_pair.cxx +204 -0
- data/ext/native/src/tests/test_pbe.cxx +95 -0
- data/ext/native/src/tests/test_pbkdf.cxx +368 -0
- data/ext/native/src/tests/test_random.cxx +93 -0
- data/ext/native/src/tests/test_runner.cxx +43 -0
- data/ext/native/src/tests/test_signer.cxx +111 -0
- data/ext/native/src/tests/test_stream_cipher.cxx +277 -0
- data/ext/native/src/tests/test_symmetric_cipher.cxx +105 -0
- data/ext/native/src/tests/test_tag_filter.cxx +74 -0
- data/ext/native/src/tests/test_tiny_cipher.cxx +172 -0
- data/ext/native/src/utils/build.bat +274 -0
- data/ext/native/src/utils/build.sh +354 -0
- data/ext/native/src/utils/env.sh +39 -0
- data/ext/native/src/utils/zip.vbs +45 -0
- data/ext/native/src/wrappers/CMakeLists.txt +63 -0
- data/ext/native/src/wrappers/asmjs/CMakeLists.txt +109 -0
- data/ext/native/src/wrappers/asmjs/error.js +41 -0
- data/ext/native/src/wrappers/asmjs/example.html +77 -0
- data/ext/native/src/wrappers/asmjs/helpers.js +155 -0
- data/ext/native/src/wrappers/asmjs/patch_embind.pl +115 -0
- data/ext/native/src/wrappers/asmjs/wrapper.cxx +340 -0
- data/ext/native/src/wrappers/java/CMakeLists.txt +156 -0
- data/ext/native/src/wrappers/java/src/VirgilStreamDataSink.java +62 -0
- data/ext/native/src/wrappers/java/src/VirgilStreamDataSource.java +72 -0
- data/ext/native/src/wrappers/net/CMakeLists.txt +170 -0
- data/ext/native/src/wrappers/net/cmake/FindCSharp.cmake +72 -0
- data/ext/native/src/wrappers/net/cmake/FindDotNetFrameworkSdk.cmake +92 -0
- data/ext/native/src/wrappers/net/cmake/FindMono.cmake +162 -0
- data/ext/native/src/wrappers/net/cmake/UseCSharp.cmake +119 -0
- data/ext/native/src/wrappers/net/cmake/UseDotNetFrameworkSdk.cmake +12 -0
- data/ext/native/src/wrappers/net/cmake/UseMono.cmake +16 -0
- data/ext/native/src/wrappers/net/src/AssemblyInfo.cs +56 -0
- data/ext/native/src/wrappers/net/src/VirgilStreamDataSink.cs +63 -0
- data/ext/native/src/wrappers/net/src/VirgilStreamDataSource.cs +74 -0
- data/ext/native/src/wrappers/nodejs/CMakeLists.txt +134 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/android-ifaddrs.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/ares.h +636 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/ares_version.h +24 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/libplatform/libplatform.h +38 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/nameser.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node.h +447 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_buffer.h +125 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_internals.h +236 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_object_wrap.h +137 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_version.h +69 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/aes.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1.h +1417 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1_mac.h +579 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1t.h +973 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/bio.h +875 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/blowfish.h +130 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/bn.h +957 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/buffer.h +118 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/camellia.h +132 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cast.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cmac.h +82 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cms.h +505 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/comp.h +79 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/conf.h +267 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/conf_api.h +89 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/crypto.h +661 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/des.h +257 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/des_old.h +497 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dh.h +287 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dsa.h +329 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dso.h +451 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dtls1.h +268 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/e_os2.h +328 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ebcdic.h +26 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ec.h +1193 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ecdh.h +127 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ecdsa.h +260 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/engine.h +961 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/err.h +389 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/evp.h +1480 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/hmac.h +109 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/idea.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/krb5_asn.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/kssl.h +197 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/lhash.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/md4.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/md5.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/mdc2.h +94 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/modes.h +153 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/obj_mac.h +4031 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/objects.h +1143 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ocsp.h +626 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/opensslconf.h +333 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/opensslv.h +97 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ossl_typ.h +209 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pem.h +611 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pem2.h +70 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pkcs12.h +342 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pkcs7.h +481 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pqueue.h +99 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rand.h +150 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rc2.h +103 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rc4.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ripemd.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rsa.h +610 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/safestack.h +2536 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/seed.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/sha.h +214 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/srp.h +169 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/srtp.h +148 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl.h +2766 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl2.h +265 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl23.h +84 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl3.h +730 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/stack.h +106 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/symhacks.h +486 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/tls1.h +788 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ts.h +862 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/txt_db.h +112 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ui.h +415 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ui_compat.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/whrlpool.h +41 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509.h +1301 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509_vfy.h +595 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509v3.h +1015 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/pthread-fixes.h +72 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/smalloc.h +153 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/stdint-msvc2008.h +247 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/tree.h +768 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-aix.h +32 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-bsd.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-darwin.h +61 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-errno.h +418 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-linux.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-sunos.h +44 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-threadpool.h +37 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-unix.h +383 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-version.h +39 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-win.h +647 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv.h +1467 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-debug.h +267 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-platform.h +62 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-profiler.h +611 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h +48 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-util.h +487 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-version.h +20 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8.h +6741 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8config.h +451 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8stdint.h +33 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/zconf.h +511 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/zlib.h +1768 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/android-ifaddrs.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/ares.h +589 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/ares_version.h +24 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/libplatform/libplatform.h +38 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/nameser.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node.h +470 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_buffer.h +65 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_internals.h +339 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_object_wrap.h +116 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_version.h +45 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/aes.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/BSD-x86/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/BSD-x86_64/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/VC-WIN32/opensslconf.h +259 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/VC-WIN64A/opensslconf.h +259 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/aix-gcc/opensslconf.h +261 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/aix64-gcc/opensslconf.h +261 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/darwin-i386-cc/opensslconf.h +261 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +261 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-aarch64/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-armv4/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-elf/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-ppc/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-ppc64/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-x32/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-x86_64/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/solaris-x86-gcc/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +258 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1.h +1419 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1_mac.h +579 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1t.h +973 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/bio.h +879 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/blowfish.h +130 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/bn.h +939 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/buffer.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/camellia.h +132 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cast.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cmac.h +82 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cms.h +555 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/comp.h +79 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/conf.h +267 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/conf_api.h +89 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/crypto.h +661 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/des.h +257 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/des_old.h +497 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dh.h +392 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dsa.h +332 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dso.h +451 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dtls1.h +272 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/e_os2.h +328 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ebcdic.h +26 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ec.h +1282 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ecdh.h +134 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ecdsa.h +335 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/engine.h +960 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/err.h +389 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/evp.h +1534 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/hmac.h +109 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/idea.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/krb5_asn.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/kssl.h +197 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/lhash.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/md4.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/md5.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/mdc2.h +94 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/modes.h +163 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/obj_mac.h +4194 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/objects.h +1143 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ocsp.h +637 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/opensslconf.h +138 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/opensslv.h +97 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ossl_typ.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pem.h +615 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pem2.h +70 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pkcs12.h +342 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pkcs7.h +481 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pqueue.h +99 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rand.h +150 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rc2.h +103 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rc4.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ripemd.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rsa.h +664 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/safestack.h +2672 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/seed.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/sha.h +214 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/srp.h +169 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/srtp.h +147 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl.h +3164 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl2.h +265 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl23.h +84 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl3.h +774 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/stack.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/symhacks.h +516 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/tls1.h +813 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ts.h +862 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/txt_db.h +112 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ui.h +415 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ui_compat.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/whrlpool.h +41 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509.h +1327 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509_vfy.h +647 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509v3.h +1055 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/pthread-fixes.h +72 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/stdint-msvc2008.h +247 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/tree.h +768 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-aix.h +32 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-bsd.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-darwin.h +61 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-errno.h +418 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-linux.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-sunos.h +44 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-threadpool.h +37 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-unix.h +383 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-version.h +43 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-win.h +655 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv.h +1472 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-debug.h +280 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-platform.h +82 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-profiler.h +648 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h +48 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-util.h +640 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-version.h +20 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8.h +8366 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8config.h +424 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/zconf.h +511 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/zlib.h +1768 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/android-ifaddrs.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/ares.h +589 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/ares_version.h +24 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/common.gypi +337 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/config.gypi +44 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/libplatform/libplatform.h +38 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/nameser.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node.h +470 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_buffer.h +65 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_internals.h +333 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_object_wrap.h +116 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_version.h +57 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/aes.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/BSD-x86/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/BSD-x86_64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/VC-WIN32/opensslconf.h +271 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/VC-WIN64A/opensslconf.h +271 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/aix-gcc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/aix64-gcc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/darwin-i386-cc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-aarch64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-armv4/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-elf/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-ppc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-ppc64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-x32/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-x86_64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/solaris-x86-gcc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1.h +1419 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1_mac.h +579 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1t.h +973 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/bio.h +883 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/blowfish.h +130 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/bn.h +949 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/buffer.h +125 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/camellia.h +132 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cast.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cmac.h +82 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cms.h +555 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/comp.h +83 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/conf.h +267 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/conf_api.h +89 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/crypto.h +661 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/des.h +257 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/des_old.h +497 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dh.h +393 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dsa.h +332 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dso.h +451 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dtls1.h +272 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/e_os2.h +328 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ebcdic.h +26 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ec.h +1282 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ecdh.h +134 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ecdsa.h +335 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/engine.h +960 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/err.h +389 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/evp.h +1534 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/hmac.h +109 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/idea.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/krb5_asn.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/kssl.h +197 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/lhash.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/md4.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/md5.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/mdc2.h +94 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/modes.h +163 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/obj_mac.h +4194 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/objects.h +1143 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ocsp.h +637 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/opensslconf.h +138 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/opensslv.h +97 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ossl_typ.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pem.h +615 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pem2.h +70 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pkcs12.h +342 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pkcs7.h +481 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pqueue.h +99 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rand.h +150 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rc2.h +103 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rc4.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ripemd.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rsa.h +664 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/safestack.h +2672 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/seed.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/sha.h +214 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/srp.h +179 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/srtp.h +147 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl.h +3169 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl2.h +265 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl23.h +84 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl3.h +774 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/stack.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/symhacks.h +516 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/tls1.h +810 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ts.h +862 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/txt_db.h +112 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ui.h +415 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ui_compat.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/whrlpool.h +41 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509.h +1328 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509_vfy.h +647 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509v3.h +1055 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/pthread-fixes.h +72 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/stdint-msvc2008.h +247 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/tree.h +768 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-aix.h +32 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-bsd.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-darwin.h +61 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-errno.h +418 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-linux.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-sunos.h +44 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-threadpool.h +37 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-unix.h +383 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-version.h +43 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-win.h +653 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv.h +1482 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-debug.h +280 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-platform.h +82 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-profiler.h +648 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h +48 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-util.h +640 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-version.h +20 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8.h +8379 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8config.h +424 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/zconf.h +511 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/zlib.h +1768 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/android-ifaddrs.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares.h +627 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_build.h +117 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_rules.h +130 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_version.h +24 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/common.gypi +335 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/config.gypi +45 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/libplatform/libplatform.h +38 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/nameser.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node.h +470 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_buffer.h +65 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_internals.h +331 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_object_wrap.h +116 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_version.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/aes.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/BSD-x86/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/BSD-x86_64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/VC-WIN32/opensslconf.h +271 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/VC-WIN64A/opensslconf.h +271 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/aix-gcc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/aix64-gcc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/darwin-i386-cc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-aarch64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-armv4/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-elf/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-ppc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-ppc64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-x32/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-x86_64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/solaris-x86-gcc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1.h +1419 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1_mac.h +579 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1t.h +973 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/bio.h +883 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/blowfish.h +130 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/bn.h +949 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/buffer.h +125 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/camellia.h +132 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cast.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cmac.h +82 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cms.h +555 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/comp.h +79 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/conf.h +267 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/conf_api.h +89 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/crypto.h +661 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/des.h +257 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/des_old.h +497 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dh.h +393 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dsa.h +332 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dso.h +451 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dtls1.h +272 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/e_os2.h +328 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ebcdic.h +26 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ec.h +1282 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ecdh.h +134 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ecdsa.h +335 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/engine.h +960 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/err.h +389 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/evp.h +1534 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/hmac.h +109 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/idea.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/krb5_asn.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/kssl.h +197 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/lhash.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/md4.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/md5.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/mdc2.h +94 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/modes.h +163 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/obj_mac.h +4194 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/objects.h +1143 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ocsp.h +637 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/opensslconf.h +138 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/opensslv.h +97 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ossl_typ.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pem.h +615 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pem2.h +70 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pkcs12.h +342 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pkcs7.h +481 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pqueue.h +99 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rand.h +150 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rc2.h +103 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rc4.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ripemd.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rsa.h +664 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/safestack.h +2672 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/seed.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/sha.h +214 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/srp.h +179 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/srtp.h +147 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl.h +3169 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl2.h +265 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl23.h +84 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl3.h +774 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/stack.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/symhacks.h +516 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/tls1.h +810 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ts.h +862 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/txt_db.h +112 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ui.h +415 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ui_compat.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/whrlpool.h +41 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509.h +1327 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509_vfy.h +647 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509v3.h +1055 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/pthread-fixes.h +72 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/stdint-msvc2008.h +247 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/tree.h +768 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-aix.h +32 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-bsd.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-darwin.h +61 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-errno.h +418 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-linux.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-sunos.h +44 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-threadpool.h +37 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-unix.h +383 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-version.h +43 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-win.h +653 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv.h +1482 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-debug.h +280 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-platform.h +114 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-profiler.h +648 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h +48 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-util.h +643 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-version.h +20 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8.h +8369 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8config.h +424 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/zconf.h +511 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/zlib.h +1768 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/android-ifaddrs.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares.h +635 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_build.h +117 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_rules.h +130 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_version.h +24 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/common.gypi +361 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/config.gypi +47 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/libplatform/libplatform.h +38 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/nameser.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node.h +489 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_buffer.h +68 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_internals.h +309 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_object_wrap.h +111 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_version.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/aes.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/BSD-x86/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/BSD-x86_64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/VC-WIN32/opensslconf.h +271 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/VC-WIN64A/opensslconf.h +271 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/aix-gcc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/aix64-gcc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/darwin-i386-cc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +273 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-aarch64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-armv4/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-elf/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-ppc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-ppc64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-x32/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-x86_64/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux32-s390x/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux64-s390x/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/solaris-x86-gcc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +270 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1.h +1419 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1_mac.h +579 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1t.h +973 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/bio.h +883 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/blowfish.h +130 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/bn.h +949 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/buffer.h +125 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/camellia.h +132 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cast.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cmac.h +82 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cms.h +555 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/comp.h +83 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/conf.h +267 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/conf_api.h +89 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/crypto.h +661 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/des.h +257 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/des_old.h +497 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dh.h +393 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dsa.h +332 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dso.h +451 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dtls1.h +272 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/e_os2.h +328 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ebcdic.h +26 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ec.h +1282 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ecdh.h +134 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ecdsa.h +335 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/engine.h +960 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/err.h +389 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/evp.h +1534 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/hmac.h +109 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/idea.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/krb5_asn.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/kssl.h +197 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/lhash.h +240 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/md4.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/md5.h +119 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/mdc2.h +94 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/modes.h +163 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/obj_mac.h +4194 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/objects.h +1143 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ocsp.h +637 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/opensslconf.h +146 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/opensslv.h +97 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ossl_typ.h +211 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pem.h +615 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pem2.h +70 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pkcs12.h +342 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pkcs7.h +481 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pqueue.h +99 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rand.h +150 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rc2.h +103 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rc4.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ripemd.h +105 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rsa.h +664 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/safestack.h +2672 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/seed.h +149 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/sha.h +214 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/srp.h +179 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/srtp.h +147 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl.h +3169 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl2.h +265 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl23.h +84 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl3.h +774 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/stack.h +107 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/symhacks.h +516 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/tls1.h +810 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ts.h +862 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/txt_db.h +112 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ui.h +415 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ui_compat.h +88 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/whrlpool.h +41 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509.h +1328 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509_vfy.h +647 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509v3.h +1055 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/pthread-fixes.h +72 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/stdint-msvc2008.h +247 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/tree.h +768 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-aix.h +32 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-bsd.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-darwin.h +61 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-errno.h +418 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-linux.h +34 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-sunos.h +44 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-threadpool.h +37 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-unix.h +383 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-version.h +43 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-win.h +648 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv.h +1495 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-debug.h +288 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-experimental.h +54 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-platform.h +171 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-profiler.h +782 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-testing.h +48 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-util.h +643 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-version.h +20 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8.h +8586 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8config.h +438 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/zconf.h +511 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/zlib.h +1768 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/php/CMakeLists.txt +118 -0
- data/ext/native/src/wrappers/php/cmake/FindPHPLibs.cmake +49 -0
- data/ext/native/src/wrappers/php/tests/CMakeLists.txt +94 -0
- data/ext/native/src/wrappers/php/tests/StringSink.php.in +60 -0
- data/ext/native/src/wrappers/php/tests/StringSource.php.in +67 -0
- data/ext/native/src/wrappers/php/tests/VirgilAsn1Reader_Test.php.in +160 -0
- data/ext/native/src/wrappers/php/tests/VirgilAsn1Writer_Test.php.in +160 -0
- data/ext/native/src/wrappers/php/tests/VirgilAsymmetricCipher_EC_Test.php.in +337 -0
- data/ext/native/src/wrappers/php/tests/VirgilAsymmetricCipher_RSA_Test.php.in +340 -0
- data/ext/native/src/wrappers/php/tests/VirgilChunkCipher_Test.php.in +207 -0
- data/ext/native/src/wrappers/php/tests/VirgilCipher_Test.php.in +181 -0
- data/ext/native/src/wrappers/php/tests/VirgilCustomParams_Test.php.in +78 -0
- data/ext/native/src/wrappers/php/tests/VirgilHash_MD5_Test.php.in +159 -0
- data/ext/native/src/wrappers/php/tests/VirgilHash_SHA256_Test.php.in +159 -0
- data/ext/native/src/wrappers/php/tests/VirgilHash_SHA512_Test.php.in +167 -0
- data/ext/native/src/wrappers/php/tests/VirgilKDF_Test.php.in +123 -0
- data/ext/native/src/wrappers/php/tests/VirgilPBE_Test.php.in +84 -0
- data/ext/native/src/wrappers/php/tests/VirgilPBKDF_Test.php.in +66 -0
- data/ext/native/src/wrappers/php/tests/VirgilRandom_Test.php.in +56 -0
- data/ext/native/src/wrappers/php/tests/VirgilSigner_Test.php.in +211 -0
- data/ext/native/src/wrappers/php/tests/VirgilStreamCipher_Test.php.in +207 -0
- data/ext/native/src/wrappers/php/tests/VirgilStreamSigner_Test.php.in +212 -0
- data/ext/native/src/wrappers/php/tests/VirgilSymmetricCipher_Test.php.in +174 -0
- data/ext/native/src/wrappers/php/tests/VirgilVersion_Test.php.in +61 -0
- data/ext/native/src/wrappers/php/tests/data/CMakeLists.txt +50 -0
- data/ext/native/src/wrappers/php/tests/data/asn1_complex.der +0 -0
- data/ext/native/src/wrappers/php/tests/data/asn1_custom_tag.der +0 -0
- data/ext/native/src/wrappers/php/tests/data/asn1_integer.der +1 -0
- data/ext/native/src/wrappers/php/tests/data/asn1_octet_string.der +0 -0
- data/ext/native/src/wrappers/php/tests/data/asn1_sequence.der +0 -0
- data/ext/native/src/wrappers/php/tests/data/asn1_utf8_string.der +1 -0
- data/ext/native/src/wrappers/php/tests/data/certificate_public_key.pem +6 -0
- data/ext/native/src/wrappers/python/CMakeLists.txt +95 -0
- data/ext/native/src/wrappers/ruby/CMakeLists.txt +84 -0
- data/ext/native/src/wrappers/swig/common.i +119 -0
- data/ext/native/src/wrappers/swig/csharp/FixedArray.i +347 -0
- data/ext/native/src/wrappers/swig/csharp/VirgilByteArray.i +38 -0
- data/ext/native/src/wrappers/swig/csharp/common.i +48 -0
- data/ext/native/src/wrappers/swig/csharp/csharphead.swg.in +85 -0
- data/ext/native/src/wrappers/swig/java/VirgilByteArray.i +158 -0
- data/ext/native/src/wrappers/swig/java/common.i +70 -0
- data/ext/native/src/wrappers/swig/php/VirgilByteArray.i +107 -0
- data/ext/native/src/wrappers/swig/php/common.i +90 -0
- data/ext/native/src/wrappers/swig/util.i +85 -0
- data/ext/native/src/wrappers/swig/wrapper.i.in +158 -0
- data/lib/virgil/crypto.rb +10 -0
- data/lib/virgil/crypto/bytes.rb +57 -0
- data/lib/virgil/crypto/version.rb +5 -0
- data/lib/virgil/crypto/virgil_stream_data_sink.rb +53 -0
- data/lib/virgil/crypto/virgil_stream_data_source.rb +54 -0
- data/virgil-crypto.gemspec +53 -0
- 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 0x1000208fL
|
|
34
|
+
# ifdef OPENSSL_FIPS
|
|
35
|
+
# define OPENSSL_VERSION_TEXT "OpenSSL 1.0.2h-fips 3 May 2016"
|
|
36
|
+
# else
|
|
37
|
+
# define OPENSSL_VERSION_TEXT "OpenSSL 1.0.2h 3 May 2016"
|
|
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
|