Commit c9ce2ea5 authored by Jesper Brynolf's avatar Jesper Brynolf
Browse files

Added missing email_protection method to ExtendedKeyUsage struct.



- Everything was prepared for adding the emailProtection flag except a
  method. So it appeared strange to not have it.

Signed-off-by: default avatarJesper Brynolf <jesper.brynolf@gmail.com>
parent 741b2e4d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -290,6 +290,12 @@ impl ExtendedKeyUsage {
        self
    }

    /// Sets the `emailProtection` flag to `true`.
    pub fn email_protection(&mut self) -> &mut ExtendedKeyUsage {
        self.email_protection = true;
        self
    }

    /// Sets the `timeStamping` flag to `true`.
    pub fn time_stamping(&mut self) -> &mut ExtendedKeyUsage {
        self.time_stamping = true;