summaryrefslogtreecommitdiffstats
path: root/vendor/openssl-sys
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/openssl-sys')
-rw-r--r--vendor/openssl-sys/.cargo-checksum.json2
-rw-r--r--vendor/openssl-sys/CHANGELOG.md33
-rw-r--r--vendor/openssl-sys/Cargo.toml4
-rw-r--r--vendor/openssl-sys/build/main.rs3
-rw-r--r--vendor/openssl-sys/build/run_bindgen.rs3
-rw-r--r--vendor/openssl-sys/src/evp.rs2
-rw-r--r--vendor/openssl-sys/src/handwritten/asn1.rs52
-rw-r--r--vendor/openssl-sys/src/handwritten/bn.rs2
-rw-r--r--vendor/openssl-sys/src/handwritten/cmac.rs18
-rw-r--r--vendor/openssl-sys/src/handwritten/dh.rs1
-rw-r--r--vendor/openssl-sys/src/handwritten/evp.rs8
-rw-r--r--vendor/openssl-sys/src/handwritten/mod.rs2
-rw-r--r--vendor/openssl-sys/src/handwritten/object.rs1
-rw-r--r--vendor/openssl-sys/src/handwritten/pkcs7.rs199
-rw-r--r--vendor/openssl-sys/src/handwritten/types.rs21
-rw-r--r--vendor/openssl-sys/src/handwritten/x509.rs96
-rw-r--r--vendor/openssl-sys/src/handwritten/x509v3.rs8
-rw-r--r--vendor/openssl-sys/src/obj_mac.rs2
-rw-r--r--vendor/openssl-sys/src/tls1.rs4
-rw-r--r--vendor/openssl-sys/src/x509v3.rs11
20 files changed, 450 insertions, 22 deletions
diff --git a/vendor/openssl-sys/.cargo-checksum.json b/vendor/openssl-sys/.cargo-checksum.json
index 78f6eb88a..aa78af3f9 100644
--- a/vendor/openssl-sys/.cargo-checksum.json
+++ b/vendor/openssl-sys/.cargo-checksum.json
@@ -1 +1 @@
-{"files":{"CHANGELOG.md":"9d0df60db1e9d7f84cb5389921492e8a9e85a0450037cfd897e25fd182c4ad15","Cargo.toml":"8126aab372849ec7716c452c66ac350cefe7e17d97eff39eb9b353048ba2727c","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"c5ddde25c2756a1115daaa671fb4297cdc83bf23009c8356ba65b5311d0dd30d","build/cfgs.rs":"5657ba246be58efcc3768404f15e507dfdbfa1ca4ffab5f1d88eabb12de598d4","build/expando.c":"e94c3718c79499d8af23cb2056958e81d093a117bb6dc404e235726c00d45c36","build/find_normal.rs":"1f9233e5993c3537767d39b66fa5a43f5268a9bf89b70884886652cfa7e869c6","build/find_vendored.rs":"4907761e6bc1115f5081dd4c42aa1df6ec7db3cc8b6e2a46071631c23125fe15","build/main.rs":"d04538b63898180949bc7d9ced4806395011a3f6c5d374d4ebfdf2b30cd9cc33","build/run_bindgen.rs":"5cfe3a8bc5c9a276ec904b807e2aaf2fcb8bed5e52c32752e4379166c4ec06dd","src/aes.rs":"e744b2d608216fb98d365dced84e044951939b6e1868ab52226bf0eeaac3c0f5","src/asn1.rs":"88ce843ffd803b9c6768869d179ddc38b8c1225b092272fdfddd9bd1bdcb3c44","src/bio.rs":"35a5bfd4f38302f3ea47a70d80889280f4f0ae2e3e119082d21322a27c4bb48e","src/bn.rs":"d1b7578c0ec448e3f8ebe68d5048f2761e46715619d81173a5aa89205b9ba8b2","src/cms.rs":"6dbd69d39da588ece53fabdb3a1e2136602eb24ed26106f59c8b852bce0d1a84","src/crypto.rs":"7aee1518a591e4d8b4049c0d5dadf28987dded69cccc17a9cf5a8808c6261d0c","src/dtls1.rs":"0477022d5bcf2b7a620c70ece4da08a2958be3eca5a57127c89d79525c692ebd","src/ec.rs":"2fa5d9a495bc80bf583064c2a0671e13051da2e11bfd725accf2f32e1dabfb0b","src/err.rs":"2eb2bba43e6fc607d7e9cc99c26dfb006a425e647e9bdd1a0b28c014e1363b67","src/evp.rs":"bc7dd771287d8a8032c7d2635391ce31c96d4b26c3c0d2a16bc03aa68c2a8f2e","src/handwritten/aes.rs":"31d07045f63d7ea88d1d182487f6cbd42a613119bed32f12affef37bcba26879","src/handwritten/asn1.rs":"d198d559bbf01b4d1f856e5d3d25cdfb3a0a156e80672011f734b6b0da48aed8","src/handwritten/bio.rs":"137b2cc9f618bd47b96411e0a46e317f8b9aa7b1a37a8b9fb7fe5fd0392c3ebe","src/handwritten/bn.rs":"e27fb3bbed55998b33b2d7b8e9bd8367e75b118e3d66e0f8aced86aa3ca4fc14","src/handwritten/cms.rs":"2aeff50ca7061f8cba7d0cf9d5da7e17e38909aff0295e5b6301aaa7655c5bfd","src/handwritten/conf.rs":"56835aece385e1093665684fa65b7ade778e3f244e1cc9254d75aa6258eef6b2","src/handwritten/crypto.rs":"910fcf6df345e6bdc43e79088f2eb18bd9b8461a786eee38c7799b9d6ecf9fd4","src/handwritten/dh.rs":"237a4179d33fb06210c08e1dc3198d1a60cebcc781266d41ba11f01df5db7ab7","src/handwritten/dsa.rs":"69da4a548c4bcde09cf1b7ca9d0fb20185fd95d1728638a3efcaf7e4c25fc0e4","src/handwritten/ec.rs":"edc3259e9b3530b5b6f3f3e744dc3497d3287f3493b9b59a8f010cfbb6d16f2c","src/handwritten/err.rs":"391a867241db4656411b3da5cc8b30ab23dcc9e928a290f6f215caeeb498403d","src/handwritten/evp.rs":"a7c4c1dac18648b662b7fb9ed9dae484c1c2aee590524368b99f6d2678f9497c","src/handwritten/hmac.rs":"f31cb39769625adb3bcaf5689a0666801ebea4bf5383077b1e76747451a4d07b","src/handwritten/kdf.rs":"bf4ed9a10d8cbeacbdb7a738c76b1a26885e4aa87758879f217a273a5172607a","src/handwritten/mod.rs":"e4115c363a1d670a28a09757ddcf24b2f8ffc8d081c3c9e1791438578a4bcd46","src/handwritten/object.rs":"a61090c529da9cb05420e76991a428d27a544e3c8e7a6c5c66b86e3a13f7ce74","src/handwritten/ocsp.rs":"27979cc0439dff61f4c21c68e3d585c0221bd025425ff9bc181c8e870d44f1a7","src/handwritten/pem.rs":"1d04f7b600f7422a24e81705d8f9467fdf63a5fa4c61468178da4b71c85ea429","src/handwritten/pkcs12.rs":"65534ca2844850576e08113990be3a3241ac54c486c48ceae77b382a657facc0","src/handwritten/pkcs7.rs":"013159a75032305055cbb9cdb0f844353c5cdf052c390e65ddceebbb0afe14e7","src/handwritten/provider.rs":"86d1dbfd1147fcd3bb7ecde52c5b694e7beb599cd5a26754c5af1b179b170f5d","src/handwritten/rand.rs":"c771057f37c64406aa750f36397fa877caf330a8c725e49356c7081c2b2fdd67","src/handwritten/rsa.rs":"64c34e9d207bb562514e6b7fa9892777b2fb1df32a49d4672bf4eb33345a6e30","src/handwritten/safestack.rs":"6c39e28565d34efad707d77561d4caa99e3f028fcac3a2ef6fd403a78de1190c","src/handwritten/sha.rs":"7107e2e7e09e9f8b10433b0005a3f4aafead896d7d35949b607dc42b76e24d44","src/handwritten/srtp.rs":"0e9693c840c696cb31774c35c5af55f197de675a6c7e3326a19d7c79958f1e78","src/handwritten/ssl.rs":"25225b8ff0b7f860d020abb831e4efe5222c8cb6e6765cfc31772d9ec9a35fb8","src/handwritten/stack.rs":"1a509907283e5a2bf88cf193ce607f49ce7d2d95547c2ce2abc0fd4567aad334","src/handwritten/tls1.rs":"eccb78cf777389a975ec79d5efa634a44802fc963a6a392888640c1cfb00da11","src/handwritten/types.rs":"b362064dd6b185ef1cf25fa067a2ffb3598da394d7d68e3cfa39b63e1a3061c8","src/handwritten/x509.rs":"374141db196b5ab25167184b5a6ed26a38ca9c42758b942102817fa804493cf3","src/handwritten/x509_vfy.rs":"4da8c57787ecc69fd73719c22c48d0e9493a8a0903aca9f6b4c9f9ad290a9ac7","src/handwritten/x509v3.rs":"3e16d43fdae5ee78a46e6f390cf83010f1773eda6e37fcd96aab62188603503f","src/lib.rs":"589aca0d79ae9b447019938f61ce0f55124e435bf606399768e3bf8f238f5893","src/macros.rs":"270fa673eba5497b52bd62159e604773dc767cd4536a2377b24ce35cabf680a6","src/obj_mac.rs":"97a6d6ec98a68569187820786daa9ac7c2ba0d541de59f24115a5b6882efa4a4","src/ocsp.rs":"63c9ce598f67eb0bb162d4c8d78cb5049c53c4baa41988328b42f7b1bd982ac8","src/pem.rs":"3a0197173331d8b6143d8036a6b121e6b59cac260107d8f42f9b1a1a3426d6fe","src/pkcs7.rs":"f77db0a26e5546d752001701ea43cd55a0c1f7c317425e1f7529ff92590c5076","src/rsa.rs":"a255b57723b8c3dcd125eb5d7fd69e897687f3de6d95833f73cd909e82b35e75","src/sha.rs":"a5c50aee5fe7a9ba6287129836fce23b9cb35b18de331778d4edbf500b1163b7","src/srtp.rs":"2829d69f64a7c64635340b5e8db48af1d32678b42e7c3b8266c29e26f5b83838","src/ssl.rs":"d938dcf47286ba4b9c814d1415a8823e89e0f814645123348a04683462412ff0","src/ssl3.rs":"9336c816e00847d552dea22587d4ac72ff3cbd469fa5ff750423a19ea11e68eb","src/tls1.rs":"58138a3acd7c634bb754e8c1ed280cfcaded42b61078179d083fe874c6a9025e","src/types.rs":"e201d386731c7d20ee827acab33d10d0fe8aa65559f3e61efbf465e468fb34eb","src/x509.rs":"3193e9e0de000571468ec7467887ed931fede88de54584f8823a789fdb1edd58","src/x509_vfy.rs":"eb4a8f36623bafc40ccba26ba3eada5c57fd1f4e780bfc0e6210e4d772ce09fc","src/x509v3.rs":"f034d0d33c9dcb67f661a7c9a4142853d8f3dec739635d233b3e7cabd3e60172"},"package":"3a20eace9dc2d82904039cb76dcf50fb1a0bba071cfd1629720b5d6f1ddba0fa"} \ No newline at end of file
+{"files":{"CHANGELOG.md":"edd3539214217da992ef67bea8dc0358651c6aa760fde16bf40923e1b1e8233e","Cargo.toml":"0a79c934d8041b1af890fc9cece7c70d1b7ce52c9a97691664f17981e5fba4ac","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"c5ddde25c2756a1115daaa671fb4297cdc83bf23009c8356ba65b5311d0dd30d","build/cfgs.rs":"5657ba246be58efcc3768404f15e507dfdbfa1ca4ffab5f1d88eabb12de598d4","build/expando.c":"e94c3718c79499d8af23cb2056958e81d093a117bb6dc404e235726c00d45c36","build/find_normal.rs":"1f9233e5993c3537767d39b66fa5a43f5268a9bf89b70884886652cfa7e869c6","build/find_vendored.rs":"4907761e6bc1115f5081dd4c42aa1df6ec7db3cc8b6e2a46071631c23125fe15","build/main.rs":"02e136ecd8536af4f513a8b01314923a07866dd2dfd3c8ceb9b08d8177fd06c2","build/run_bindgen.rs":"403035f425f3fb5d0de49f3b4ed1a2761b54770d4fe765e0023fcd9395ee99ae","src/aes.rs":"e744b2d608216fb98d365dced84e044951939b6e1868ab52226bf0eeaac3c0f5","src/asn1.rs":"88ce843ffd803b9c6768869d179ddc38b8c1225b092272fdfddd9bd1bdcb3c44","src/bio.rs":"35a5bfd4f38302f3ea47a70d80889280f4f0ae2e3e119082d21322a27c4bb48e","src/bn.rs":"d1b7578c0ec448e3f8ebe68d5048f2761e46715619d81173a5aa89205b9ba8b2","src/cms.rs":"6dbd69d39da588ece53fabdb3a1e2136602eb24ed26106f59c8b852bce0d1a84","src/crypto.rs":"7aee1518a591e4d8b4049c0d5dadf28987dded69cccc17a9cf5a8808c6261d0c","src/dtls1.rs":"0477022d5bcf2b7a620c70ece4da08a2958be3eca5a57127c89d79525c692ebd","src/ec.rs":"2fa5d9a495bc80bf583064c2a0671e13051da2e11bfd725accf2f32e1dabfb0b","src/err.rs":"2eb2bba43e6fc607d7e9cc99c26dfb006a425e647e9bdd1a0b28c014e1363b67","src/evp.rs":"65d06efce8e3d65f3253635f8da3725649117beb22ef280e2c47fef7d462c9f8","src/handwritten/aes.rs":"31d07045f63d7ea88d1d182487f6cbd42a613119bed32f12affef37bcba26879","src/handwritten/asn1.rs":"e0b5eaae2953bffc8edf50dec3d2c9406f8dc21b182a5718c3efbd91250e6146","src/handwritten/bio.rs":"137b2cc9f618bd47b96411e0a46e317f8b9aa7b1a37a8b9fb7fe5fd0392c3ebe","src/handwritten/bn.rs":"6be05ce72fa9b27a48443cab46690ffe7f91be6781c1c451615dc3ad44ce5a07","src/handwritten/cmac.rs":"0ec98c75d6f3d5b097a435a651af101f0e6bde003d0913f62009aff1f51c1f0c","src/handwritten/cms.rs":"2aeff50ca7061f8cba7d0cf9d5da7e17e38909aff0295e5b6301aaa7655c5bfd","src/handwritten/conf.rs":"56835aece385e1093665684fa65b7ade778e3f244e1cc9254d75aa6258eef6b2","src/handwritten/crypto.rs":"910fcf6df345e6bdc43e79088f2eb18bd9b8461a786eee38c7799b9d6ecf9fd4","src/handwritten/dh.rs":"496e92aa7a2843b8c0279ea9bab2f7d9a1e5b73c057f77da6af88c902b7af47b","src/handwritten/dsa.rs":"69da4a548c4bcde09cf1b7ca9d0fb20185fd95d1728638a3efcaf7e4c25fc0e4","src/handwritten/ec.rs":"edc3259e9b3530b5b6f3f3e744dc3497d3287f3493b9b59a8f010cfbb6d16f2c","src/handwritten/err.rs":"391a867241db4656411b3da5cc8b30ab23dcc9e928a290f6f215caeeb498403d","src/handwritten/evp.rs":"bb8af2882b75ae1440dab7a89d9fb57611ad21c5243aed1c17431a2a4c764e0d","src/handwritten/hmac.rs":"f31cb39769625adb3bcaf5689a0666801ebea4bf5383077b1e76747451a4d07b","src/handwritten/kdf.rs":"bf4ed9a10d8cbeacbdb7a738c76b1a26885e4aa87758879f217a273a5172607a","src/handwritten/mod.rs":"1d2e226965588f2d992d55fe42e63772ee0c117605cd503b287792465f891530","src/handwritten/object.rs":"3a91e4b03fa4f84b5211cddd5a02cc908ccf9ea5f4413d8ef2c503884592f368","src/handwritten/ocsp.rs":"27979cc0439dff61f4c21c68e3d585c0221bd025425ff9bc181c8e870d44f1a7","src/handwritten/pem.rs":"1d04f7b600f7422a24e81705d8f9467fdf63a5fa4c61468178da4b71c85ea429","src/handwritten/pkcs12.rs":"65534ca2844850576e08113990be3a3241ac54c486c48ceae77b382a657facc0","src/handwritten/pkcs7.rs":"9614eb04fdaa430f219cb13df116d6874cb8ca7d6a88ff66d0f6f649670221c2","src/handwritten/provider.rs":"86d1dbfd1147fcd3bb7ecde52c5b694e7beb599cd5a26754c5af1b179b170f5d","src/handwritten/rand.rs":"c771057f37c64406aa750f36397fa877caf330a8c725e49356c7081c2b2fdd67","src/handwritten/rsa.rs":"64c34e9d207bb562514e6b7fa9892777b2fb1df32a49d4672bf4eb33345a6e30","src/handwritten/safestack.rs":"6c39e28565d34efad707d77561d4caa99e3f028fcac3a2ef6fd403a78de1190c","src/handwritten/sha.rs":"7107e2e7e09e9f8b10433b0005a3f4aafead896d7d35949b607dc42b76e24d44","src/handwritten/srtp.rs":"0e9693c840c696cb31774c35c5af55f197de675a6c7e3326a19d7c79958f1e78","src/handwritten/ssl.rs":"25225b8ff0b7f860d020abb831e4efe5222c8cb6e6765cfc31772d9ec9a35fb8","src/handwritten/stack.rs":"1a509907283e5a2bf88cf193ce607f49ce7d2d95547c2ce2abc0fd4567aad334","src/handwritten/tls1.rs":"eccb78cf777389a975ec79d5efa634a44802fc963a6a392888640c1cfb00da11","src/handwritten/types.rs":"e6cf9d5b025e88f35c42b53fe037a52270a6e67da3b9eb0c55783410c0f4ed71","src/handwritten/x509.rs":"a0585f54dacd4ba9abc971ad99dab30979e16d4baa23aeac0c6c6b58d7ce487f","src/handwritten/x509_vfy.rs":"4da8c57787ecc69fd73719c22c48d0e9493a8a0903aca9f6b4c9f9ad290a9ac7","src/handwritten/x509v3.rs":"4cdc3d24f684197a291c1a7cc4d8f395380ea35b0afaf931061f8f7b0d32ff95","src/lib.rs":"589aca0d79ae9b447019938f61ce0f55124e435bf606399768e3bf8f238f5893","src/macros.rs":"270fa673eba5497b52bd62159e604773dc767cd4536a2377b24ce35cabf680a6","src/obj_mac.rs":"66efc299822c0ea18b38caa7de2ea02b1eb7374f240d5a34e0f4877a5146eeb8","src/ocsp.rs":"63c9ce598f67eb0bb162d4c8d78cb5049c53c4baa41988328b42f7b1bd982ac8","src/pem.rs":"3a0197173331d8b6143d8036a6b121e6b59cac260107d8f42f9b1a1a3426d6fe","src/pkcs7.rs":"f77db0a26e5546d752001701ea43cd55a0c1f7c317425e1f7529ff92590c5076","src/rsa.rs":"a255b57723b8c3dcd125eb5d7fd69e897687f3de6d95833f73cd909e82b35e75","src/sha.rs":"a5c50aee5fe7a9ba6287129836fce23b9cb35b18de331778d4edbf500b1163b7","src/srtp.rs":"2829d69f64a7c64635340b5e8db48af1d32678b42e7c3b8266c29e26f5b83838","src/ssl.rs":"d938dcf47286ba4b9c814d1415a8823e89e0f814645123348a04683462412ff0","src/ssl3.rs":"9336c816e00847d552dea22587d4ac72ff3cbd469fa5ff750423a19ea11e68eb","src/tls1.rs":"a60a545a4bc60aaa976cf4304cc892e7b2060e120748670ef14e89a50c6a771b","src/types.rs":"e201d386731c7d20ee827acab33d10d0fe8aa65559f3e61efbf465e468fb34eb","src/x509.rs":"3193e9e0de000571468ec7467887ed931fede88de54584f8823a789fdb1edd58","src/x509_vfy.rs":"eb4a8f36623bafc40ccba26ba3eada5c57fd1f4e780bfc0e6210e4d772ce09fc","src/x509v3.rs":"3c8f029433724a31d10c7b55e0940f10f4aaeb7b5b63232f19bc04808f3312d1"},"package":"8e17f59264b2809d77ae94f0e1ebabc434773f370d6ca667bd223ea10e06cc7e"} \ No newline at end of file
diff --git a/vendor/openssl-sys/CHANGELOG.md b/vendor/openssl-sys/CHANGELOG.md
index 0d8c1e184..324ff1a82 100644
--- a/vendor/openssl-sys/CHANGELOG.md
+++ b/vendor/openssl-sys/CHANGELOG.md
@@ -2,6 +2,34 @@
## [Unreleased]
+## [v0.9.87] - 2023-04-24
+
+### Added
+
+* Added `DH_CHECK`.
+* Added `CMAC_CTX_new`, `CMAC_CTX_free`, `CMAC_Init`, `CMAC_Update`, `CMAC_Final`, and `CMAC_CTX_copy`.
+* Added `EVP_default_properties_is_fips_enabled`.
+* Added `X509_get0_subject_key_id`, `X509_get0_authority_key_id`, `X509_get0_authority_issuer`, and `X509_get0_authority_serial`.
+* Added `NID_poly1305`.
+
+
+## [v0.9.86] - 2023-04-20
+
+### Fixed
+
+* Fixed BoringSSL support with the latest bindgen release.
+
+### Added
+
+* Added bindings for PKCS#7 functions and more X.509 functions.
+
+
+## [v0.9.85] - 2023-04-09
+
+### Added
+
+* Added support for LibreSSL 3.7.x.
+
## [v0.9.84] - 2023-04-01
### Added
@@ -418,7 +446,10 @@ Fixed builds against OpenSSL built with `no-cast`.
* Added `X509_verify` and `X509_REQ_verify`.
* Added `EVP_MD_type` and `EVP_GROUP_get_curve_name`.
-[Unreleased]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.84..master
+[Unreleased]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.87..master
+[v0.9.87]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.86...openssl-sys-v0.9.87
+[v0.9.86]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.85...openssl-sys-v0.9.86
+[v0.9.85]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.84...openssl-sys-v0.9.85
[v0.9.84]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.83...openssl-sys-v0.9.84
[v0.9.83]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.82...openssl-sys-v0.9.83
[v0.9.82]: https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.81...openssl-sys-v0.9.82
diff --git a/vendor/openssl-sys/Cargo.toml b/vendor/openssl-sys/Cargo.toml
index 80afc7c48..ab8f8bb05 100644
--- a/vendor/openssl-sys/Cargo.toml
+++ b/vendor/openssl-sys/Cargo.toml
@@ -12,7 +12,7 @@
[package]
edition = "2018"
name = "openssl-sys"
-version = "0.9.84"
+version = "0.9.87"
authors = [
"Alex Crichton <alex@alexcrichton.com>",
"Steven Fackler <sfackler@gmail.com>",
@@ -44,7 +44,7 @@ features = ["experimental"]
optional = true
[build-dependencies.cc]
-version = "1.0"
+version = "1.0.61"
[build-dependencies.openssl-src]
version = "111"
diff --git a/vendor/openssl-sys/build/main.rs b/vendor/openssl-sys/build/main.rs
index 5c1f668fb..ba149c17f 100644
--- a/vendor/openssl-sys/build/main.rs
+++ b/vendor/openssl-sys/build/main.rs
@@ -284,6 +284,7 @@ See rust-openssl documentation for more information:
(3, 6, _) => ('3', '6', 'x'),
(3, 7, 0) => ('3', '7', '0'),
(3, 7, 1) => ('3', '7', '1'),
+ (3, 7, _) => ('3', '7', 'x'),
_ => version_error(),
};
@@ -326,7 +327,7 @@ fn version_error() -> ! {
"
This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3.0.0), or LibreSSL 2.5
-through 3.7.1, but a different version of OpenSSL was found. The build is now aborting
+through 3.7.x, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch.
"
diff --git a/vendor/openssl-sys/build/run_bindgen.rs b/vendor/openssl-sys/build/run_bindgen.rs
index 0c127ae5c..4fa9ec66f 100644
--- a/vendor/openssl-sys/build/run_bindgen.rs
+++ b/vendor/openssl-sys/build/run_bindgen.rs
@@ -12,6 +12,7 @@ const INCLUDES: &str = "
#include <openssl/aes.h>
#include <openssl/asn1.h>
#include <openssl/bio.h>
+#include <openssl/cmac.h>
#include <openssl/conf.h>
#include <openssl/crypto.h>
#include <openssl/dh.h>
@@ -111,7 +112,6 @@ pub fn run_boringssl(include_dirs: &[PathBuf]) {
.ctypes_prefix("::libc")
.derive_default(false)
.enable_function_attribute_detection()
- .size_t_is_usize(true)
.default_macro_constant_type(MacroTypeVariation::Signed)
.rustified_enum("point_conversion_form_t")
.allowlist_file(".*/openssl/[^/]+\\.h")
@@ -167,7 +167,6 @@ pub fn run_boringssl(include_dirs: &[PathBuf]) {
.arg("--ctypes-prefix=::libc")
.arg("--no-derive-default")
.arg("--enable-function-attribute-detection")
- .arg("--size_t-is-usize")
.arg("--default-macro-constant-type=signed")
.arg("--rustified-enum=point_conversion_form_t")
.arg("--allowlist-file=.*/openssl/[^/]+\\.h")
diff --git a/vendor/openssl-sys/src/evp.rs b/vendor/openssl-sys/src/evp.rs
index 69b49fbb0..72ca2434f 100644
--- a/vendor/openssl-sys/src/evp.rs
+++ b/vendor/openssl-sys/src/evp.rs
@@ -20,6 +20,8 @@ pub const EVP_PKEY_X448: c_int = NID_X448;
pub const EVP_PKEY_ED448: c_int = NID_ED448;
pub const EVP_PKEY_HMAC: c_int = NID_hmac;
pub const EVP_PKEY_CMAC: c_int = NID_cmac;
+#[cfg(ossl111)]
+pub const EVP_PKEY_POLY1305: c_int = NID_poly1305;
#[cfg(ossl110)]
pub const EVP_PKEY_HKDF: c_int = NID_hkdf;
diff --git a/vendor/openssl-sys/src/handwritten/asn1.rs b/vendor/openssl-sys/src/handwritten/asn1.rs
index d2bc21ce5..fa43a7a5c 100644
--- a/vendor/openssl-sys/src/handwritten/asn1.rs
+++ b/vendor/openssl-sys/src/handwritten/asn1.rs
@@ -14,19 +14,55 @@ extern "C" {
stack!(stack_st_ASN1_OBJECT);
+#[repr(C)]
+pub struct ASN1_TYPE {
+ pub type_: c_int,
+ pub value: ASN1_TYPE_value,
+}
+#[repr(C)]
+pub union ASN1_TYPE_value {
+ pub ptr: *mut c_char,
+ pub boolean: ASN1_BOOLEAN,
+ pub asn1_string: *mut ASN1_STRING,
+ pub object: *mut ASN1_OBJECT,
+ pub integer: *mut ASN1_INTEGER,
+ pub enumerated: *mut ASN1_ENUMERATED,
+ pub bit_string: *mut ASN1_BIT_STRING,
+ pub octet_string: *mut ASN1_OCTET_STRING,
+ pub printablestring: *mut ASN1_PRINTABLESTRING,
+ pub t61string: *mut ASN1_T61STRING,
+ pub ia5string: *mut ASN1_IA5STRING,
+ pub generalstring: *mut ASN1_GENERALSTRING,
+ pub bmpstring: *mut ASN1_BMPSTRING,
+ pub universalstring: *mut ASN1_UNIVERSALSTRING,
+ pub utctime: *mut ASN1_UTCTIME,
+ pub generalizedtime: *mut ASN1_GENERALIZEDTIME,
+ pub visiblestring: *mut ASN1_VISIBLESTRING,
+ pub utf8string: *mut ASN1_UTF8STRING,
+ pub set: *mut ASN1_STRING,
+ pub sequence: *mut ASN1_STRING,
+ pub asn1_value: *mut ASN1_VALUE,
+}
+
extern "C" {
pub fn ASN1_STRING_type_new(ty: c_int) -> *mut ASN1_STRING;
#[cfg(any(ossl110, libressl273))]
pub fn ASN1_STRING_get0_data(x: *const ASN1_STRING) -> *const c_uchar;
#[cfg(any(all(ossl101, not(ossl110)), libressl))]
pub fn ASN1_STRING_data(x: *mut ASN1_STRING) -> *mut c_uchar;
-
- pub fn ASN1_BIT_STRING_free(x: *mut ASN1_BIT_STRING);
-
+ pub fn ASN1_STRING_new() -> *mut ASN1_STRING;
+ pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING;
pub fn ASN1_STRING_free(x: *mut ASN1_STRING);
pub fn ASN1_STRING_length(x: *const ASN1_STRING) -> c_int;
+ pub fn ASN1_STRING_set(x: *mut ASN1_STRING, data: *const c_void, len_in: c_int) -> c_int;
+ pub fn ASN1_OCTET_STRING_set(
+ x: *mut ASN1_OCTET_STRING,
+ data: *const c_uchar,
+ len_in: c_int,
+ ) -> c_int;
- pub fn ASN1_STRING_set(x: *mut ASN1_STRING, data: *const c_void, len: c_int) -> c_int;
+ pub fn ASN1_BIT_STRING_free(x: *mut ASN1_BIT_STRING);
+ pub fn ASN1_OCTET_STRING_free(x: *mut ASN1_OCTET_STRING);
pub fn ASN1_GENERALIZEDTIME_free(tm: *mut ASN1_GENERALIZEDTIME);
pub fn ASN1_GENERALIZEDTIME_print(b: *mut BIO, tm: *const ASN1_GENERALIZEDTIME) -> c_int;
@@ -53,10 +89,18 @@ extern "C" {
pub fn ASN1_TIME_set_string(s: *mut ASN1_TIME, str: *const c_char) -> c_int;
#[cfg(ossl111)]
pub fn ASN1_TIME_set_string_X509(s: *mut ASN1_TIME, str: *const c_char) -> c_int;
+
+ pub fn ASN1_ENUMERATED_free(a: *mut ASN1_ENUMERATED);
+ #[cfg(ossl110)]
+ pub fn ASN1_ENUMERATED_get_int64(pr: *mut i64, a: *const ASN1_ENUMERATED) -> c_int;
+
+ pub fn ASN1_TYPE_free(x: *mut ASN1_TYPE);
}
const_ptr_api! {
extern "C" {
pub fn ASN1_STRING_to_UTF8(out: *mut *mut c_uchar, s: #[const_ptr_if(any(ossl110, libressl280))] ASN1_STRING) -> c_int;
+ pub fn ASN1_STRING_type(x: #[const_ptr_if(any(ossl110, libressl280))] ASN1_STRING) -> c_int;
+ pub fn ASN1_generate_v3(str: #[const_ptr_if(any(ossl110, libressl280))] c_char, cnf: *mut X509V3_CTX) -> *mut ASN1_TYPE;
}
}
diff --git a/vendor/openssl-sys/src/handwritten/bn.rs b/vendor/openssl-sys/src/handwritten/bn.rs
index 81348f692..5457f6171 100644
--- a/vendor/openssl-sys/src/handwritten/bn.rs
+++ b/vendor/openssl-sys/src/handwritten/bn.rs
@@ -23,7 +23,7 @@ extern "C" {
pub fn BN_clear_free(bn: *mut BIGNUM);
pub fn BN_bin2bn(s: *const u8, size: c_int, ret: *mut BIGNUM) -> *mut BIGNUM;
pub fn BN_bn2bin(a: *const BIGNUM, to: *mut u8) -> c_int;
- #[cfg(ossl110)]
+ #[cfg(any(ossl110, libressl340))]
pub fn BN_bn2binpad(a: *const BIGNUM, to: *mut u8, tolen: c_int) -> c_int;
pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> c_int;
pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> c_int;
diff --git a/vendor/openssl-sys/src/handwritten/cmac.rs b/vendor/openssl-sys/src/handwritten/cmac.rs
new file mode 100644
index 000000000..e44094d21
--- /dev/null
+++ b/vendor/openssl-sys/src/handwritten/cmac.rs
@@ -0,0 +1,18 @@
+use libc::*;
+
+use super::super::*;
+
+extern "C" {
+ pub fn CMAC_CTX_new() -> *mut CMAC_CTX;
+ pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX);
+ pub fn CMAC_Init(
+ ctx: *mut CMAC_CTX,
+ key: *const c_void,
+ len: size_t,
+ cipher: *const EVP_CIPHER,
+ impl_: *mut ENGINE,
+ ) -> c_int;
+ pub fn CMAC_Update(ctx: *mut CMAC_CTX, data: *const c_void, len: size_t) -> c_int;
+ pub fn CMAC_Final(ctx: *mut CMAC_CTX, out: *mut c_uchar, len: *mut size_t) -> c_int;
+ pub fn CMAC_CTX_copy(dst: *mut CMAC_CTX, src: *const CMAC_CTX) -> c_int;
+}
diff --git a/vendor/openssl-sys/src/handwritten/dh.rs b/vendor/openssl-sys/src/handwritten/dh.rs
index a4de122ea..87a0817ce 100644
--- a/vendor/openssl-sys/src/handwritten/dh.rs
+++ b/vendor/openssl-sys/src/handwritten/dh.rs
@@ -3,6 +3,7 @@ use super::super::*;
extern "C" {
pub fn DH_new() -> *mut DH;
pub fn DH_free(dh: *mut DH);
+ pub fn DH_check(dh: *const DH, codes: *mut c_int) -> c_int;
pub fn DH_generate_parameters(
prime_len: c_int,
diff --git a/vendor/openssl-sys/src/handwritten/evp.rs b/vendor/openssl-sys/src/handwritten/evp.rs
index 1a05b7eae..050d2c88b 100644
--- a/vendor/openssl-sys/src/handwritten/evp.rs
+++ b/vendor/openssl-sys/src/handwritten/evp.rs
@@ -65,6 +65,14 @@ cfg_if! {
}
}
+cfg_if! {
+ if #[cfg(ossl300)] {
+ extern "C" {
+ pub fn EVP_default_properties_is_fips_enabled(libctx: *mut OSSL_LIB_CTX) -> c_int;
+ }
+ }
+}
+
extern "C" {
pub fn EVP_DigestInit_ex(ctx: *mut EVP_MD_CTX, typ: *const EVP_MD, imple: *mut ENGINE)
-> c_int;
diff --git a/vendor/openssl-sys/src/handwritten/mod.rs b/vendor/openssl-sys/src/handwritten/mod.rs
index 28aa4aecd..9c0f84450 100644
--- a/vendor/openssl-sys/src/handwritten/mod.rs
+++ b/vendor/openssl-sys/src/handwritten/mod.rs
@@ -2,6 +2,7 @@ pub use self::aes::*;
pub use self::asn1::*;
pub use self::bio::*;
pub use self::bn::*;
+pub use self::cmac::*;
pub use self::cms::*;
pub use self::conf::*;
pub use self::crypto::*;
@@ -35,6 +36,7 @@ mod aes;
mod asn1;
mod bio;
mod bn;
+mod cmac;
mod cms;
mod conf;
mod crypto;
diff --git a/vendor/openssl-sys/src/handwritten/object.rs b/vendor/openssl-sys/src/handwritten/object.rs
index 06e655343..6160fad5b 100644
--- a/vendor/openssl-sys/src/handwritten/object.rs
+++ b/vendor/openssl-sys/src/handwritten/object.rs
@@ -27,4 +27,5 @@ extern "C" {
pub fn OBJ_length(obj: *const ASN1_OBJECT) -> libc::size_t;
#[cfg(ossl111)]
pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const c_uchar;
+ pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> c_int;
}
diff --git a/vendor/openssl-sys/src/handwritten/pkcs7.rs b/vendor/openssl-sys/src/handwritten/pkcs7.rs
index 78f96ec3e..f46922df3 100644
--- a/vendor/openssl-sys/src/handwritten/pkcs7.rs
+++ b/vendor/openssl-sys/src/handwritten/pkcs7.rs
@@ -1,12 +1,149 @@
use super::super::*;
use libc::*;
-pub enum PKCS7_SIGNED {}
-pub enum PKCS7_ENVELOPE {}
-pub enum PKCS7_SIGN_ENVELOPE {}
-pub enum PKCS7_DIGEST {}
-pub enum PKCS7_ENCRYPT {}
-pub enum PKCS7 {}
+#[cfg(ossl300)]
+#[repr(C)]
+pub struct PKCS7_CTX {
+ libctx: *mut OSSL_LIB_CTX,
+ propq: *mut c_char,
+}
+
+#[repr(C)]
+pub struct PKCS7_SIGNED {
+ pub version: *mut ASN1_INTEGER, /* version 1 */
+ pub md_algs: *mut stack_st_X509_ALGOR, /* md used */
+ pub cert: *mut stack_st_X509, /* [ 0 ] */
+ pub crl: *mut stack_st_X509_CRL, /* [ 1 ] */
+ pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO,
+ pub contents: *mut PKCS7,
+}
+#[repr(C)]
+pub struct PKCS7_ENC_CONTENT {
+ pub content_type: *mut ASN1_OBJECT,
+ pub algorithm: *mut X509_ALGOR,
+ pub enc_data: *mut ASN1_OCTET_STRING, /* [ 0 ] */
+ pub cipher: *const EVP_CIPHER,
+ #[cfg(ossl300)]
+ pub ctx: *const PKCS7_CTX,
+}
+#[repr(C)]
+pub struct PKCS7_ENVELOPE {
+ pub version: *mut ASN1_INTEGER, /* version 0 */
+ pub recipientinfo: *mut stack_st_PKCS7_RECIP_INFO,
+ pub enc_data: *mut PKCS7_ENC_CONTENT,
+}
+#[repr(C)]
+pub struct PKCS7_SIGN_ENVELOPE {
+ pub version: *mut ASN1_INTEGER, /* version 1 */
+ pub md_algs: *mut stack_st_X509_ALGOR, /* md used */
+ pub cert: *mut stack_st_X509, /* [ 0 ] */
+ pub crl: *mut stack_st_X509_CRL, /* [ 1 ] */
+ pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO,
+ pub enc_data: *mut PKCS7_ENC_CONTENT,
+ pub recipientinfo: *mut stack_st_PKCS7_RECIP_INFO,
+}
+#[repr(C)]
+pub struct PKCS7_DIGEST {
+ pub version: *mut ASN1_INTEGER, /* version 0 */
+ pub md: *mut X509_ALGOR, /* md used */
+ pub contents: *mut PKCS7,
+ pub digest: *mut ASN1_OCTET_STRING,
+}
+#[repr(C)]
+pub struct PKCS7_ENCRYPT {
+ pub version: *mut ASN1_INTEGER, /* version 0 */
+ pub enc_data: *mut PKCS7_ENC_CONTENT,
+}
+
+extern "C" {
+ pub fn PKCS7_SIGNED_free(info: *mut PKCS7_SIGNED);
+ pub fn PKCS7_ENC_CONTENT_free(info: *mut PKCS7_ENC_CONTENT);
+ pub fn PKCS7_ENVELOPE_free(info: *mut PKCS7_ENVELOPE);
+ pub fn PKCS7_SIGN_ENVELOPE_free(info: *mut PKCS7_SIGN_ENVELOPE);
+ pub fn PKCS7_DIGEST_free(info: *mut PKCS7_DIGEST);
+ pub fn PKCS7_SIGNER_INFO_free(info: *mut PKCS7_SIGNER_INFO);
+ pub fn PKCS7_ENCRYPT_free(enc: *mut PKCS7_ENCRYPT);
+ pub fn PKCS7_ISSUER_AND_SERIAL_free(ias: *mut PKCS7_ISSUER_AND_SERIAL);
+ pub fn PKCS7_RECIP_INFO_free(info: *mut PKCS7_RECIP_INFO);
+}
+
+#[repr(C)]
+pub struct PKCS7 {
+ /*
+ * The following is non NULL if it contains ASN1 encoding of this
+ * structure
+ */
+ pub asn1: *mut c_uchar,
+ pub length: c_long,
+ // # define PKCS7_S_HEADER 0
+ // # define PKCS7_S_BODY 1
+ // # define PKCS7_S_TAIL 2
+ pub state: c_int, /* used during processing */
+ pub detached: c_int,
+ pub type_: *mut ASN1_OBJECT,
+ /* content as defined by the type */
+ /*
+ * all encryption/message digests are applied to the 'contents', leaving
+ * out the 'type' field.
+ */
+ pub d: PKCS7_data,
+ #[cfg(ossl300)]
+ pub ctx: PKCS7_CTX,
+}
+
+#[repr(C)]
+pub union PKCS7_data {
+ pub ptr: *mut c_char,
+ /* NID_pkcs7_data */
+ pub data: *mut ASN1_OCTET_STRING,
+ /* NID_pkcs7_signed */
+ pub sign: *mut PKCS7_SIGNED,
+ /* NID_pkcs7_enveloped */
+ pub enveloped: *mut PKCS7_ENVELOPE,
+ /* NID_pkcs7_signedAndEnveloped */
+ pub signed_and_enveloped: *mut PKCS7_SIGN_ENVELOPE,
+ /* NID_pkcs7_digest */
+ pub digest: *mut PKCS7_DIGEST,
+ /* NID_pkcs7_encrypted */
+ pub encrypted: *mut PKCS7_ENCRYPT,
+ /* Anything else */
+ pub other: *mut ASN1_TYPE,
+}
+
+#[repr(C)]
+pub struct PKCS7_ISSUER_AND_SERIAL {
+ pub issuer: *mut X509_NAME,
+ pub serial: *mut ASN1_INTEGER,
+}
+
+#[repr(C)]
+pub struct PKCS7_SIGNER_INFO {
+ pub version: *mut ASN1_INTEGER, /* version 1 */
+ pub issuer_and_serial: *mut PKCS7_ISSUER_AND_SERIAL,
+ pub digest_alg: *mut X509_ALGOR,
+ pub auth_attr: *mut stack_st_X509_ATTRIBUTE, /* [ 0 ] */
+ pub digest_enc_alg: *mut X509_ALGOR,
+ pub enc_digest: *mut ASN1_OCTET_STRING,
+ pub unauth_attr: *mut stack_st_X509_ATTRIBUTE, /* [ 1 ] */
+ pub pkey: *mut EVP_PKEY, /* The private key to sign with */
+ #[cfg(ossl300)]
+ pub ctx: *const PKCS7_CTX,
+}
+
+stack!(stack_st_PKCS7_SIGNER_INFO);
+
+#[repr(C)]
+pub struct PKCS7_RECIP_INFO {
+ pub version: *mut ASN1_INTEGER, /* version 0 */
+ pub issuer_and_serial: *mut PKCS7_ISSUER_AND_SERIAL,
+ pub key_enc_algor: *mut X509_ALGOR,
+ pub enc_key: *mut ASN1_OCTET_STRING,
+ pub cert: *mut X509, /* get the pub-key from this */
+ #[cfg(ossl300)]
+ pub ctx: *const PKCS7_CTX,
+}
+
+stack!(stack_st_PKCS7_RECIP_INFO);
extern "C" {
pub fn d2i_PKCS7(a: *mut *mut PKCS7, pp: *mut *const c_uchar, length: c_long) -> *mut PKCS7;
@@ -15,6 +152,7 @@ extern "C" {
const_ptr_api! {
extern "C" {
pub fn i2d_PKCS7(a: #[const_ptr_if(ossl300)] PKCS7, buf: *mut *mut u8) -> c_int;
+ pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: #[const_ptr_if(ossl300)] PKCS7) -> c_int;
}
}
@@ -67,4 +205,53 @@ extern "C" {
) -> c_int;
pub fn SMIME_read_PKCS7(bio: *mut BIO, bcont: *mut *mut BIO) -> *mut PKCS7;
+
+ pub fn PKCS7_new() -> *mut PKCS7;
+
+ pub fn PKCS7_set_type(p7: *mut PKCS7, nid_pkcs7: c_int) -> c_int;
+
+ pub fn PKCS7_add_certificate(p7: *mut PKCS7, x509: *mut X509) -> c_int;
+
+ pub fn PKCS7_add_signature(
+ p7: *mut PKCS7,
+ x509: *mut X509,
+ pkey: *mut EVP_PKEY,
+ digest: *const EVP_MD,
+ ) -> *mut PKCS7_SIGNER_INFO;
+
+ pub fn PKCS7_set_signed_attributes(
+ p7si: *mut PKCS7_SIGNER_INFO,
+ attributes: *mut stack_st_X509_ATTRIBUTE,
+ ) -> c_int;
+
+ pub fn PKCS7_add_signed_attribute(
+ p7si: *mut PKCS7_SIGNER_INFO,
+ nid: c_int,
+ attrtype: c_int,
+ data: *mut c_void,
+ ) -> c_int;
+
+ pub fn PKCS7_content_new(p7: *mut PKCS7, nid_pkcs7: c_int) -> c_int;
+
+ pub fn PKCS7_dataInit(p7: *mut PKCS7, bio: *mut BIO) -> *mut BIO;
+
+ pub fn PKCS7_dataFinal(p7: *mut PKCS7, bio: *mut BIO) -> c_int;
+
+ pub fn PKCS7_get_signer_info(p7: *mut PKCS7) -> *mut stack_st_PKCS7_SIGNER_INFO;
+
+ pub fn PKCS7_SIGNER_INFO_get0_algs(
+ si: *mut PKCS7_SIGNER_INFO,
+ pk: *mut *mut EVP_PKEY,
+ pdig: *mut *mut X509_ALGOR,
+ psig: *mut *mut X509_ALGOR,
+ );
+}
+
+const_ptr_api! {
+ extern "C" {
+ pub fn PKCS7_get_signed_attribute(
+ si: #[const_ptr_if(ossl300)] PKCS7_SIGNER_INFO,
+ nid: c_int
+ ) -> *mut ASN1_TYPE;
+ }
}
diff --git a/vendor/openssl-sys/src/handwritten/types.rs b/vendor/openssl-sys/src/handwritten/types.rs
index b229a3759..06354728f 100644
--- a/vendor/openssl-sys/src/handwritten/types.rs
+++ b/vendor/openssl-sys/src/handwritten/types.rs
@@ -3,14 +3,27 @@ use libc::*;
#[allow(unused_imports)]
use super::super::*;
+pub enum ASN1_OBJECT {}
+pub enum ASN1_VALUE {}
+
+pub type ASN1_BOOLEAN = c_int;
pub enum ASN1_INTEGER {}
+pub enum ASN1_ENUMERATED {}
pub enum ASN1_GENERALIZEDTIME {}
pub enum ASN1_STRING {}
pub enum ASN1_BIT_STRING {}
pub enum ASN1_TIME {}
-pub enum ASN1_TYPE {}
-pub enum ASN1_OBJECT {}
pub enum ASN1_OCTET_STRING {}
+pub enum ASN1_NULL {}
+pub enum ASN1_PRINTABLESTRING {}
+pub enum ASN1_T61STRING {}
+pub enum ASN1_IA5STRING {}
+pub enum ASN1_GENERALSTRING {}
+pub enum ASN1_BMPSTRING {}
+pub enum ASN1_UNIVERSALSTRING {}
+pub enum ASN1_UTCTIME {}
+pub enum ASN1_VISIBLESTRING {}
+pub enum ASN1_UTF8STRING {}
pub enum bio_st {} // FIXME remove
cfg_if! {
@@ -112,6 +125,8 @@ pub enum EVP_PKEY_ASN1_METHOD {}
pub enum EVP_PKEY_CTX {}
+pub enum CMAC_CTX {}
+
cfg_if! {
if #[cfg(any(ossl110, libressl280))] {
pub enum HMAC_CTX {}
@@ -325,6 +340,8 @@ cfg_if! {
}
}
+stack!(stack_st_X509_ALGOR);
+
pub enum X509_LOOKUP_METHOD {}
pub enum X509_NAME {}
diff --git a/vendor/openssl-sys/src/handwritten/x509.rs b/vendor/openssl-sys/src/handwritten/x509.rs
index 37bbf7b08..f5e3c2428 100644
--- a/vendor/openssl-sys/src/handwritten/x509.rs
+++ b/vendor/openssl-sys/src/handwritten/x509.rs
@@ -17,6 +17,8 @@ pub enum X509_EXTENSION {}
stack!(stack_st_X509_EXTENSION);
+pub enum X509_ATTRIBUTE {}
+
stack!(stack_st_X509_ATTRIBUTE);
cfg_if! {
@@ -276,6 +278,7 @@ extern "C" {
pub fn X509_NAME_ENTRY_free(x: *mut X509_NAME_ENTRY);
pub fn X509_NAME_new() -> *mut X509_NAME;
+ pub fn X509_NAME_cmp(x: *const X509_NAME, y: *const X509_NAME) -> c_int;
pub fn X509_NAME_free(x: *mut X509_NAME);
pub fn X509_new() -> *mut X509;
@@ -362,6 +365,33 @@ const_ptr_api! {
}
}
extern "C" {
+ pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> c_int;
+ pub fn X509_REQ_get_attr_by_NID(req: *const X509_REQ, nid: c_int, lastpos: c_int) -> c_int;
+ pub fn X509_REQ_get_attr(req: *const X509_REQ, loc: c_int) -> *mut X509_ATTRIBUTE;
+ pub fn X509_REQ_delete_attr(req: *mut X509_REQ, loc: c_int) -> *mut X509_ATTRIBUTE;
+ pub fn X509_REQ_add1_attr_by_txt(
+ req: *mut X509_REQ,
+ attrname: *const c_char,
+ chtype: c_int,
+ bytes: *const c_uchar,
+ len: c_int,
+ ) -> c_int;
+ pub fn X509_REQ_add1_attr_by_NID(
+ req: *mut X509_REQ,
+ nid: c_int,
+ chtype: c_int,
+ bytes: *const c_uchar,
+ len: c_int,
+ ) -> c_int;
+ pub fn X509_REQ_add1_attr_by_OBJ(
+ req: *mut X509_REQ,
+ obj: *const ASN1_OBJECT,
+ chtype: c_int,
+ bytes: *const c_uchar,
+ len: c_int,
+ ) -> c_int;
+}
+extern "C" {
pub fn X509_set_pubkey(x: *mut X509, pkey: *mut EVP_PKEY) -> c_int;
pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> c_int;
#[cfg(any(ossl110, libressl273))]
@@ -616,6 +646,7 @@ const_ptr_api! {
pub fn X509_STORE_get0_objects(ctx: #[const_ptr_if(ossl300)] X509_STORE) -> *mut stack_st_X509_OBJECT;
}
}
+
#[cfg(any(ossl110, libressl270))]
extern "C" {
pub fn X509_OBJECT_get0_X509(x: *const X509_OBJECT) -> *mut X509;
@@ -642,7 +673,6 @@ extern "C" {
extern "C" {
pub fn X509_cmp(a: *const X509, b: *const X509) -> c_int;
- pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> c_int;
pub fn X509_issuer_and_serial_cmp(a: *const X509, b: *const X509) -> c_int;
pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> c_int;
pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> c_int;
@@ -670,6 +700,68 @@ pub struct X509_PURPOSE {
const_ptr_api! {
extern "C" {
pub fn X509_PURPOSE_get_by_sname(sname: #[const_ptr_if(any(ossl110, libressl280))] c_char) -> c_int;
- pub fn X509_PURPOSE_get0(idx: c_int) -> *mut X509_PURPOSE;
+ }
+}
+extern "C" {
+ pub fn X509_PURPOSE_get0(idx: c_int) -> *mut X509_PURPOSE;
+}
+
+extern "C" {
+ pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE;
+ pub fn X509_ATTRIBUTE_free(attr: *mut X509_ATTRIBUTE);
+ pub fn X509_ATTRIBUTE_create(
+ nid: c_int,
+ atrtype: c_int,
+ value: *mut c_void,
+ ) -> *mut X509_ATTRIBUTE;
+ pub fn X509_ATTRIBUTE_create_by_NID(
+ attr: *mut *mut X509_ATTRIBUTE,
+ nid: c_int,
+ atrtype: c_int,
+ data: *const c_void,
+ len: c_int,
+ ) -> *mut X509_ATTRIBUTE;
+ pub fn X509_ATTRIBUTE_create_by_OBJ(
+ attr: *mut *mut X509_ATTRIBUTE,
+ obj: *const ASN1_OBJECT,
+ atrtype: c_int,
+ data: *const c_void,
+ len: c_int,
+ ) -> *mut X509_ATTRIBUTE;
+ pub fn X509_ATTRIBUTE_create_by_txt(
+ attr: *mut *mut X509_ATTRIBUTE,
+ atrname: *const c_char,
+ atrtype: c_int,
+ bytes: *const c_uchar,
+ len: c_int,
+ ) -> *mut X509_ATTRIBUTE;
+ pub fn X509_ATTRIBUTE_set1_object(attr: *mut X509_ATTRIBUTE, obj: *const ASN1_OBJECT) -> c_int;
+ pub fn X509_ATTRIBUTE_set1_data(
+ attr: *mut X509_ATTRIBUTE,
+ attrtype: c_int,
+ data: *const c_void,
+ len: c_int,
+ ) -> c_int;
+ pub fn X509_ATTRIBUTE_get0_data(
+ attr: *mut X509_ATTRIBUTE,
+ idx: c_int,
+ atrtype: c_int,
+ data: *mut c_void,
+ ) -> *mut c_void;
+ pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT;
+ pub fn X509_ATTRIBUTE_get0_type(attr: *mut X509_ATTRIBUTE, idx: c_int) -> *mut ASN1_TYPE;
+ pub fn d2i_X509_ATTRIBUTE(
+ a: *mut *mut X509_ATTRIBUTE,
+ pp: *mut *const c_uchar,
+ length: c_long,
+ ) -> *mut X509_ATTRIBUTE;
+}
+const_ptr_api! {
+ extern "C" {
+ pub fn X509_ATTRIBUTE_count(
+ attr: #[const_ptr_if(any(ossl110, libressl280))] X509_ATTRIBUTE // const since OpenSSL v1.1.0
+ ) -> c_int;
+ pub fn i2d_X509_ATTRIBUTE(x: #[const_ptr_if(ossl300)] X509_ATTRIBUTE, buf: *mut *mut u8) -> c_int;
+ pub fn X509_ATTRIBUTE_dup(x: #[const_ptr_if(ossl300)] X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE;
}
}
diff --git a/vendor/openssl-sys/src/handwritten/x509v3.rs b/vendor/openssl-sys/src/handwritten/x509v3.rs
index 4a15f3df5..09a92640b 100644
--- a/vendor/openssl-sys/src/handwritten/x509v3.rs
+++ b/vendor/openssl-sys/src/handwritten/x509v3.rs
@@ -102,6 +102,14 @@ extern "C" {
pub fn X509_get_key_usage(x: *mut X509) -> u32;
#[cfg(ossl110)]
pub fn X509_get_extended_key_usage(x: *mut X509) -> u32;
+ #[cfg(ossl110)]
+ pub fn X509_get0_subject_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING;
+ #[cfg(ossl110)]
+ pub fn X509_get0_authority_key_id(x: *mut X509) -> *const ASN1_OCTET_STRING;
+ #[cfg(ossl111)]
+ pub fn X509_get0_authority_issuer(x: *mut X509) -> *const stack_st_GENERAL_NAME;
+ #[cfg(ossl111)]
+ pub fn X509_get0_authority_serial(x: *mut X509) -> *const ASN1_INTEGER;
}
#[repr(C)]
diff --git a/vendor/openssl-sys/src/obj_mac.rs b/vendor/openssl-sys/src/obj_mac.rs
index 1f8e10003..22bfccba3 100644
--- a/vendor/openssl-sys/src/obj_mac.rs
+++ b/vendor/openssl-sys/src/obj_mac.rs
@@ -927,6 +927,8 @@ pub const NID_X448: c_int = 1035;
#[cfg(ossl110)]
pub const NID_hkdf: c_int = 1036;
#[cfg(ossl111)]
+pub const NID_poly1305: c_int = 1061;
+#[cfg(ossl111)]
pub const NID_ED25519: c_int = 1087;
#[cfg(libressl370)]
pub const NID_ED25519: c_int = 952;
diff --git a/vendor/openssl-sys/src/tls1.rs b/vendor/openssl-sys/src/tls1.rs
index f7ae30204..2cb08a91f 100644
--- a/vendor/openssl-sys/src/tls1.rs
+++ b/vendor/openssl-sys/src/tls1.rs
@@ -10,6 +10,10 @@ pub const TLS1_2_VERSION: c_int = 0x303;
#[cfg(any(ossl111, libressl340))]
pub const TLS1_3_VERSION: c_int = 0x304;
+pub const DTLS1_VERSION: c_int = 0xFEFF;
+#[cfg(any(ossl102, libressl332))]
+pub const DTLS1_2_VERSION: c_int = 0xFEFD;
+
pub const TLS1_AD_DECODE_ERROR: c_int = 50;
pub const TLS1_AD_UNRECOGNIZED_NAME: c_int = 112;
diff --git a/vendor/openssl-sys/src/x509v3.rs b/vendor/openssl-sys/src/x509v3.rs
index 5ae443908..d2ff53489 100644
--- a/vendor/openssl-sys/src/x509v3.rs
+++ b/vendor/openssl-sys/src/x509v3.rs
@@ -91,3 +91,14 @@ pub const X509_PURPOSE_OCSP_HELPER: c_int = 8;
pub const X509_PURPOSE_TIMESTAMP_SIGN: c_int = 9;
pub const X509_PURPOSE_MIN: c_int = 1;
pub const X509_PURPOSE_MAX: c_int = 9;
+
+pub const CRL_REASON_UNSPECIFIED: c_int = 0;
+pub const CRL_REASON_KEY_COMPROMISE: c_int = 1;
+pub const CRL_REASON_CA_COMPROMISE: c_int = 2;
+pub const CRL_REASON_AFFILIATION_CHANGED: c_int = 3;
+pub const CRL_REASON_SUPERSEDED: c_int = 4;
+pub const CRL_REASON_CESSATION_OF_OPERATION: c_int = 5;
+pub const CRL_REASON_CERTIFICATE_HOLD: c_int = 6;
+pub const CRL_REASON_REMOVE_FROM_CRL: c_int = 8;
+pub const CRL_REASON_PRIVILEGE_WITHDRAWN: c_int = 9;
+pub const CRL_REASON_AA_COMPROMISE: c_int = 10;