pingora
pingora copied to clipboard
Fix #30 build fails with boringssl feature
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-basedstream.ssl().verify_result()
. -
#[cfg(feature = "boringssl")]
Handles the updated boringsslResult<(), X509VerifyError>
result type fromstream.ssl().verify_result()
.