Bug 18482 – wincrypt functions should be `@nogc` `nothrow`

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2018-02-21T10:23:52Z
Last change time
2018-02-21T12:29:34Z
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2018-02-21T10:23:52Z
core.sys.windows.wincrypt functions should be `@nogc` `nothrow`. They don't use D's garbage collector and they don't use D exceptions or C++ exceptions to signal errors, but rather return status codes and error codes accessible via GetLastError().
Comment #1 by n8sh.secondary — 2018-02-21T10:24:55Z
Comment #2 by github-bugzilla — 2018-02-21T12:29:33Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/f570af8e1e2024f1066970ecfd6a04958c4abc85 Fix Issue 18482 - wincrypt functions should be `@nogc` `nothrow` https://github.com/dlang/druntime/commit/b281ef18b961da3c9a52589201ded6d678cf7e02 Merge pull request #2103 from n8sh/wincrypt-nogc-nothrow Fix Issue 18482 - wincrypt functions should be `@nogc` `nothrow` merged-on-behalf-of: Vladimir Panteleev <[email protected]>