Skip to content

Commit

Permalink
Add core.sys.windows.bcrypt to the build process (#20780)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xEAB authored Jan 25, 2025
1 parent 32883d3 commit b7e3b3b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions druntime/mak/COPY
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ COPY=\
$(IMPDIR)\core\sys\windows\aclui.d \
$(IMPDIR)\core\sys\windows\basetsd.d \
$(IMPDIR)\core\sys\windows\basetyps.d \
$(IMPDIR)\core\sys\windows\bcrypt.d \
$(IMPDIR)\core\sys\windows\cderr.d \
$(IMPDIR)\core\sys\windows\cguid.d \
$(IMPDIR)\core\sys\windows\com.d \
Expand Down
1 change: 1 addition & 0 deletions druntime/mak/DOCS
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ DOCS=\
\
$(DOCDIR)\core_sys_windows_aclapi.html \
$(DOCDIR)\core_sys_windows_basetsd.html \
$(DOCDIR)\core_sys_windows_bcrypt.html \
$(DOCDIR)\core_sys_windows_cderr.html \
$(DOCDIR)\core_sys_windows_com.html \
$(DOCDIR)\core_sys_windows_core.html \
Expand Down
1 change: 1 addition & 0 deletions druntime/mak/SRCS
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ SRCS=\
src\core\sys\windows\aclui.d \
src\core\sys\windows\basetsd.d \
src\core\sys\windows\basetyps.d \
src\core\sys\windows\bcrypt.d \
src\core\sys\windows\cderr.d \
src\core\sys\windows\cguid.d \
src\core\sys\windows\com.d \
Expand Down
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/bcrypt.d
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ enum {

pragma(inline, true)
void BCRYPT_INIT_AUTH_MODE_INFO(ref BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO _AUTH_INFO_STRUCT_) @nogc nothrow pure @safe {
RtlZeroMemory(&_AUTH_INFO_STRUCT_, _AUTH_INFO_STRUCT_.sizeof);
(() @trusted => RtlZeroMemory(&_AUTH_INFO_STRUCT_, _AUTH_INFO_STRUCT_.sizeof))();
_AUTH_INFO_STRUCT_.cbSize = _AUTH_INFO_STRUCT_.sizeof;
_AUTH_INFO_STRUCT_.dwInfoVersion = BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_VERSION;
}
Expand Down
4 changes: 2 additions & 2 deletions druntime/src/core/sys/windows/winbase.d
Original file line number Diff line number Diff line change
Expand Up @@ -1789,8 +1789,8 @@ extern (Windows) nothrow @nogc {

alias RtlMoveMemory = memmove;
alias RtlCopyMemory = memcpy;
pragma(inline, true) void RtlFillMemory(PVOID Destination, SIZE_T Length, BYTE Fill) { memset(Destination, Fill, Length); }
pragma(inline, true) void RtlZeroMemory(PVOID Destination, SIZE_T Length) { memset(Destination, 0, Length); }
pragma(inline, true) void RtlFillMemory(PVOID Destination, SIZE_T Length, BYTE Fill) pure { memset(Destination, Fill, Length); }
pragma(inline, true) void RtlZeroMemory(PVOID Destination, SIZE_T Length) pure { memset(Destination, 0, Length); }
alias MoveMemory = RtlMoveMemory;
alias CopyMemory = RtlCopyMemory;
alias FillMemory = RtlFillMemory;
Expand Down

0 comments on commit b7e3b3b

Please sign in to comment.