forked from Proxmox/proxmox-perl-rs
acme: add eab fields for pmg
Signed-off-by: Folke Gleumes <f.gleumes@proxmox.com>
This commit is contained in:
parent
5ac44c9fbb
commit
ce550d06e2
@ -79,6 +79,7 @@ impl Inner {
|
|||||||
tos_agreed: bool,
|
tos_agreed: bool,
|
||||||
contact: Vec<String>,
|
contact: Vec<String>,
|
||||||
rsa_bits: Option<u32>,
|
rsa_bits: Option<u32>,
|
||||||
|
eab_creds: Option<(String, String)>,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
self.tos = if tos_agreed {
|
self.tos = if tos_agreed {
|
||||||
self.client.terms_of_service_url()?.map(str::to_owned)
|
self.client.terms_of_service_url()?.map(str::to_owned)
|
||||||
@ -86,7 +87,9 @@ impl Inner {
|
|||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
let _account = self.client.new_account(contact, tos_agreed, rsa_bits)?;
|
let _account = self
|
||||||
|
.client
|
||||||
|
.new_account(contact, tos_agreed, rsa_bits, eab_creds)?;
|
||||||
let file = OpenOptions::new()
|
let file = OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
.create(true)
|
.create(true)
|
||||||
@ -238,11 +241,16 @@ pub mod export {
|
|||||||
tos_agreed: bool,
|
tos_agreed: bool,
|
||||||
contact: Vec<String>,
|
contact: Vec<String>,
|
||||||
rsa_bits: Option<u32>,
|
rsa_bits: Option<u32>,
|
||||||
|
eab_kid: Option<String>,
|
||||||
|
eab_hmac_key: Option<String>,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
this.inner
|
this.inner.lock().unwrap().new_account(
|
||||||
.lock()
|
account_path,
|
||||||
.unwrap()
|
tos_agreed,
|
||||||
.new_account(account_path, tos_agreed, contact, rsa_bits)
|
contact,
|
||||||
|
rsa_bits,
|
||||||
|
eab_kid.zip(eab_hmac_key),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the directory's meta information.
|
/// Get the directory's meta information.
|
||||||
|
Loading…
Reference in New Issue
Block a user