mirror of
https://github.com/codex-storage/nim-bearssl.git
synced 2025-01-10 13:26:07 +00:00
commit
dc62f4fccd
@ -2402,7 +2402,7 @@ proc skeyDecoderPush*(ctx: ptr SkeyDecoderContext; data: pointer; len: int) {.be
|
||||
proc skeyDecoderLastError*(ctx: ptr SkeyDecoderContext): cint {.inline.} =
|
||||
if ctx.err != 0:
|
||||
return ctx.err
|
||||
if ctx.keyType == '\0':
|
||||
if ctx.keyType == '\0'.cuchar:
|
||||
return ERR_X509_TRUNCATED
|
||||
return 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user