Skip to content

Commit

Permalink
Revert "Merge pull request #108 from nox/store-clone"
Browse files Browse the repository at this point in the history
This reverts commit 1c1af4b, reversing
changes made to da32be1.

SslContextBuilder::cert_store_mut returns a &mut X509StoreBuilder
backed by a X509Store that is already shared with an existing SslContext.
  • Loading branch information
nox committed May 15, 2023
1 parent ad2517f commit 6e751e8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions boring/src/x509/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,4 @@ impl X509StoreRef {
}
}

impl ToOwned for X509StoreRef {
type Owned = X509Store;

fn to_owned(&self) -> X509Store {
unsafe {
ffi::X509_STORE_up_ref(self.as_ptr());
X509Store::from_ptr(self.as_ptr())
}
}
}

impl Clone for X509Store {
fn clone(&self) -> Self {
(**self).to_owned()
}
}

use crate::ffi::X509_STORE_get0_objects;

0 comments on commit 6e751e8

Please sign in to comment.