Commit Graph

751 Commits

Author SHA1 Message Date
Steven Fackler ef369f827e
Merge pull request #1249 from coolreader18/more-ssl-method
Add SslMethod::tls_{client,server}
2020-03-25 20:57:23 -04:00
Noah 354a984a7c
Add SslMethod::tls_{client,server} 2020-03-24 21:56:04 -05:00
Noah 41162e27ab
Add a shim for X509_STORE_get0_objects and X509_OBJECT_free 2020-03-24 12:33:54 -05:00
Noah 5c6179ce07
Only have constants on < ossl110 2020-03-23 17:04:31 -05:00
Noah 59bff6de85
Skip X509_OBJECT_data systests 2020-03-23 17:04:30 -05:00
Noah dfb3cb9579
Fix signedness issue 2020-03-23 10:17:02 -05:00
Noah 8cfb59b9ea
Add a way to get the certificates stored in an X509Store 2020-03-22 23:20:59 -05:00
Michael Neumann 6254c1881b Fix build on DragonFly
DragonFly has libressl/openssl in ports (/usr/local). With this commit,
rust-openssl builds out of the box given that either libressl or openssl is
installed (which is usually the case).

Tested on DragonFly 5.9-DEVELOPMENT with libressl-3.0.2.
2020-03-21 12:46:59 +01:00
Jim McGrath 03b8b29e4c use library names supplied by vcpkg 2020-02-26 00:04:16 -06:00
Nipunn Koorapati 4898f60e52 Attach cfg[allow_deprecated] to methods w/ uninitialized functionality
Additionally - update usage of ONCE_INIT
2020-02-10 12:53:51 -08:00
Steven Fackler e02d85c799 Fix changelog 2020-01-29 15:37:46 -08:00
Steven Fackler 216ffd0791 Release openssl-sys v0.9.54 2020-01-29 15:36:49 -08:00
Hiroki Noda 9189b67326 Add NO RENEGOTIATION option
SSL_OP_NO_RENEGOTIATION was added in OpenSSLv1.1.1 and backported to
v1.1.0h.
2020-01-28 04:07:38 +09:00
Hiroki Noda 78c1e2409d Add EVP_EncryptInit_ex/EVP_EncryptFinish_ex, and the equivalently named
decrypt functions

Some functions including low level AES functions would be deprecated
in next OpenSSL version(3.0).
OpenSSL team says that application should use the high level EVP APIs,
so I added these functions.

