mirror of
https://github.com/logos-storage/nim-bearssl.git
synced 2026-01-08 16:33: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.} =
|
proc skeyDecoderLastError*(ctx: ptr SkeyDecoderContext): cint {.inline.} =
|
||||||
if ctx.err != 0:
|
if ctx.err != 0:
|
||||||
return ctx.err
|
return ctx.err
|
||||||
if ctx.keyType == '\0':
|
if ctx.keyType == '\0'.cuchar:
|
||||||
return ERR_X509_TRUNCATED
|
return ERR_X509_TRUNCATED
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user