rename Incompatile error kind to TlsIncompatible

This commit is contained in:
Sean McArthur
2019-01-04 14:46:58 -08:00
parent ad854c3ee8
commit 11d7812e88
2 changed files with 7 additions and 7 deletions

View File

@@ -138,7 +138,7 @@ impl ClientBuilder {
tls_inner::Identity::Pkcs12(buf, passwd) =>
try_!(::native_tls::Identity::from_pkcs12(&buf, &passwd)),
#[cfg(feature = "rustls-tls")]
_ => return Err(::error::from(::error::Kind::Incompatible))
_ => return Err(::error::from(::error::Kind::TlsIncompatible))
};
tls.identity(id);
}
@@ -195,7 +195,7 @@ impl ClientBuilder {
}
},
#[cfg(feature = "default-tls")]
_ => return Err(::error::from(::error::Kind::Incompatible))
_ => return Err(::error::from(::error::Kind::TlsIncompatible))
};
tls.set_single_client_cert(certs, key);
}