openssl
OpenSSL bindings
0.10.81
377M downloads/mo
#302 most downloaded on crates.io
rust-openssl/rust-openssl
What this package is like to depend on
Last release 2 months ago
12 Jun 2026
Release timing varies
gaps range from 2 weeks to 5 months
Some releases are documented
notes for 79 of 171 stable releases
3 versions withdrawn
withdrawn after publishing
12 years old
174 releases · first in 2014
8 releases in the last 12 months
see the full history below
Release timeline
174 releases · Nov 2014 to Jun 2026Releases
latest 60 of 174-
0.10.8112 Jun 2026Release notes
Open source →What's Changed
- Bump aws-ls-sys to 0.41 by @joshgodsiff in #2640
- Add brainpoolP224r1 and brainpoolP224t1 NID constants by @sfarestam-iproov in #2642
- x509: add minimal support for CRL building by @DavidFontaineOcd in #2538
- add mldsa.h to the boringssl bindgen by @reaperhulk in #2650
- Deprecate Asn1StringRef::as_utf8 in favor of a NUL-safe to_string by @alex in #2652
- Fix verify_mode() panic on unmodeled verify mode bits by @alex in #2651
- Bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #2653
- Release openssl 0.10.81 and openssl-sys 0.9.117 by @reaperhulk in #2655
New Contributors
- @joshgodsiff made their first contribution in #2640
- @sfarestam-iproov made their first contribution in #2642
- @DavidFontaineOcd made their first contribution in #2538
Full Changelog: openssl-v0.10.80...openssl-v0.10.81
Release notes
Open source →Fixed
SslContextRef::verify_modeandSslRef::verify_modeno longer panic when the verify mode contains bits not modeled bySslVerifyMode.
Added
- Added
SslVerifyMode::CLIENT_ONCEandSslVerifyMode::POST_HANDSHAKE. - Added
X509CrlBuilderandX509RevokedBuilder, for building and signing CRLs, along with theCrlNumberextension builder. - Added
Nid::BRAINPOOL_P224R1andNid::BRAINPOOL_P224T1. - Added
Asn1StringRef::to_string, which converts the string to UTF-8 without truncating at interior NUL bytes.
Changed
- Deprecated
Asn1StringRef::as_utf8, which truncates at the first interior NUL byte, in favor ofAsn1StringRef::to_string.
-
0.10.8016 May 2026Release notes
Open source →What's Changed
- Prefer Homebrew openssl@4 and stop looking for [email protected] by @alex in #2633
- Fix output buffer overflow in cipher_update_inplace for AES key-wrap-with-padding by @alex in #2638
- Release openssl 0.10.80 and openssl-sys 0.9.116 by @alex in #2639
Full Changelog: openssl-v0.10.79...openssl-v0.10.80
Release notes
Open source →Fixed
- Fixed a buffer overflow in
CipherCtxRef::cipher_update_inplacewhen used with AES key-wrap-with-padding ciphers.
-
0.10.7904 May 2026Release notes
Open source →What's Changed
- Bump actions/cache from 5.0.4 to 5.0.5 by @dependabot[bot] in #2610
- Try to fix OpenSSL 1.1.0l download by @botovq in #2614
- Require &mut BigNumContextRef for EcPointRef mul/invert by @alex in #2615
- Fix UB in EcGroupRef::generator on groups without a generator by @alex in #2617
- Replace
use libc::*;with targeted imports in openssl-sys by @alex in #2618 - Add PKeyRef::is_a and KeyType for name-based key identification by @reaperhulk in #2619
- Add PKey::{public,private}_key_from_raw_bytes_ex by @reaperhulk in #2620
- Bump MSRV to 1.80 by @reaperhulk in #2622
- Drop once_cell in favor of std::sync::{LazyLock, OnceLock} by @reaperhulk in #2623
- Add PKey::private_key_from_seed for ML-DSA/ML-KEM key import by @reaperhulk in #2621
- parallelize more builds in CI for cold caches by @reaperhulk in #2625
- Add PKeyRef::seed_into for ML-DSA/ML-KEM seed extraction by @reaperhulk in #2626
- Fix process abort when verify/PSK callbacks fire after SSL_CTX swap by @alex in #2624
- Bind OSSL_PARAM_modified and use it for seed_into by @reaperhulk in #2628
- Add PkeyCtxRef::set_context_string for ML-DSA by @reaperhulk in #2629
- Reject non-UTF-8 OCSP responder URLs in X509Ref::ocsp_responders by @alex in #2631
- Fix output buffer overflow for AES key-wrap-with-padding ciphers by @alex in #2630
- Release openssl 0.10.79 and openssl-sys 0.9.115 by @reaperhulk in #2632
Full Changelog: openssl-v0.10.78...openssl-v0.10.79
Release notes
Open source →Changed
- Bumped MSRV to 1.80.
- Removed the
once_celldependency in favor ofstd::sync::{LazyLock, OnceLock}. - Deprecated
EcPointRef::mul,EcPointRef::mul_generator, andEcPointRef::invertin favor ofmul2,mul_generator2, andinvert2, which take&mut BigNumContextRef. The deprecated methods accepted a shared reference despite mutating theBN_CTX, which was unsound underSend + Sync.
Added
- Added
EcGroupRef::generator_opt, which returnsOption<&EcPointRef>. - Added
PKeyRef::seed_into, which writes the algorithm-defined seed of an ML-DSA or ML-KEM private key into a caller-supplied buffer. The inverse ofPKey::private_key_from_seed. - Added
PKey::private_key_from_seed, which constructs ML-DSA and ML-KEM private keypairs from aseedOSSL_PARAMviaEVP_PKEY_fromdata. Requires OpenSSL 3.5 or newer at runtime. - Added
PKeyRef::is_aand theKeyTypealgorithm-name newtype, for identifying provider-supplied keys (such as ML-DSA) whereEVP_PKEY_idreturns-1. - Added
PKey::public_key_from_raw_bytes_exandPKey::private_key_from_raw_bytes_ex, which take aKeyTypeand accept an optional library context and property query string. Required for provider-supplied algorithms with no associatedId, such as ML-DSA. - Added
PkeyCtxRef::set_context_string, which binds a context string to an ML-DSA signing or verification operation. Requires OpenSSL 3.5 or newer. - Added
EcPointRef::mul2,EcPointRef::mul_generator2, andEcPointRef::invert2, which take&mut BigNumContextRef.
Fixed
EcGroupRef::generatorno longer constructs a reference from a NULL pointer when the group has no generator set (e.g. a group built withEcGroup::from_componentsbeforeset_generatoris called), which was immediate undefined behavior. It now panics in that case and has been deprecated in favor ofEcGroupRef::generator_opt.X509Ref::ocsp_respondersnow validates each accessLocation as UTF-8 and returns anErrorStackif any entry is not, rather than constructing a&strcontaining invalid UTF-8 (language-level UB triggerable by a malicious certificate).- Fixed a process abort that could occur when the SSL verify, PSK client, or PSK server callback fired after the underlying
SSL_CTXhad been swapped. - Fixed an output-buffer overflow in
CipherCtxRef::cipher_updateandcipher_update_vecwhen used with AES key-wrap-with-padding ciphers, which emit up toinput.len() + 15bytes during the update call rather than the previously assumedinput.len() + block_size.
-
0.10.7819 Apr 2026Release notes
Open source →What's Changed
- Fix Suite B flag assignments in verify.rs by @alex in #2592
- Use cvt_p for OPENSSL_malloc error handling by @alex in #2593
- Mark BIO_get_mem_data on AWS-LC to be unsafe by @alex in #2594
- Set timeout for package installation step by @alex in #2595
- Panic in Crypter::new when IV is required but not provided by @alex in #2596
- openssl 4 support by @reaperhulk in #2591
- Avoid panic for overlong OIDs by @botovq in #2598
- Fix dangling stack pointer in custom extension add callback by @alex in #2599
- Add support for LibreSSL 4.3.x by @botovq in #2603
- fix inverted bounds assertion in AES key unwrap by @reaperhulk in #2604
- Reject oversized length returns from password callback trampoline by @alex in #2605
- Validate callback-returned lengths in PSK and cookie trampolines by @alex in #2607
- Error for short out in MdCtxRef::digest_final() by @botovq in #2608
- Check derive output buffer length on OpenSSL 1.1.x by @alex in #2606
- Release openssl v0.10.78 and openssl-sys v0.9.114 by @alex in #2609
Full Changelog: openssl-v0.10.77...openssl-v0.10.78
Release notes
Open source →Added
- Added support for OpenSSL 4.x.
- Added support for LibreSSL 4.3.x.
Fixed
- Fixed several soundness issues where safe Rust callers could trigger out-of-bounds reads or writes:
MdCtxRef::digest_finalnow returns an error when the output buffer is shorter than the digest size.PkeyCtxRef::derivenow checks the output buffer length on OpenSSL 1.1.x and LibreSSL, where some key types (X25519, X448, HKDF-extract) ignore the caller-supplied length.- Callbacks for key-loading passwords and SSL PSK and cookie generation now reject values longer than the length of the slice.
- Fixed a dangling stack pointer in the SSL custom extension callback when using a fixed-length array.
- Fixed an inverted bounds assertion in AES key unwrap.
Crypter::newnow panics, as documented, when an IV is required by the cipher but not provided (previously it silently used an all-zero IV).- Avoided a panic when formatting overlong OIDs; the value is now truncated with trailing dots.
- Fixed Suite B flag assignments in
X509VerifyParam. - Handle errors on
OPENSSL_mallocinPkeyCtxRef::set_rsa_oaep_label.
-
0.10.7712 Apr 2026Release notes
Open source →What's Changed
- CI: Hash-pin all action usage, avoid credential persistence in actions/checkout by @woodruffw in #2587
- Bump aws-lc-sys to 0.39 by @goffrie in #2588
- md_ctx: enable sign/verify/reset on BoringSSL, LibreSSL, and AWS-LC by @alex in #2589
- Release openssl v0.10.77 and openssl-sys v0.9.113 by @alex in #2590
New Contributors
- @woodruffw made their first contribution in #2587
Full Changelog: openssl-v0.10.76...openssl-v0.10.77
Release notes
Open source →Added
- Enabled
MdCtxRef::digest_sign,MdCtxRef::digest_sign_to_vec,MdCtxRef::digest_verify, andMdCtxRef::reseton BoringSSL, LibreSSL, and AWS-LC.
-
0.10.7612 Mar 2026Release notes
Open source →Added
- Added brainpool curve NID constants.
- Added
SubjectAlternativeName::dir_name2for constructing directoryName SAN entries. - Added HKDF and generic KDF support.
- Added
UpperHeximplementation forBigNumandBigNumRef. - Added
add_utf8_stringandadd_inttoOsslParamBuilder. - Added
Debugimplementation forEcGroup,EcGroupRef,EcdsaSigandEcdsaSigRef. - Enhanced
Debugimplementation forNid. - Constified
PKey::from_raw. - Exposed
from_str_x509()for LibreSSL >= 3.6.0.
Fixed
- Fixed use-after-free of error strings on BoringSSL/aws-lc.
- Fixed cipher comparison (
is_ccm,is_ocb) to use NID instead of unreliable pointer comparison. Added NID constants forAES_*_OCB. - Fixed invalid value parsing of OCSP revocation reason.
- Fixed
BIO_METHODpath for AWS-LC to use BoringSSL codepath.
-
0.10.7507 Nov 2025Release notes
Open source →Added
- Added support for
set_rsa_oaep_labelon AWS-LC/BoringSSL. - Added
Asn1GeneralizedTime::from_str. - Added
OcspStatus::next_updatemethod.
Fixed
- Fixed unsound OCSP
find_statushandling of optional next_update field. If an OCSP response does not have anextUpdate,OcspStatus::next_updatewill store a sentinel value. UseOcspStatus::next_update()instead.
Deprecated
- Deprecated
OcspStatus::next_updatefield in favor of thenext_update()method.
- Added support for
-
0.10.7415 Oct 2025Release notes
Open source →Added
- Added parameter generation support (
PkeyCtx::paramgenandPkeyCtx::paramgen_init). - Added key generation methods for RSA, DSA, DH, and EC via
PkeyCtx. - Added
Cipher::get_protocol_id. - Added
EcPointRef::set_affine_coordinates. - Added
EcGroup::order_bitson BoringSSL, LibreSSL, and AWS-LC. - Added
X509::append_entryon BoringSSL and AWS-LC. - Added XOF squeeze support on AWS-LC.
- Added argon2d and argon2i KDF variants.
Changed
- Bumped MSRV to 1.70.
- The repository has moved to the rust-openssl github organization.
Fixed
- Disabled AES-CFB128 ciphers for BoringSSL.
Removed
- Removed support for OpenSSL <1.0.2.
- Removed support for LibreSSL <3.5.
- Added parameter generation support (
-
0.10.7329 May 2025Release notes
Open source →Fixed
- Fixed building on the latest BoringSSL.
Changed
- Replaced ctest2 with ctest in systest.
-
0.10.7204 Apr 2025Release notes
Open source →Fixed
- Fixed use-after-free in
Md::fetchandCipher::fetchwhenpropertiesisSome(...). In practice this use-after-free most likely resulted in OpenSSL treating thepropertiesasb"".
Added
- Support for building with AWS-LC.
- Fixed use-after-free in
-
0.10.7115 Feb 2025 -
0.10.7002 Feb 2025Release notes
Open source →Fixed
- Fixed improper lifetime constraints in
ssl::select_next_protothat allowed a use after free.
Added
- Added
SslMethod::dtls_clientandSslMethod::dtls_server.
- Fixed improper lifetime constraints in
-
0.10.6925 Jan 2025Release notes
Open source →Fixed
- Fixed the version constraint on
openssl-macros.
Added
- Added
SslContextBuilder::load_verify_locations. - Added
Hasher::squeeze_xof. - Added
SslContextBuilder::set_alpn_select_callbacksupport for boringssl.
- Fixed the version constraint on
-
0.10.6816 Oct 2024Release notes
Open source →Fixed
- Fixed building on Rust 1.63.0 (our MSRV) with OpenSSL 3.2 or newer.
-
0.10.6716 Oct 2024Release notes
Open source →Added
- Added support for LibreSSL 4.0.x.
- Added
argon2id
Fixed
- Fixed a case where
MdCtxRef::digest_verify_finalcould leave an error on the stack. - Fixed a case where
RsaRef::check_keycould leave an error on the stack.
Changed
opensslis now a 2021 edition crate- Explicitly specify the MSRV in
Cargo.toml
-
0.10.6621 Jul 2024Release notes
Open source →Fixed
- Fixed undefined behavior in
MemBio::get_bufwhen the resulting buffer had a length of 0.
- Fixed undefined behavior in
-
0.10.6520 Jul 2024Release notes
Open source →Fixed
- Ensure we are initialized in
MessageDigest::from_nid,Md::from_nid,Md::fetch
Changed
- Expose
SslContextBuilder::set_keylog_callbackon BoringSSL
- Ensure we are initialized in
-
0.10.6419 Feb 2024Release notes
Open source →Added
- Added
PkeyCtxRef::{nonce_type, set_nonce_type}. - Added
X509Ref::alias.
- Added
-
0.10.6320 Jan 2024Release notes
Open source →Added
- Added
Pkcs7Ref::{type_,signed}. - Added
Pkcs7SignedRef::certificates. - Added
Cipher::{aes_256_xts,des_ede3_ecb,des_ede3_cfb8,des_ede3_ofb,camellia128_ofb,camellia192_ofb,camellia256_ofb,cast5_ofb,idea_ofb} - Added
PKey::from_dhx - Added
PKey::{public_key_from_pem_passphrase,public_key_from_pem_callback}.
Changed
Cipher::aes_128_ofbis now available on BoringSSLNid::{BRAINPOOL_P256R1,BRAINPOOL_P320R1,BRAINPOOL_P384R1,BRAINPOOL_P512R1}are now available on LibreSSL.
- Added
-
0.10.6222 Dec 2023Release notes
Open source →Added
- Added
Nid::BRAINPOOL_P320R1 - Added
rand_priv_bytes
Fixed
- Fixed building on the latest version of BoringSSL
- Added
-
0.10.6105 Dec 2023Release notes
Open source →Changed
SslStreamnow usesSSL_read_ex,SSL_write_ex, andSSL_peek_exwhen available
Added
- Added
SslStream::{read_uninit, ssl_read_uninit}.
-
0.10.6023 Nov 2023Release notes
Open source →Deprecated
- Deprecated
X509StoreRef::objects. It is unsound. All callers should migrate to usingX509StoreRef::all_certificatesinstead.
Fixed
- Fixed a memory leak when calling
SslContextBuilder::set_ex_dataandSslRef::set_ex_datamultiple times with the same index.
Added
- Added
X509StoreRef::all_certificates - Added
cipher::Cipher::{camellia128_cbc,camellia192_cbc,camellia256_cbc,cast5_cbc,idea_cbc} - Added
symm::Cipher::{des_ede3_ecb,des_ede3_cfb8,des_ede3_ofb,camellia_128_ecb,camellia_128_ofb,camellia_128_cfb128,camellia_192_ecb,camellia_192_ofb,camellia_192_cfb128,camellia_256_ecb,camellia_256_ofb,camellia_256_cfb128,cast5_ecb,cast5_ofb,cast5_cfb64,idea_ecb,idea_ofb,idea_cfb64} - Added
Crypter::update_unchecked - Added
SslRef::{peer_tmp_key,tmp_key}
Changed
cipher::Cipher::chacha20is now available on LibreSSLsymm::Cipher::chacha20is now available on LibreSSL
- Deprecated
-
0.10.5903 Nov 2023Release notes
Open source →Added
- Added
Nid::CHACHA20_POLY1305
Changed
- Fixed the availability of
Id::RSA_PSSon OpenSSL
- Added
-
0.10.5801 Nov 2023Release notes
Open source →Added
- Added
Id::{RSA_PSS,DHX}constants - Added
SslContextBuilder::set_security_level - Added
SslContextRef::security_level - Added
SslRef::set_security_level,SslRef::security_level - Added
Cipher::{camellia_128_cbc, camellia_192_cbc, camellia_256_cbc, cast5_cbc, idea_cbc} - Added
X509CrlRef::extension - Added
X509PurposeId::CODE_SIGN
Changed
PkeyHKDF functionality now works on LibreSSLBigNum::mod_sqrtis now available on all OpenSSLsMessageDigest::sha3*are now available on LibreSSL
- Added
-
0.10.5727 Aug 2023Release notes
Open source →Added
- Added
X509VerifyParam::set_email Cipher::chacha20_poly1305is now available on LibreSSL- Added
CipherCtx::copy
Changed
- Updated
bitflagsdependency to the 2.x series
- Added
-
0.10.5606 Aug 2023Nothing published for this version
-
0.10.5520 Jun 2023Release notes
Open source →Fixed
- Fixed compilation with the latest version of BoringSSL.
- Fixed compilation when OpenSSL is compiled with
OPENSSL_NO_OCB. - Fixed a segfault in
X509VerifyParamRef::set_hostwhen called with an empty string.
Added
- Added
Deriver::set_peer_ex. - Added
EcGroupRef::asn1_flag. - Exposed
EcPointRef::affine_coordinateson BoringSSL and LibreSSL. - Added
Nid::SM2andId::SM2
-
0.10.5401 Jun 2023Release notes
Open source →Fixed
PKey::private_key_to_pkcs8_passphraseno longer panics if apassphrasecontains a NUL byte.
-
0.10.5330 May 2023Release notes
Open source →Added
- Added
Dsa::from_pqg,Dsa::generate_key, andDsa::generate_params. - Added
SslRef::bytes_to_cipher_list. - Added
SubjectAlternativeName::other_name2
- Added
-
0.10.5224 Apr 2023Release notes
Open source →Added
- Added
DhRef::check_key. - Added
Id::POLY1305. - Added
X509Ref::subject_key_id,X509Ref::authority_key_id,X509Ref::authority_issuer, andX509Ref::authority_serial.
- Added
-
0.10.5120 Apr 2023Release notes
Open source →Added
- Added
X509RevokedRef::issuer_nameandX509RevokedRef::reason_code. - Added
Dh::set_keyandDh::set_public_key - Added
Asn1OctetStringandAsn1OctetStringRef1 - Added
X509Extension::new_from_der
Deprecated
- Deprecated
X509Extension::newandX509Extension::new_nidin favor ofX509Extension::new_from_derand theextensionsmodule. - Deprecated
X509Extension::add_alias, it is not required withnew_from_deror theextensionsmodule.
- Added
-
0.10.5010 Apr 2023 -
0.10.4901 Apr 2023Release notes
Open source →Fixed
SslConnectorno longer sets the SNI extension when connecting to an IP address.
Added
- Implemented
Ord,PartialOrd,Eq, andPartialEqforAsn1IntegerandAsn1IntegerRef. - Added
X509Ref::crl_distribution_points, andDistPoint.
-
0.10.4824 Mar 2023Release notes
Open source →Fixed
- Fixed injection vulnerabilities where OpenSSL's configuration mini-language could be used via
x509::extension::SubjectAlternativeNameandx509::extension::ExtendedKeyUsage. The mini-language can read arbitrary files amongst other things.- As part of fixing this
SubjectAlternativeName::dir_nameandSubjectAlternativeName::other_nameare deprecated and their implementations alwayspanic!. If you have a use case for these, please file an issue.
- As part of fixing this
- Fixed several NULL pointer dereferences in OpenSSL that could be triggered via
x509::X509Extension::newandx509::X509Extension::new_nid. Note that these methods still accept OpenSSL's configuration mini-language, and therefore should not be used with untrusted data. - Fixed a data-race with
x509::X509Namethat are created withx509::X509NameBuilderand then used concurrently. - Fixed LibreSSL version checking. More functions should now be correctly available on LibreSSL.
- Fixed injection vulnerabilities where OpenSSL's configuration mini-language could be used via
-
0.10.4719 Mar 2023Release notes
Open source →Added
- Added support for X25519 and Ed25519 on LibreSSL and BoringSSL.
- Added
Error::library_codeandError::reason_code.
-
0.10.4615 Mar 2023Release notes
Open source →Fixed
- Fixed a potential null-pointer deref when parsing a PKCS#12 archive with no identity.
- Fixed builds against OpenSSL built with
no-cast. - Fixed debug formatting of
GeneralName.
Deprecated
- Deprecated
PKcs12Ref::parsein favor ofPkcs12Ref::parse2. - Deprecated
ParsedPkcs12in favor ofParsedPkcs12_2. - Deprecated
Pkcs12Builder::buildin favor ofPkcs12Builder::build2.
Added
- Added
X509VerifyParamRef::set_auth_level,X509VerifyParamRef::auth_level, andX509VerifyParamRef::set_purpose. - Added
X509PurposeIdandX509Purpose. - Added
X509NameBuilder::append_entry. - Added
PKeyRef::private_key_to_pkcs8. - Added
X509LookupRef::load_crl_file. - Added
Pkcs12Builder::name,Pkcs12Builder::pkey, andPkcs12Builder::cert. - Added
SslRef::set_method,SslRef::set_private_key_file,SslRef::set_private_key,SslRef::set_certificate,SslRef::set_certificate_chain_file,SslRef::add_client_ca,SslRef::set_client_ca_list,SslRef::set_min_proto_version,SslREf::set_max_proto_version,SslRef::set_ciphersuites,SslRef::set_cipher_list,SslRef::set_verify_cert_store. - Added
X509NameRef::to_owned. - Added
SslContextBuilder::set_num_tickets,SslContextRef::num_tickets,SslRef::set_num_tickets, andSslRef::num_tickets. - Added
CmsContentInfo::verify.
-
0.10.4520 Dec 2022Release notes
Open source →Fixed
- Removed the newly added
CipherCtxRef::minimal_output_sizemethod, which did not work properly. - Added
NO_DEPRECATED_3_0cfg checks for more APIs.
Added
- Added
SslRef::add_chain_cert. - Added
PKeyRef::security_bits. - Added
Provider::set_default_search_path. - Added
CipherCtxRef::cipher_final_unchecked.
- Removed the newly added
-
0.10.4406 Dec 2022 withdrawnRelease notes
Open source →Added
- Added
CipherCtxRef::num,CipherCtxRef::minimal_output_size, andCipherCtxRef::cipher_update_unchecked. - Improved output buffer size checks in
CipherCtxRef::cipher_update. - Added
X509Lookup::fileandX509LookupRef::load_cert_file.
- Added
-
0.10.4324 Nov 2022Release notes
Open source →Added
- Added
Nid::BRAINPOOL_P256R1,Nid::BRAINPOOL_P384R1,Nid::BRAINPOOL_P512R1. - Added
BigNumRef::copy_from_slice. - Added
Cipherconstructors for Camellia, CAST5, and IDEA ciphers. - Added
DsaSig. - Added
X509StoreBuilderRef::set_param. - Added
X509VerifyParam::new,X509VerifyParamRef::set_time, andX509VerifyParamRef::set_depth.
- Added
-
0.10.4226 Sep 2022Release notes
Open source →Added
- Added
SslRef::psk_identity_hintandSslRef::psk_identity. - Added SHA-3 constants to
Nid. - Added
SslOptions::PRIORITIZE_CHACHA. - Added
X509ReqRef::to_text. - Added
MdCtxRef::size. - Added
X509NameRef::try_cmp. - Added
MdCtxRef::reset. - Added experimental, unstable support for BoringSSL.
Fixed
- Fixed
MdCtxRef::digest_verify_initto supportPKeys with only public components.
- Added
-
0.10.4109 Jul 2022Release notes
Open source →Fixed
- Fixed a use-after-free in
Error::functionandError::filewith OpenSSL 3.x.
Added
- Added
MessageDigest::block_sizeandMdRef::block_size. - Implemented
OrdandEqforX509andX509Ref. - Added
X509Extension::add_alias. - Added SM4 support.
- Added
EcGroup::from_componentsEcGropuRef::set_generator, andEcPointRef::set_affine_coordinates_gfp.
- Fixed a use-after-free in
-
0.10.4004 May 2022 -
0.10.3903 May 2022Release notes
Open source →Deprecated
- Deprecated
SslContextBuilder::set_tmp_ecdh_callbackandSslRef::set_tmp_ecdh_callback.
Added
- Added
SslRef::extms_support. - Added
Nid::create. - Added
CipherCtx, which exposes a more direct interface toEVP_CIPHER_CTX. - Added
PkeyCtx, which exposes a more direct interface toEVP_PKEY_CTX. - Added
MdCtx, which exposes a more direct interface toEVP_MD_CTX. - Added
Pkcs12Builder::mac_md. - Added
Provider. - Added
X509Ref::issuer_name_hash. - Added
Decrypter::set_rsa_oaep_label. - Added
X509Ref::to_text.
- Deprecated
-
0.10.3831 Oct 2021 -
0.10.3727 Oct 2021Release notes
Open source →Fixed
- Fixed linkage against OpenSSL distributions built with
no-chacha.
Added
- Added
BigNumRef::to_vec_padded. - Added
X509Name::from_derandX509NameRef::to_der. - Added
BigNum::new_secure,BigNumReef::set_const_time,BigNumref::is_const_time, andBigNumRef::is_secure.
- Fixed linkage against OpenSSL distributions built with
-
0.10.3617 Aug 2021Release notes
Open source →Added
- Added
Asn1Object::as_slice. - Added
PKeyRef::{raw_public_key, raw_private_key, private_key_to_pkcs8_passphrase}andPKey::{private_key_from_raw_bytes, public_key_from_raw_bytes}. - Added
Cipher::{seed_cbc, seed_cfb128, seed_ecb, seed_ofb}.
- Added
-
0.10.3519 Jun 2021Release notes
Open source →Fixed
- Fixed a memory leak in
Deriver.
Added
- Added support for OpenSSL 3.x.x.
- Added
SslStream::peek.
- Fixed a memory leak in
-
0.10.3428 Apr 2021Release notes
Open source →Added
- Added
Dh::set_private_keyandDhRef::private_key. - Added
EcPointRef::affine_coordinates. - Added
TryFromimplementations to convert betweenPKeyand specific key types. - Added
X509StoreBuilderRef::set_flags.
- Added
-
0.10.3313 Mar 2021Release notes
Open source →Fixed
Dh::generate_paramsnow usesDH_generate_params_exrather than the deprecatedDH_generated_paramsfunction.
Added
- Added
Asn1Type. - Added
CmsContentInfoRef::decrypt_without_cert_check. - Added
EcPointRef::{is_infinity, is_on_curve}. - Added
Encrypter::set_rsa_oaep_label. - Added
MessageDigest::sm3. - Added
Pkcs7Ref::signers. - Added
Cipher::nid. - Added
X509Ref::authority_infoandAccessDescription::{method, location}. - Added
X509NameBuilder::{append_entry_by_text_with_type, append_entry_by_nid_with_type}.
-
0.10.3224 Dec 2020Release notes
Open source →Fixed
- Fixed
Ssl::newto take a&SslContextRefrather than&SslContext.
Added
- Added the
encryptmodule to support asymmetric encryption and decryption withPKeys. - Added
MessageDigest::from_name. - Added
ConnectConfiguration::into_ssl. - Added the ability to create unconnected
SslStreams directly from anSsland transport stream without performing any part of the handshake withSslStream::new. - Added
SslStream::{read_early_data, write_early_data, connect, accept, do_handshake, stateless}. - Implemented
ToOwnedforSslContextRef. - Added
SslRef::{set_connect_state, set_accept_state}.
Deprecated
- Deprecated
SslStream::from_raw_partsin favor ofSsl::from_ptrandSslStream::new. - Deprecated
SslStreamBuilderin favor of methods onSslandSslStream.
- Fixed
-
0.10.3109 Dec 2020Release notes
Open source →Added
- Added
Asn1Object::from_str. - Added
Dh::from_pgq,DhRef::prime_p,DhRef::prime_q,DhRef::generator,DhRef::generate_params,DhRef::generate_key,DhRef::public_key, andDhRef::compute_key. - Added
Pkcs7::from_derandPkcs7Ref::to_der. - Added
Id::X25519,Id::X448,PKey::generate_x25519, andPKey::generate_x448. - Added
SrtpProfileId::SRTP_AEAD_AES_128_GCMandSrtpProfileId::SRTP_AEAD_AES_256_GCM. - Added
SslContextBuilder::verify_paramandSslContextBuilder::verify_param_mut. - Added
X509Ref::subject_name_hashandX509Ref::version. - Added
X509StoreBuilderRef::add_lookup, and theX509Lookuptype. - Added
X509VerifyFlags,X509VerifyParamRef::set_flags,X509VerifyParamRef::clear_flagsX509VerifyParamRef::get_flags.
- Added
-
0.10.3026 Jun 2020Release notes
Open source →Fixed
DsaRef::private_key_to_pemcan no longer be called without a private key.
Changed
- Improved the
Debugimplementations of many types.
Added
- Added
is_emptyimplementations forAsn1StringRefandAsn1BitStringRef. - Added
EcPointRef::{to_pem, to_dir}andEcKeyRef::{public_key_from_pem, public_key_from_der}. - Added
Defaultimplementations for many types. - Added
Debugimplementations for many types. - Added
SslStream::from_raw_parts. - Added
SslRef::set_mtu. - Added
Cipher::{aes_128_ocb, aes_192_ocb, aes_256_ocb}.
Deprecated
- Deprecated
SslStreamBuilder::set_dtls_mtu_sizein favor ofSslRef::set_mtu.
-
0.10.2908 Apr 2020Release notes
Open source →Fixed
- Fixed a memory leak in
X509Builder::append_extension.
Added
- Added
SslConnector::into_contextandSslConnector::context. - Added
SslAcceptor::into_contextandSslAcceptor::context. - Added
SslMethod::tls_clientandSslMethod::tls_server. - Added
SslContextBuilder::set_cert_store. - Added
SslContextRef::verify_modeandSslRef::verify_mode. - Added
SslRef::is_init_finished. - Added
X509Object. - Added
X509StoreRef::objects.
- Fixed a memory leak in
-
0.10.2804 Feb 2020Release notes
Open source →Fixed
- Fixed the mutability of
Signer::sign_oneshotandVerifier::verify_oneshot. This is unfortunately a breaking change, but a necessary soundness fix.
- Fixed the mutability of
-
0.10.2729 Jan 2020Release notes
Open source →Added
- Added
MessageDigest::null. - Added
PKey::private_key_from_pkcs8. - Added
SslOptions::NO_RENEGOTIATION. - Added
SslStreamBuilder::set_dtls_mtu_size.
- Added
-
0.10.2622 Nov 2019Release notes
Open source →Fixed
- Fixed improper handling of the IV buffer in
envelope::{Seal, Unseal}.
Added
- Added
Asn1TimeRef::{diff, compare}. - Added
Asn1Time::from_unix. - Added
PartialEqandPartialOrdimplementations forAsn1TimeandAsn1TimeRef. - Added
base64::{encode_block, decode_block}. - Added
EcGroupRef::order_bits. - Added
Cloneimplementations forSha1,Sha224,Sha256,Sha384, andSha512. - Added
SslContextBuilder::{set_sigalgs_list, set_groups_list}.
- Fixed improper handling of the IV buffer in
-
0.10.2503 Oct 2019Release notes
Open source →Fixed
- Fixed a memory leak in
EcdsaSig::from_private_componentswhen using OpenSSL 1.0.x.
Added
- Added support for Ed25519 and Ed448 keys.
- Implemented
ToOwnedforPKeyRefandCloneforPKey.
- Fixed a memory leak in
-
0.10.2419 Jul 2019Release notes
Open source →Fixed
- Worked around an OpenSSL 1.0.x bug triggered by code calling
SSL_set_app_data.
Added
- Added
aes::{wrap_key, unwrap_key}. - Added
CmsContentInfoRef::to_pemandCmsContentInfo::from_pem. - Added
DsaRef::private_key_to_pem. - Added
EcGroupRef::{cofactor, generator}. - Added
EcPointRef::to_owned. - Added a
Debugimplementation forEcKey. - Added
SslAcceptor::{mozilla_intermediate_v5, mozilla_modern_v5}. - Added
Cipher::{aes_128_ofb, aes_192_ecb, aes_192_cbc, aes_192_ctr, aes_192_cfb1, aes_192_cfb128, aes_192_cfb8, aes_192_gcm, aes_192_ccm, aes_192_ofb, aes_256_ofb}.
- Worked around an OpenSSL 1.0.x bug triggered by code calling
-
0.10.2318 May 2019Release notes
Open source →Fixed
- Fixed session callbacks when an
Ssl's context is replaced.
Added
- Added
SslContextBuilder::add_client_ca.
- Fixed session callbacks when an
-
0.10.2209 May 2019