See also:
https://github.com/openssl/openssl/pull/10580
https://github.com/openssl/openssl/pull/10740
2020-01-25 00:49:47 +09:00
Steven Fackler ad37e7e07d
Merge pull request #1160 from HyeonuPark/set-dtls-mtu
Add ssl::set_dtls_mtu_size(usize)
2020-01-13 12:53:23 -05:00
Alex Gaynor 9e6e36417d
Update to autocfg 1.0 2020-01-09 23:12:01 -05:00
Hyeonu Park 4d5e5e1787 add SslStreamBuilder::set_dtls_mtu_size(usize) 2019-12-29 04:17:00 +09:00
oberien 9f4c489588 Use d2i_PKCS8_PRIV_KEY_INFO instead of *_bio 2019-12-04 02:02:33 +01:00
oberien fc529b6c81 Pkey::private_key_from_pkcs8 free p8inf 2019-12-03 03:05:05 +01:00
oberien 4b2d46c252 Fix pointer constness correctly 2019-12-01 03:38:31 +01:00
oberien a042edd134 Change *const to *mut to try if it fixes tests 2019-12-01 03:29:57 +01:00
oberien 4218e121d0 move EVP_PKCS82PKEY into evp module 2019-12-01 03:15:52 +01:00
oberien a7fa260331 Support for PKCS#8 unencrypted private key deserialization 2019-12-01 03:02:01 +01:00
Steven Fackler 454cb6f9bc
Merge pull request #1192 from fengyc/master
Add EVP_md_null() and MessageDigest::md_null()
2019-11-23 10:17:07 -05:00
Steven Fackler a5c757f164 Release openssl-sys v0.9.53 2019-11-22 15:29:03 -08:00
fengyingcai 288b189de0 Add EVP_md_null() and MessageDigest::md_null() 2019-11-22 16:33:15 +08:00
Steven Fackler 56335d12fc
Merge pull request #1183 from adamreichold/base64
Expose OpenSSL interfaces for base64 coding.
2019-11-21 20:04:18 -05:00
Steven Fackler f85d631fcf
Merge pull request #1184 from Atul9/cargo-fmt
Format code using 'cargo fmt'
2019-11-21 20:01:39 -05:00
Steven Fackler 0fb1e55a98 Allow configuration of EC groups and signature algorithms
Closes #1186
2019-11-16 10:54:27 -08:00
Atul Bhosale 784978bad0
Format code using 'cargo fmt' 2019-11-14 21:00:53 +05:30
Adam Reichold bcbebbcace Expose EVP_{Encode,Decode}Block interfaces for base64 coding 2019-11-14 10:06:24 +01:00
Steven Fackler 34c2b69118
Merge pull request #1180 from PrismaPhonic/master
Added clonability for sha hash state.  Useful for incremental hashing
2019-11-11 21:01:19 -05:00
Peter Farr 8fae1115a4 Changed all sha objects to be clonable per PR review suggestion. 2019-11-11 16:31:47 -08:00
Lukas Lihotzki 258c49a581 Add #[cfg(ossl110)] 2019-11-11 23:03:40 +01:00
Lukas Lihotzki 6d6429237d Add EC_GROUP_order_bits 2019-11-11 22:04:14 +01:00
Peter Farr 22f029064a Added clonability for sha hash state. Useful for incremental hashing 2019-11-11 11:09:49 -08:00
Steven Fackler dc72a8e2c4
Merge pull request #1173 from griff/rework-673
Add methods for comparing Asn1TimeRef and creating Asn1Time from Unix time
2019-10-21 20:37:41 -04:00
Steven Fackler 0e72e5d27f Release openssl-sys v0.9.52 2019-10-19 07:35:52 -07:00
Charlie Li f66c860fce Support LibreSSL 3.0.2
3.0.2 is the first stable release, so support the rest of the series.
2019-10-19 09:56:56 -04:00
Brian Olsen 80e0dd03ba
Add method to create Asn1Time from time_t value
This is mostly just a rework of the earlier work done by @illegalprime
in his PR #673 and credit should go to him.
2019-10-13 23:10:16 +02:00
Brian Olsen 14a6a98ebf
Add diff method and comparisons to Asn1TimeRef
This implements a `diff` method on `Asn1TimeRef` using `ASN1_TIME_diff`
and uses this new method to implement combinations of `PartialEq` and
`PartialOrd` for `Asn1Time` and `Asn1TimeRef`.

This is mostly just a rework of the earlier work done by @illegalprime
in his PR #673 and credit should go to him.
2019-10-13 23:09:12 +02:00
Steven Fackler ff14649daf Fix changelog links 2019-10-09 18:04:54 -07:00
Steven Fackler 79fd645c75 Release openssl-sys v0.9.51 2019-10-09 18:03:13 -07:00
Matt Vertescher b771738a3a Fix rustc warnings
- Use `..=` for inclusive ranges
- Add the `dyn` keyword for trait objects
- Switch from `ONCE_INIT` to `std::sync::Once::new()`
2019-10-08 08:35:35 -04:00
Charlie Li e2b51a8705 Support LibreSSL 3.0.1 2019-10-03 09:21:11 -04:00
Steven Fackler 02c3262be8 Release openssl-sys v0.9.50 2019-10-02 17:46:57 -07:00
Steven Fackler 7ce0835b74 Implement Clone for PKey 2019-10-01 18:45:10 -07:00
Sebastian Sturm bdede43afe Added support for Ed25519 and Ed448 signatures 2019-08-16 11:15:04 +02:00
Steven Fackler 8b2c370b86 Release openssl-sys v0.9.49 2019-08-15 22:19:46 -04:00
Steven Fackler 8d521bacbb Support LibreSSL 3.0.0
Closes #1121
2019-08-06 18:36:04 -07:00