mirror of
https://github.com/logos-storage/nim-bearssl.git
synced 2026-01-03 05:53: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