Browse Source

Move JWS out of acme_proto

pull/5/head
Rodolphe Breard 5 years ago
parent
commit
9e337a2d1a
  1. 3
      acmed/src/acme_proto.rs
  2. 4
      acmed/src/acme_proto/account.rs
  3. 2
      acmed/src/jws.rs
  4. 0
      acmed/src/jws/algorithms.rs
  5. 0
      acmed/src/jws/jwk.rs
  6. 1
      acmed/src/main.rs

3
acmed/src/acme_proto.rs

@ -1,9 +1,9 @@
use crate::acme_proto::account::AccountManager;
use crate::acme_proto::jws::encode_kid;
use crate::acme_proto::structs::{
ApiError, Authorization, AuthorizationStatus, NewOrder, Order, OrderStatus,
};
use crate::certificate::Certificate;
use crate::jws::encode_kid;
use crate::storage;
use acme_common::crypto::Csr;
use acme_common::error::Error;
@ -13,7 +13,6 @@ use std::fmt;
mod account;
mod certificate;
mod http;
pub mod jws;
pub mod structs;
#[derive(Clone, Debug, PartialEq)]

4
acmed/src/acme_proto/account.rs

@ -1,8 +1,8 @@
use crate::acme_proto::http;
use crate::acme_proto::jws::algorithms::SignatureAlgorithm;
use crate::acme_proto::jws::encode_jwk;
use crate::acme_proto::structs::{Account, AccountResponse, Directory};
use crate::certificate::Certificate;
use crate::jws::algorithms::SignatureAlgorithm;
use crate::jws::encode_jwk;
use crate::storage;
use acme_common::crypto::KeyPair;
use acme_common::error::Error;

2
acmed/src/acme_proto/jws.rs → acmed/src/jws.rs

@ -1,4 +1,4 @@
use crate::acme_proto::jws::algorithms::SignatureAlgorithm;
use crate::jws::algorithms::SignatureAlgorithm;
use acme_common::b64_encode;
use acme_common::crypto::{sha256, KeyPair};
use acme_common::error::Error;

0
acmed/src/acme_proto/jws/algorithms.rs → acmed/src/jws/algorithms.rs

0
acmed/src/acme_proto/jws/jwk.rs → acmed/src/jws/jwk.rs

1
acmed/src/main.rs

@ -7,6 +7,7 @@ mod acme_proto;
mod certificate;
mod config;
mod hooks;
mod jws;
mod main_event_loop;
mod rate_limits;
mod storage;

Loading…
Cancel
Save