mirror of https://github.com/breard-r/acmed.git
Browse Source
Add an independent endpoint structure
Add an independent endpoint structure
Having the data relative to the endpoint in the certificate structure makes no sense. There is no way to share it across certificates which is sometimes needed. Also, having the other part of the endpoint data (mostly nonce and rate limit) in different places makes it difficult to maintain. Hence, the endpoint structure has been created. For now it is quite simple and does not handle every aspects of the endpoint, but this will be implemented in the future.pull/31/head
Rodolphe Breard
5 years ago
9 changed files with 53 additions and 42 deletions
-
1acmed/Cargo.toml
-
7acmed/src/acme_proto.rs
-
4acmed/src/acme_proto/account.rs
-
5acmed/src/acme_proto/structs/account.rs
-
3acmed/src/certificate.rs
-
35acmed/src/config.rs
-
6acmed/src/endpoint.rs
-
3acmed/src/main.rs
-
31acmed/src/main_event_loop.rs
@ -0,0 +1,6 @@ |
|||||
|
pub struct Endpoint {
|
||||
|
pub name: String,
|
||||
|
pub url: String,
|
||||
|
pub tos_agreed: bool,
|
||||
|
// TODO: rate limits
|
||||
|
}
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue