summaryrefslogtreecommitdiff
path: root/openssl
diff options
context:
space:
mode:
authormxheller <max.a.heller@gmail.com>2020-11-16 18:15:17 -0500
committermxheller <max.a.heller@gmail.com>2020-11-17 21:30:03 -0500
commitcccfb0243045594bffcbfa4e2807ecc06dc45e9f (patch)
tree60c7906ca7dcbfd6bb8a0362428826a2357f29b4 /openssl
parentbea8a0513ef9ca126d769b0c76307d09b0e8c162 (diff)
downloadrust-openssl-cccfb0243045594bffcbfa4e2807ecc06dc45e9f.zip
static lookup method lifetime
Diffstat (limited to 'openssl')
-rw-r--r--openssl/src/x509/store.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/x509/store.rs b/openssl/src/x509/store.rs
index 4a6a3657..27271598 100644
--- a/openssl/src/x509/store.rs
+++ b/openssl/src/x509/store.rs
@@ -102,7 +102,7 @@ impl X509StoreBuilderRef {
/// [`X509_STORE_add_lookup`]: https://www.openssl.org/docs/man1.1.1/man3/X509_STORE_add_lookup.html
pub fn add_lookup(
&mut self,
- method: &X509LookupMethodRef,
+ method: &'static X509LookupMethodRef,
) -> Result<&mut X509LookupRef, ErrorStack> {
let lookup = unsafe { ffi::X509_STORE_add_lookup(self.as_ptr(), method.as_ptr()) };
cvt_p(lookup).map(|ptr| unsafe { X509LookupRef::from_ptr_mut(ptr) })