Unverified Commit 661e24df authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #1375 from Superhepper/master

Added missing email_protection method to ExtendedKeyUsage struct.
parents 741b2e4d c9ce2ea5
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;