Skip to content

Commit 7cc1c33

Browse files
authored
Revert "chore: Rename crate to nss" (#38)
* Revert "chore: Rename crate to nss (#35)" This reverts commit 3c99b25. * Keep version at 0.8.0 * Fixes
1 parent 6d4cc4c commit 7cc1c33

13 files changed

Lines changed: 21 additions & 21 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "nss"
2+
name = "nss-rs"
33
version = "0.8.0"
44
authors = ["Martin Thomson <mt@lowentropy.net>", "Andy Leiserson <aleiserson@mozilla.com>", "John M. Schanck <jschanck@mozilla.com>", "Benjamin Beurdouche <beurdouche@mozilla.com>", "Anna Weine <anna.weine@mozilla.com>"]
55
categories = ["network-programming", "web-programming"]

src/sig.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2121

2222
// use crate::Result;
23-
use nss::ec::{Curve, PublicKey};
24-
use nss::HashAlgorithm;
23+
use nss_rs::ec::{Curve, PublicKey};
24+
use nss_rs::HashAlgorithm;
2525

2626
/// A signature verification algorithm.
2727
pub struct SignatureAlgorithm {

test-fixture/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ license = "MIT/Apache-2.0"
88

99
[dependencies]
1010
log = {version = "0.4.0", default-features = false}
11-
nss = { path = "../" }
11+
nss-rs = { path = "../" }
1212

1313
[features]
14-
bench = ["nss/bench"]
14+
bench = ["nss-rs/bench"]
1515
disable-random = []
1616

1717
[package.metadata.cargo-machete]

test-fixture/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
time::{Duration, Instant},
1212
};
1313

14-
use nss::{init_db, AntiReplay};
14+
use nss_rs::{init_db, AntiReplay};
1515

1616
/// The path for the database used in tests.
1717
///

tests/aead.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#![warn(clippy::pedantic)]
88
#![cfg(not(feature = "disable-encryption"))]
99

10-
use nss::{
10+
use nss_rs::{
1111
RecordProtection,
1212
constants::{Cipher, TLS_AES_128_GCM_SHA256, TLS_VERSION_1_3},
1313
hkdf,

tests/agent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use std::ffi::CStr;
55

6-
use nss::{
6+
use nss_rs::{
77
AuthenticationStatus, Client, Error, HandshakeState, Res, SecretAgentPreInfo, Server,
88
TLS_AES_128_GCM_SHA256, TLS_CHACHA20_POLY1305_SHA256, TLS_GRP_EC_SECP256R1, TLS_GRP_EC_X25519,
99
TLS_SIG_ECDSA_SECP256R1_SHA256, TLS_VERSION_1_3, ZeroRttCheckResult, ZeroRttChecker,
@@ -151,7 +151,7 @@ fn ocsp_stapling_and_signed_cert_timestamps() {
151151
fixture_init();
152152
let mut client = Client::new("server.example", true).expect("should create client");
153153
client
154-
.set_option(nss::Opt::SignedCertificateTimestamps, true)
154+
.set_option(nss_rs::Opt::SignedCertificateTimestamps, true)
155155
.unwrap();
156156
let ocsp_response = b"fake ocsp response";
157157
let scts = b"fake signed certificate timestamps";

tests/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use std::{cell::RefCell, rc::Rc};
88

99
use handshake::forward_records;
10-
use nss::{
10+
use nss_rs::{
1111
AuthenticationStatus, Client, Error, HandshakeState, Server,
1212
constants::{HandshakeMessage, TLS_HS_CLIENT_HELLO, TLS_HS_ENCRYPTED_EXTENSIONS},
1313
ext::{ExtensionHandler, ExtensionHandlerResult, ExtensionWriterResult},

tests/handshake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use std::{mem, time::Instant};
1010

1111
use log::info;
12-
use nss::{
12+
use nss_rs::{
1313
AntiReplay, AuthenticationStatus, Client, HandshakeState, RecordList, Res, ResumptionToken,
1414
SecretAgent, Server, ZeroRttCheckResult, ZeroRttChecker,
1515
};

tests/hkdf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// option. This file may not be copied, modified, or distributed
55
// except according to those terms.
66

7-
use nss::{
7+
use nss_rs::{
88
SymKey,
99
constants::{
1010
Cipher, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256,

0 commit comments

Comments
 (0)