Commit Graph

2816 Commits

Author SHA1 Message Date
Noah 8cfb59b9ea
Add a way to get the certificates stored in an X509Store 2020-03-22 23:20:59 -05:00
Steven Fackler dbc5459d63
Merge pull request #1246 from mneumann/fix-build-on-dragonflybsd
Fix build on DragonFly
2020-03-21 10:30:06 -04: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
Steven Fackler 1994a523dc Upgrade CI versions 2020-03-19 16:13:17 -07:00
Steven Fackler 614e739ef0
Merge pull request #1241 from adrian-budau/master
Fix the memory leak in `X509Builder::append_extension`.
2020-02-26 10:13:16 -05:00
Adrian Budau e7d0e69c74
Fix the memory leak in `X509Builder::append_extension`.
Also add an alternative method that takes a `X509ExtensionRef`.
2020-02-26 16:23:46 +02:00
Steven Fackler 99d63acb33
Merge pull request #1238 from mcgoo/master
use library names supplied by vcpkg
2020-02-26 07:14:28 -05:00
Jim McGrath 03b8b29e4c use library names supplied by vcpkg 2020-02-26 00:04:16 -06:00
Steven Fackler 7801226796 Tweak interface a bit 2020-02-12 16:14:28 -08:00
Steven Fackler eed35cefb0
Merge pull request #1229 from axos88/master
SslAcceptor and SslConnector: Ability to turn into SslContext
2020-02-12 19:10:01 -05:00
Akos Vandra c81810d869 adds ability access the internal &SslContext of an SslAcceptor and SslConnector 2020-02-12 22:15:11 +01:00
Steven Fackler 2dec15dbaa
Merge pull request #1232 from rbtying/warn_non_snake
Allow bad style on EVP_PKEY_up_ref  in pkey.rs
2020-02-11 19:18:27 -05:00
Nipunn Koorapati 16d93a9372 Allow bad style on pkey.rs 2020-02-11 14:28:53 -08:00
Steven Fackler ec46d27f83
Merge pull request #1231 from rbtying/allow_deprecated
Attach cfg[allow_deprecated] to methods w/ uninitialized functionality
2020-02-11 01:49:16 +00: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 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
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
Steven Fackler 6f4a592a2c
Merge pull request #1225 from kubo39/no-renegotiation-option
Add NO RENEGOTIATION option
2020-01-27 14:49:37 -05: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 bb1cf5ef19
Merge pull request #1222 from kubo39/EVP-APIs-encrypt-and-decrypt
Add EVP_EncryptInit_ex/EVP_EncryptFinish_ex, and the equivalently named
2020-01-27 08:55:44 -05: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
Steven Fackler eda3ada731
Merge pull request #1219 from alex/patch-1
Update to autocfg 1.0
2020-01-10 07:16:34 -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
Steven Fackler dfd9dfb289
Merge pull request #1216 from kentfredric/bug-1215
Avoid false-failures if underlying network connection errors
2019-12-27 09:26:41 -08: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 9b2eced529 Upgrade 1.0.2 in CI 2019-12-24 09:12:40 -08:00
Steven Fackler 4a05dc7894
Merge pull request #1205 from npmccallum/modernize
Fix warnings on newer Rust
2019-12-24 07:48:04 -08:00
Steven Fackler abc46f599e
Merge pull request #1210 from AnderEnder/remove-deprecated-error-description
Remove deprecated Error::description and Error::cause
2019-12-21 19:42:35 -05: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
Steven Fackler 93b2862b91
Merge pull request #1200 from froydnj/patch-1
fix a typo in the description of `Asn1Time`
2019-12-09 16:26:51 -05:00
Nathan Froyd 6202626629
fix a typo in the description of `Asn1Time` 2019-12-09 16:23:27 -05:00
Steven Fackler 9ccddf7abc
Merge pull request #1196 from oberien/private-key-from-pkcs8
Support for PKCS#8 unencrypted private key deserialization
2019-12-03 21:37:21 -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