Diogo Sousa
2602f49243
Make openssl not cleanup at exit, which can lead to race conditions on openssl >= 1.1.1b.
...
Fixes #1293 .
2020-07-28 12:00:44 +01:00
Steven Fackler
e5e8fb4915
Fix readme link
2020-06-05 15:34:22 -07:00
Steven Fackler
85c95f34a6
Release openssl-sys v0.9.58
2020-06-05 15:33:00 -07:00
Steven Fackler
95a813b646
Merge pull request #1287 from henrydcase/hdc/pke
...
adding PKE interface
2020-06-05 18:27:57 -04:00
Leo
7d129b6413
Add PEM/DER serialization for EC public key
2020-06-05 18:58:59 +08:00
Kris Kwiatkowski
5be8a5e9f4
adding PKE interface
...
The patch adds PKE interface functions, namely:
EVP_PKEY_encrypt_init
EVP_PKEY_encrypt
EVP_PKEY_decrypt_init
EVP_PKEY_decrypt
Additionally it adds functions for getting and
setting public and private key to/from byte array.
EVP_PKEY_get_raw_public_key
EVP_PKEY_new_raw_public_key
EVP_PKEY_get_raw_private_key
EVP_PKEY_new_raw_private_key
Finally it also adds a function for getting NID
of a scheme by it's name (SN).
2020-06-03 23:46:32 +00:00
Charlie Li
32de038385
Support LibreSSL 3.2.0
2020-06-02 06:19:00 -04:00
Steven Fackler
e851708589
Add SslRef::set_mtu
2020-05-25 17:22:24 -07:00
Steven Fackler
f401ba2ec1
Run clippy
2020-05-24 16:31:04 -07:00
Steven Fackler
406031991f
Run rustfmt on github actions
2020-05-24 10:39:01 -07:00
Steven Fackler
72048765c7
Release openssl-sys v0.9.57
2020-05-24 06:34:34 -07:00
Steven Fackler
41ab7f37a5
Merge pull request #1270 from hargoniX/master
...
Add support for AES-OCB mode
2020-05-09 16:08:39 -04:00
Charlie Li
54fbab73b7
LibreSSL 3.1 branch marked as stable; add support
2020-05-08 21:21:51 -04:00
Henrik Böving
f34e9b993d
ocb is only available in openssl 1.1 and later
2020-05-09 01:02:34 +02:00
Henrik Böving
963e3994a5
Add support for AES-OCB mode
2020-05-08 23:16:13 +02:00
Steven Fackler
d2aefe7afc
Release openssl-sys v0.9.56
2020-05-07 16:20:20 -07:00
Thomas Jespersen
dd8e53cb0d
Fix static build on windows-gnu targets
...
Static builds for *-pc-windows-gnu targets broke, because the linker
would look for the incorrect libraries. OpenSSL builds produce
libssl.dll rather than ssl.dll which makes the linker unhappy with the
normal -lssl -lcrypto [1].
A workaround could be used:
export OPENSSL_LIBS="ssl:crypto"
but it's arguably better to have the openssl-sys crate do the right
thing.
[1] http://www.mingw.org/wiki/specify_the_libraries_for_the_linker_to_use
2020-05-02 12:32:31 +02:00
Steven Fackler
622b570f5b
Support LibreSSL 3.1.0
2020-04-19 04:20:23 -07:00
Steven Fackler
adde92879f
Release openssl-sys v0.9.55
2020-04-07 17:54:36 -07:00
Steven Fackler
40e66bab6b
Add SslContextBuilder::set_cert_store
2020-04-07 17:05:38 -07:00
Steven Fackler
b027f16031
Merge pull request #1253 from coolreader18/no-vendor-env-var
...
Check for the OPENSSL_NO_VENDOR environment variable
2020-04-05 10:01:28 -04:00
Noah
830658ec0b
Add OPENSSL_NO_VENDOR env var check
2020-04-04 21:15:27 -05:00
Steven Fackler
2cbc436b8b
Merge pull request #1248 from coolreader18/ssl-functions
...
Add functions for SSL{_CTX}_get_verify_mode and SSL_is_init_finished
2020-03-26 20:52:42 -04:00
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
1e9cc8426e
Add functions for SSL{_CTX}_get_verify_mode and SSL_is_init_finished
2020-03-24 15:32:39 -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