mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
thttpclient_ssl: be less specific
The error we're looking for is "certificate verify failed". The routine that reports this will be different between openssl versions, so it makes no sense to track the routine name as well.
This commit is contained in:
@@ -125,7 +125,6 @@ when not defined(windows):
|
||||
log "client: exception: " & msg
|
||||
# SSL_shutdown:shutdown while in init
|
||||
if not (msg.contains("alert number 48") or
|
||||
msg.contains("routines:CONNECT_CR_CERT:certificate verify failed") or
|
||||
msg.contains("routines:tls_process_server_certificate:certificate verify failed")):
|
||||
msg.contains("certificate verify failed")):
|
||||
echo "CVerifyPeer exception: " & msg
|
||||
check(false)
|
||||
|
||||
Reference in New Issue
Block a user