Skip to content

Commit 04abf67

Browse files
authored
remove dependency on rustls-webpki (#28)
1 parent 553b037 commit 04abf67

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rustls-openssl"
33
authors = ["Tom Fay <tom@teamfay.co.uk>"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55
edition = "2021"
66
license = "MIT"
77
description = "Rustls crypto provider for OpenSSL"
@@ -14,8 +14,7 @@ foreign-types = "0.3.1"
1414
once_cell = "1.8.0"
1515
openssl = "0.10.68"
1616
openssl-sys = "0.9.104"
17-
rustls = { version = "0.23.0", default-features = false }
18-
rustls-webpki = { version = "0.102.2", default-features = false }
17+
rustls = { version = "0.23.20", default-features = false }
1918
zeroize = "1.8.1"
2019

2120
[features]
@@ -28,7 +27,7 @@ hex = "0.4.3"
2827
rcgen = { version = "0.13.1", default-features = false, features = [
2928
"aws_lc_rs",
3029
] }
31-
rstest = "0.23.0"
30+
rstest = "0.25.0"
3231
# Use aws_lc_rs to test our provider
3332
rustls = { version = "0.23.0", features = ["aws_lc_rs"] }
3433
rustls-pemfile = "2"
@@ -37,5 +36,5 @@ wycheproof = { version = "0.6.0", default-features = false, features = [
3736
"aead",
3837
"hkdf",
3938
"ecdh",
40-
"xdh"
39+
"xdh",
4140
] }

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# rustls-openssl
22
A [rustls Crypto Provider](https://docs.rs/rustls/latest/rustls/crypto/struct.CryptoProvider.html) that uses OpenSSL for cryptographic operations.
33

4-
See the [documentation](https://docs.rs/rustls-openssl) for supported cipher suites and algorithms.
4+
[Documentation](https://docs.rs/rustls-openssl).
55

66
[![crates.io](https://img.shields.io/crates/v/rustls-openssl?style=flat-square&logo=rust)](https://crates.io/crates/rustls-openssl)
77
[![Build Status](https://github.com/tofay/rustls-openssl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tofay/rustls-openssl/actions/workflows/ci.yml?query=branch%3Amain)
88
[![Documentation](https://docs.rs/rustls-openssl/badge.svg)](https://docs.rs/rustls-openssl/)
99
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
1010
[![Coverage Status (codecov.io)](https://codecov.io/gh/tofay/rustls-openssl/branch/main/graph/badge.svg)](https://codecov.io/gh/tofay/rustls-openssl/)
11-
12-
## Status
13-
Early in development.

src/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ use openssl::{
88
rsa::{Padding, Rsa},
99
sign::{RsaPssSaltlen, Verifier},
1010
};
11+
use rustls::pki_types::alg_id;
1112
use rustls::{
1213
crypto::WebPkiSupportedAlgorithms,
1314
pki_types::{AlgorithmIdentifier, InvalidSignature, SignatureVerificationAlgorithm},
1415
SignatureScheme,
1516
};
16-
use webpki::alg_id;
1717

1818
/// A [WebPkiSupportedAlgorithms] value defining the supported signature algorithms.
1919
pub static SUPPORTED_SIG_ALGS: WebPkiSupportedAlgorithms = WebPkiSupportedAlgorithms {

tests/it.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ use openssl::rsa::Rsa;
99
use rstest::rstest;
1010
use rustls::crypto::{CryptoProvider, SupportedKxGroup};
1111
use rustls::pki_types::pem::PemObject;
12-
use rustls::pki_types::PrivateKeyDer;
12+
use rustls::pki_types::{CertificateDer, PrivateKeyDer};
1313
use rustls::{CipherSuite, SignatureScheme, SupportedCipherSuite};
1414
use rustls_openssl::{custom_provider, default_provider};
1515
use std::io::{Read, Write};
1616
use std::net::TcpStream;
1717
use std::sync::Arc;
18-
use webpki::types::CertificateDer;
1918

2019
pub mod server;
2120

0 commit comments

Comments
 (0)