Skip to content

Commit

Permalink
X509Builder::append_extension2 -> X509Builder::append_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
rushilmehra committed Feb 19, 2025
1 parent 2ccb6c0 commit 5d74048
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions boring/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,9 @@ impl X509Builder {
}
}

/// Adds an X509 extension value to the certificate.
///
/// This works just as `append_extension` except it takes ownership of the `X509Extension`.
pub fn append_extension(&mut self, extension: X509Extension) -> Result<(), ErrorStack> {
self.append_extension2(&extension)
}

/// Adds an X509 extension value to the certificate.
#[corresponds(X509_add_ext)]
pub fn append_extension2(&mut self, extension: &X509ExtensionRef) -> Result<(), ErrorStack> {
pub fn append_extension(&mut self, extension: &X509ExtensionRef) -> Result<(), ErrorStack> {
unsafe {
cvt(ffi::X509_add_ext(self.0.as_ptr(), extension.as_ptr(), -1))?;
Ok(())
Expand Down

0 comments on commit 5d74048

Please sign in to comment.