[pmg-devel] applied: [PATCH perl-rs 5/8] acme: add eab fields for pmg

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Dec 6 12:37:48 CET 2023


applied

On Tue, Nov 14, 2023 at 03:14:05PM +0100, Folke Gleumes wrote:
> Signed-off-by: Folke Gleumes <f.gleumes at proxmox.com>
> ---
>  pmg-rs/src/acme.rs | 18 +++++++++++++-----
>  1 file changed, 13 insertions(+), 5 deletions(-)
> 
> diff --git a/pmg-rs/src/acme.rs b/pmg-rs/src/acme.rs
> index b38e1ea..fe1e465 100644
> --- a/pmg-rs/src/acme.rs
> +++ b/pmg-rs/src/acme.rs
> @@ -79,6 +79,7 @@ impl Inner {
>          tos_agreed: bool,
>          contact: Vec<String>,
>          rsa_bits: Option<u32>,
> +        eab_creds: Option<(String, String)>,
>      ) -> Result<(), Error> {
>          self.tos = if tos_agreed {
>              self.client.terms_of_service_url()?.map(str::to_owned)
> @@ -86,7 +87,9 @@ impl Inner {
>              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()
>              .write(true)
>              .create(true)
> @@ -238,11 +241,16 @@ pub mod export {
>          tos_agreed: bool,
>          contact: Vec<String>,
>          rsa_bits: Option<u32>,
> +        eab_kid: Option<String>,
> +        eab_hmac_key: Option<String>,
>      ) -> Result<(), Error> {
> -        this.inner
> -            .lock()
> -            .unwrap()
> -            .new_account(account_path, tos_agreed, contact, rsa_bits)
> +        this.inner.lock().unwrap().new_account(
> +            account_path,
> +            tos_agreed,
> +            contact,
> +            rsa_bits,
> +            eab_kid.zip(eab_hmac_key),
> +        )
>      }
>  
>      /// Get the directory's meta information.
> -- 
> 2.39.2




More information about the pmg-devel mailing list