We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4515f3 commit 1975998Copy full SHA for 1975998
lib/pure/net.nim
@@ -430,8 +430,14 @@ when defineSsl:
430
raise newException(SSLError, "No error reported.")
431
if err == -1:
432
raiseOSError(osLastError())
433
- var errStr = ErrErrorString(err, nil)
434
- raise newException(SSLError, $errStr)
+ var errStr = $ErrErrorString(err, nil)
+ case err
435
+ of 336032814, 336032784:
436
+ errStr = "Please upgrade your OpenSSL library, it does not support the " &
437
+ "necessary protocols. OpenSSL error is: " & errStr
438
+ else:
439
+ discard
440
+ raise newException(SSLError, errStr)
441
442
proc getExtraData*(ctx: SSLContext, index: int): RootRef =
443
## Retrieves arbitrary data stored inside SSLContext.
0 commit comments