Skip to content

remove dependency on rustls-webpki #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rustls-openssl"
authors = ["Tom Fay <tom@teamfay.co.uk>"]
version = "0.2.0"
version = "0.2.1"
edition = "2021"
license = "MIT"
description = "Rustls crypto provider for OpenSSL"
Expand All @@ -14,8 +14,7 @@ foreign-types = "0.3.1"
once_cell = "1.8.0"
openssl = "0.10.68"
openssl-sys = "0.9.104"
rustls = { version = "0.23.0", default-features = false }
rustls-webpki = { version = "0.102.2", default-features = false }
rustls = { version = "0.23.20", default-features = false }
zeroize = "1.8.1"

[features]
Expand All @@ -28,7 +27,7 @@ hex = "0.4.3"
rcgen = { version = "0.13.1", default-features = false, features = [
"aws_lc_rs",
] }
rstest = "0.23.0"
rstest = "0.25.0"
# Use aws_lc_rs to test our provider
rustls = { version = "0.23.0", features = ["aws_lc_rs"] }
rustls-pemfile = "2"
Expand All @@ -37,5 +36,5 @@ wycheproof = { version = "0.6.0", default-features = false, features = [
"aead",
"hkdf",
"ecdh",
"xdh"
"xdh",
] }
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# rustls-openssl
A [rustls Crypto Provider](https://docs.rs/rustls/latest/rustls/crypto/struct.CryptoProvider.html) that uses OpenSSL for cryptographic operations.

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

[![crates.io](https://img.shields.io/crates/v/rustls-openssl?style=flat-square&logo=rust)](https://crates.io/crates/rustls-openssl)
[![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)
[![Documentation](https://docs.rs/rustls-openssl/badge.svg)](https://docs.rs/rustls-openssl/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Coverage Status (codecov.io)](https://codecov.io/gh/tofay/rustls-openssl/branch/main/graph/badge.svg)](https://codecov.io/gh/tofay/rustls-openssl/)

## Status
Early in development.
2 changes: 1 addition & 1 deletion src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ use openssl::{
rsa::{Padding, Rsa},
sign::{RsaPssSaltlen, Verifier},
};
use rustls::pki_types::alg_id;
use rustls::{
crypto::WebPkiSupportedAlgorithms,
pki_types::{AlgorithmIdentifier, InvalidSignature, SignatureVerificationAlgorithm},
SignatureScheme,
};
use webpki::alg_id;

/// A [WebPkiSupportedAlgorithms] value defining the supported signature algorithms.
pub static SUPPORTED_SIG_ALGS: WebPkiSupportedAlgorithms = WebPkiSupportedAlgorithms {
Expand Down
3 changes: 1 addition & 2 deletions tests/it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ use openssl::rsa::Rsa;
use rstest::rstest;
use rustls::crypto::{CryptoProvider, SupportedKxGroup};
use rustls::pki_types::pem::PemObject;
use rustls::pki_types::PrivateKeyDer;
use rustls::pki_types::{CertificateDer, PrivateKeyDer};
use rustls::{CipherSuite, SignatureScheme, SupportedCipherSuite};
use rustls_openssl::{custom_provider, default_provider};
use std::io::{Read, Write};
use std::net::TcpStream;
use std::sync::Arc;
use webpki::types::CertificateDer;

pub mod server;

Expand Down
Loading