4.2 KiB
Change Log
Unreleased
Added
- Added
ConnectConfiguration::set_use_server_name_indicationandConnectConfiguration::set_verify_hostnamefor use in contexts where you don't have ownership of theConnectConfiguration.
v0.10.1 - 2018-01-10
Added
- Added a
From<ErrorStack> for ssl::Errorimplementation.
v0.10.0 - 2018-01-10
Compatibility
- openssl 0.10 still uses openssl-sys 0.9, so openssl 0.9 and 0.10 can coexist without issue.
Added
- The
ssl::select_next_protofunction can be used to easily implement the ALPN selection callback in a "standard" way. - FIPS mode support is available in the
fipsmodule. - Accessors for the Issuer and Issuer Alternative Name fields of X509 certificates have been added.
- The
X509VerifyResultcan now be set in the certificate verification callback viaX509StoreContextRef::set_error.
Changed
-
All constants have been moved to associated constants of their type. For example,
bn::MSB_ONEis nowbn::MsbOption::ONE. -
Asymmetric key types are now parameterized over what they contain. In OpenSSL, the same type is used for key parameters, public keys, and private keys. Unfortunately, some APIs simply assume that certain components are present and will segfault trying to use things that aren't there.
The
pkeymodule contains new tag types namedParams,Public, andPrivate, and theDh,Dsa,EcKey,Rsa, andPKeyhave a type parameter set to one of those values. This allows theSignerconstructor to indicate that it requires a private key at compile time for example. Previously,Signerwould simply segfault if provided a key without private components. -
ALPN support has been changed to more directly model OpenSSL's own APIs. Instead of a single method used for both the server and client sides which performed everything automatically, the
SslContextBuilder::set_alpn_protosandSslContextBuilder::set_alpn_select_callbackhandle the client and server sides respectively. -
SslConnector::danger_connect_without_providing_domain_for_certificate_verification_and_server_name_indicationhas been removed in favor of new methods which provide more control. TheConnectConfiguration::use_server_name_indicationmethod controls the use of Server Name Indication (SNI), and theConnectConfiguration::verify_hostnamemethod controls the use of hostname verification. These can be controlled independently, and if both are disabled, the domain argument toConnectConfiguration::connectis ignored. -
Shared secret derivation is now handled by the new
derive::Derivertype rather thanpkey::PKeyContext, which has been removed. -
ssl::Erroris now no longer an enum, and provides more direct access to the relevant state. -
SslConnectorBuilder::newhas been moved and renamed toSslConnector::builder. -
SslAcceptorBuilder::mozilla_intermediateandSslAcceptorBuilder::mozilla_modernhave been moved toSslAcceptorand no longer take the private key and certificate chain. Install those manually after creating the builder. -
X509VerifyErroris nowX509VerifyResultand can now have the "ok" value in addition to error values. -
x509::X509FileTypeis nowssl::SslFiletype. -
Asymmetric key serialization and deserialization methods now document the formats that they correspond to, and some have been renamed to better indicate that.
Removed
- All deprecated APIs have been removed.
- NPN support has been removed. It has been supersceded by ALPN, and is hopefully no longer being used in practice. If you still depend on it, please file an issue!
SslRef::compressionhas been removed.- Some
ssl::SslOptionsflags have been removed as they no longer do anything.
Older
Look at the release tags for information about older releases.