Skip to content

Commit

Permalink
Bump bearssl version.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed Jun 2, 2024
1 parent 216ad6b commit 52f944f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chronos.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ skipDirs = @["tests"]
requires "nim >= 1.6.16",
"results",
"stew",
"bearssl",
"bearssl >= 0.2.3",
"httputils",
"unittest2"

Expand Down
3 changes: 2 additions & 1 deletion chronos/streams/tlsstream.nim
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ proc newTLSClientAsyncStream*(
if TLSFlags.NoVerifyHost in flags:
sslClientInitFull(res.ccontext, addr res.x509, nil, 0)
x509NoanchorInit(res.xwc, addr res.x509.vtable)
sslEngineSetX509(res.ccontext.eng, X509ClassPointerConst(addr res.xwc.vtable))
sslEngineSetX509(res.ccontext.eng,
X509ClassPointerConst(addr res.xwc.vtable))
else:
when trustAnchors is TrustAnchorStore:
res.trustAnchors = trustAnchors
Expand Down

0 comments on commit 52f944f

Please sign in to comment.