Skip to content

Commit

Permalink
fix ssl context add_x509_verify_flags (#10756)
Browse files Browse the repository at this point in the history
Co-authored-by: Caspian Baska <[email protected]>
  • Loading branch information
stakach and caspiano authored Jun 1, 2021
1 parent 6eeaa13 commit 9bf9152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openssl/ssl/context.cr
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,9 @@ abstract class OpenSSL::SSL::Context
raise OpenSSL::Error.new("SSL_CTX_set1_param") unless ret == 1
end

# Sets the given `OpenSSL::X509VerifyFlags` in this context, additionally to
# Sets the given `OpenSSL::SSL::X509VerifyFlags` in this context, additionally to
# the already set ones.
def add_x509_verify_flags(flags : OpenSSL::X509VerifyFlags)
def add_x509_verify_flags(flags : OpenSSL::SSL::X509VerifyFlags)
param = LibSSL.ssl_ctx_get0_param(@handle)
ret = LibCrypto.x509_verify_param_set_flags(param, flags)
raise OpenSSL::Error.new("X509_VERIFY_PARAM_set_flags)") unless ret == 1
Expand Down

0 comments on commit 9bf9152

Please sign in to comment.