Commit Graph

1389 Commits

Author SHA1 Message Date
Steven Fackler 62187377b5 Release openssl v0.10.28 2020-02-04 21:58:26 +00:00
Steven Fackler 4b1564ebc1 Fix mutability of oneshot sign/verify methods 2020-02-04 21:50:40 +00:00
Steven Fackler 972c7ae11a
Fix visibility of Signer::new_intern 2020-02-03 16:18:23 +00:00
Steven Fackler 61d5a1e38d Release openssl v0.10.27 2020-01-29 15:40:05 -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
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
Hyeonu Park 4d5e5e1787 add SslStreamBuilder::set_dtls_mtu_size(usize) 2019-12-29 04:17:00 +09:00
Kent Fredric bba670dc90 Avoid false-failures if underlying network connection errors
In Air-Gapped or otherwise network-restricted environments,
   TcpStream::connect can spuriously fail due to name resolution
   failure, or just in establishing the socket itself.

In this situation, the test can't give a meaningful result, and this
failure doesn't indicate a problem in the OpenSSL stack.

Bug: https://github.com/sfackler/rust-openssl/issues/1215
2019-12-27 21:15:39 +13:00
Steven Fackler 4a05dc7894
Merge pull request #1205 from npmccallum/modernize
Fix warnings on newer Rust
2019-12-24 07:48:04 -08:00
Andrii Radyk fc3c0a93d5 remove deprecated Error::description, replace deprecated cause with source 2019-12-21 23:53:49 +01:00
Steven Fackler 0815ac9b5d
Merge pull request #1208 from Sach1nAgarwal/comment2
Fix documentation typo of "the"
2019-12-20 09:14:58 -05:00
Steven Fackler 4cec131f37
Merge pull request #1207 from Sach1nAgarwal/comment1
In the documentation of SslContextBuilder::set_session_id_context, we…
2019-12-20 09:14:44 -05:00
Steven Fackler 3ca6974f9e
Merge pull request #1209 from Sach1nAgarwal/comment3
Fix documentation typo of link
2019-12-20 09:14:28 -05:00
Sachin agarwal 81cd1736d9 In the documentation of SslContextBuilder::set_cipher_list, we had given
link of "SSL_get_client_ciphers" rather than "SSL_CTX_set_cipher_list". In this commit,
we fix the typo.
2019-12-20 08:48:38 +05:30
Sachin agarwal 7599cc5b43 In the documentation of SslContextBuilder::set_certificate, we had written
"lthe" rather than "the". In this commit,
we fix the typo.
2019-12-20 08:40:01 +05:30
Sachin agarwal 96c49eee3c In the documentation of SslContextBuilder::set_session_id_context, we had written
"be be" rather than "be". In this commit,
we fix the typo.
2019-12-20 08:32:51 +05:30
Nathaniel McCallum 2e00fb371b Replace try!() with ? 2019-12-17 16:09:06 +00:00
Steven Fackler 0d8561b58a
Merge pull request #1202 from traviscross/fix-chain-typo
Fix documentation typo of "chain"
2019-12-13 07:19:44 -05:00
Travis Cross ac8214dad3 Fix documentation typo of "chain"
In the documentation of `SslRef::verified_chain`, we had written
"certificate chani" rather than "certificate chain".  In this commit,
we fix the typo.
2019-12-12 22:03:42 +00:00
Steven Fackler 2fe7462aa9
Fix link
Closes #1201
2019-12-12 07:25:29 -05:00
Nathan Froyd 6202626629
fix a typo in the description of `Asn1Time` 2019-12-09 16:23:27 -05: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 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
Yingcai Feng 395142f7cf
Update openssl/src/hash.rs
Rename MessageDigest::md_null to MessageDigest::null

Co-Authored-By: Steven Fackler <sfackler@gmail.com>
2019-11-23 22:46:32 +08:00
Steven Fackler 2034331e0e Release openssl v0.10.26 2019-11-22 15:35:03 -08:00
Steven Fackler a5c757f164 Release openssl-sys v0.9.53 2019-11-22 15:29:03 -08:00
Steven Fackler 605003eec8 Fix up base64 docs 2019-11-22 15:22:47 -08:00
fengyingcai 288b189de0 Add EVP_md_null() and MessageDigest::md_null() 2019-11-22 16:33:15 +08:00
Steven Fackler 18552f1f1d Cleanup 2019-11-21 17:10:34 -08:00
Steven Fackler b5eafedf17
Merge pull request #1191 from sfackler/fix-seal
Fix IV handling in envelope
2019-11-21 20:09:21 -05: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 ca5474683a Fix IV handling in envelope
Closes #1190
2019-11-21 16:59:44 -08: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 86db2315d4 Avoid initialization overhead for base64 coding 2019-11-14 10:09:44 +01:00
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 5991f425fa Added unit test to test that new cloning feature works as intended 2019-11-11 16:40:05 -08: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
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
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
Steven Fackler bb3e0f474b Release openssl v0.10.25 2019-10-02 17:52:36 -07:00
Steven Fackler 02c3262be8 Release openssl-sys v0.9.50 2019-10-02 17:46:57 -07:00