Skip to content

Commit e929adb

Browse files
committed
ACME: mark unused directory resources as optional.
We discovered a server implementation that does not support key rollover and indicates that by not sending "keyChange". For completeness, I'm marking all the currently unused directory resources as optional.
1 parent 739eaa0 commit e929adb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/acme/types.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ pub struct Directory {
3636
pub new_order: Uri,
3737
#[serde(default, with = "http_serde::option::uri")]
3838
pub new_authz: Option<Uri>,
39-
#[serde(with = "http_serde::uri")]
40-
pub revoke_cert: Uri,
41-
#[serde(with = "http_serde::uri")]
42-
pub key_change: Uri,
39+
#[serde(default, with = "http_serde::option::uri")]
40+
pub revoke_cert: Option<Uri>,
41+
#[serde(default, with = "http_serde::option::uri")]
42+
pub key_change: Option<Uri>,
4343
#[serde(default)]
4444
pub meta: DirectoryMetadata,
4545
}

0 commit comments

Comments
 (0)