Compare commits
No commits in common. "patch-1" and "master" have entirely different histories.
1 changed files with 6 additions and 12 deletions
|
|
@ -12,22 +12,16 @@ when defined(windows):
|
|||
|
||||
{.push, stdcall, dynlib: "Advapi32.dll".}
|
||||
|
||||
when (NimMajor, NimMinor, NimPatch) < (2, 0, 0):
|
||||
when useWinUnicode:
|
||||
proc CryptAcquireContext(
|
||||
phProv: ptr HCRYPTPROV, pszContainer: WideCString,
|
||||
pszProvider: WideCString, dwProvType: DWORD, dwFlags: DWORD
|
||||
): WINBOOL {.importc: "CryptAcquireContextW".}
|
||||
else:
|
||||
proc CryptAcquireContext(
|
||||
phProv: ptr HCRYPTPROV, pszContainer: cstring, pszProvider: cstring,
|
||||
dwProvType: DWORD, dwFlags: DWORD
|
||||
): WINBOOL {.importc: "CryptAcquireContextA".}
|
||||
else:
|
||||
when useWinUnicode:
|
||||
proc CryptAcquireContext(
|
||||
phProv: ptr HCRYPTPROV, pszContainer: WideCString,
|
||||
pszProvider: WideCString, dwProvType: DWORD, dwFlags: DWORD
|
||||
): WINBOOL {.importc: "CryptAcquireContextW".}
|
||||
else:
|
||||
proc CryptAcquireContext(
|
||||
phProv: ptr HCRYPTPROV, pszContainer: cstring, pszProvider: cstring,
|
||||
dwProvType: DWORD, dwFlags: DWORD
|
||||
): WINBOOL {.importc: "CryptAcquireContextA".}
|
||||
|
||||
proc CryptGenRandom(
|
||||
hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: pointer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue