pingora icon indicating copy to clipboard operation
pingora copied to clipboard

Fix #30 build fails with boringssl feature

Open samurai00 opened this issue 11 months ago • 0 comments

In this commit cloudflare/boring@84a80c1 , the X509VerifyResult from cloudflare/boring was modified to Result<(), X509VerifyError> . This change introduces an incompatibility with X509VerifyResult.

Changes in this Pull Request:

This pull request addresses the incompatibility by providing feature-specific code blocks:

  • #[cfg(not(feature = "boringssl"))] This block preserves existing behavior for openssl-based stream.ssl().verify_result().
  • #[cfg(feature = "boringssl")] Handles the updated boringssl Result<(), X509VerifyError> result type from stream.ssl().verify_result().

samurai00 avatar Feb 29 '24 11:02 samurai00