diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 515d041abd76bd8dbbf2483da6169fa9f159c911..577cc7f0b42ed2d4992bdc0c3c17e23c1c9a3235 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -154,7 +154,7 @@ jobs: - false library: - name: boringssl - version: 8d71d244c0debac4079beeb02b5802fde59b94bd + version: f78fe19fc98e0e6f760e05c6b9d48725004700d0 - name: openssl version: vendored - name: openssl diff --git a/openssl/src/x509/store.rs b/openssl/src/x509/store.rs index 8619086ebbd585005d7ed436decb464d5f5c5fd3..c6cd4f12d512d199da9c2a244e0b6b9376c6329b 100644 --- a/openssl/src/x509/store.rs +++ b/openssl/src/x509/store.rs @@ -165,7 +165,9 @@ impl X509Lookup { /// directory. #[corresponds(X509_LOOKUP_hash_dir)] pub fn hash_dir() -> &'static X509LookupMethodRef { - unsafe { X509LookupMethodRef::from_ptr(ffi::X509_LOOKUP_hash_dir()) } + // `*mut` cast is needed because BoringSSL returns a `*const`. This is + // ok because we only return an immutable reference. + unsafe { X509LookupMethodRef::from_ptr(ffi::X509_LOOKUP_hash_dir() as *mut _) } } } @@ -197,7 +199,9 @@ impl X509Lookup { /// into memory at the time the file is added as a lookup source. #[corresponds(X509_LOOKUP_file)] pub fn file() -> &'static X509LookupMethodRef { - unsafe { X509LookupMethodRef::from_ptr(ffi::X509_LOOKUP_file()) } + // `*mut` cast is needed because BoringSSL returns a `*const`. This is + // ok because we only return an immutable reference. + unsafe { X509LookupMethodRef::from_ptr(ffi::X509_LOOKUP_file() as *mut _) } } }