add openssl missing procs (#15180)
This commit is contained in:
parent
39906c52c4
commit
cd28fe2ef7
1 changed files with 5 additions and 0 deletions
|
|
@ -691,6 +691,7 @@ proc EVP_sha512*(): EVP_MD {.cdecl, importc.}
|
||||||
proc EVP_mdc2*(): EVP_MD {.cdecl, importc.}
|
proc EVP_mdc2*(): EVP_MD {.cdecl, importc.}
|
||||||
proc EVP_ripemd160*(): EVP_MD {.cdecl, importc.}
|
proc EVP_ripemd160*(): EVP_MD {.cdecl, importc.}
|
||||||
proc EVP_whirlpool*(): EVP_MD {.cdecl, importc.}
|
proc EVP_whirlpool*(): EVP_MD {.cdecl, importc.}
|
||||||
|
proc EVP_MD_size*(md: EVP_MD): cint {.cdecl, importc.}
|
||||||
|
|
||||||
# hmac functions
|
# hmac functions
|
||||||
proc HMAC*(evp_md: EVP_MD; key: pointer; key_len: cint; d: cstring; n: csize_t; md: cstring; md_len: ptr cuint): cstring {.cdecl, importc.}
|
proc HMAC*(evp_md: EVP_MD; key: pointer; key_len: cint; d: cstring; n: csize_t; md: cstring; md_len: ptr cuint): cstring {.cdecl, importc.}
|
||||||
|
|
@ -699,7 +700,9 @@ proc HMAC*(evp_md: EVP_MD; key: pointer; key_len: cint; d: cstring; n: csize_t;
|
||||||
proc PEM_read_bio_PrivateKey*(bp: BIO, x: ptr EVP_PKEY, cb: pointer, u: pointer): EVP_PKEY {.cdecl, importc.}
|
proc PEM_read_bio_PrivateKey*(bp: BIO, x: ptr EVP_PKEY, cb: pointer, u: pointer): EVP_PKEY {.cdecl, importc.}
|
||||||
proc EVP_PKEY_free*(p: EVP_PKEY) {.cdecl, importc.}
|
proc EVP_PKEY_free*(p: EVP_PKEY) {.cdecl, importc.}
|
||||||
proc EVP_DigestSignInit*(ctx: EVP_MD_CTX, pctx: ptr EVP_PKEY_CTX, typ: EVP_MD, e: ENGINE, pkey: EVP_PKEY): cint {.cdecl, importc.}
|
proc EVP_DigestSignInit*(ctx: EVP_MD_CTX, pctx: ptr EVP_PKEY_CTX, typ: EVP_MD, e: ENGINE, pkey: EVP_PKEY): cint {.cdecl, importc.}
|
||||||
|
proc EVP_DigestInit_ex*(ctx: EVP_MD_CTX, typ: PEVP_MD, engine: SslPtr = nil): cint {.cdecl, importc.}
|
||||||
proc EVP_DigestUpdate*(ctx: EVP_MD_CTX, data: pointer, len: cuint): cint {.cdecl, importc.}
|
proc EVP_DigestUpdate*(ctx: EVP_MD_CTX, data: pointer, len: cuint): cint {.cdecl, importc.}
|
||||||
|
proc EVP_DigestFinal_ex*(ctx: EVP_MD_CTX, buffer: pointer, size: ptr cuint): cint {.cdecl, importc.}
|
||||||
proc EVP_DigestSignFinal*(ctx: EVP_MD_CTX, data: pointer, len: ptr csize_t): cint {.cdecl, importc.}
|
proc EVP_DigestSignFinal*(ctx: EVP_MD_CTX, data: pointer, len: ptr csize_t): cint {.cdecl, importc.}
|
||||||
proc EVP_PKEY_CTX_new*(pkey: EVP_PKEY, e: ENGINE): EVP_PKEY_CTX {.cdecl, importc.}
|
proc EVP_PKEY_CTX_new*(pkey: EVP_PKEY, e: ENGINE): EVP_PKEY_CTX {.cdecl, importc.}
|
||||||
proc EVP_PKEY_CTX_free*(pkeyCtx: EVP_PKEY_CTX) {.cdecl, importc.}
|
proc EVP_PKEY_CTX_free*(pkeyCtx: EVP_PKEY_CTX) {.cdecl, importc.}
|
||||||
|
|
@ -708,10 +711,12 @@ proc EVP_PKEY_sign_init*(c: EVP_PKEY_CTX): cint {.cdecl, importc.}
|
||||||
when defined(macosx) or defined(windows):
|
when defined(macosx) or defined(windows):
|
||||||
proc EVP_MD_CTX_create*(): EVP_MD_CTX {.cdecl, importc.}
|
proc EVP_MD_CTX_create*(): EVP_MD_CTX {.cdecl, importc.}
|
||||||
proc EVP_MD_CTX_destroy*(ctx: EVP_MD_CTX) {.cdecl, importc.}
|
proc EVP_MD_CTX_destroy*(ctx: EVP_MD_CTX) {.cdecl, importc.}
|
||||||
|
proc EVP_MD_CTX_cleanup*(ctx: EVP_MD_CTX): cint {.cdecl, importc.}
|
||||||
else:
|
else:
|
||||||
# some times you will need this instead:
|
# some times you will need this instead:
|
||||||
proc EVP_MD_CTX_create*(): EVP_MD_CTX {.cdecl, importc: "EVP_MD_CTX_new".}
|
proc EVP_MD_CTX_create*(): EVP_MD_CTX {.cdecl, importc: "EVP_MD_CTX_new".}
|
||||||
proc EVP_MD_CTX_destroy*(ctx: EVP_MD_CTX) {.cdecl, importc: "EVP_MD_CTX_free".}
|
proc EVP_MD_CTX_destroy*(ctx: EVP_MD_CTX) {.cdecl, importc: "EVP_MD_CTX_free".}
|
||||||
|
proc EVP_MD_CTX_cleanup*(ctx: EVP_MD_CTX): cint {.cdecl, importc: "EVP_MD_CTX_cleanup".}
|
||||||
|
|
||||||
# <openssl/md5.h>
|
# <openssl/md5.h>
|
||||||
type
|
type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue