Re: [PATCH] bcrypt/tests: Show that BCryptGetFipsAlgorithmMode checks a registry key
8 Sep
2016
8 Sep
'16
8:17 p.m.
On 08.09.2016 22:11, Bruno Jesus wrote:
+ if (!RegOpenKeyW(HKEY_LOCAL_MACHINE, policyKeyVistaW, &hkey)) + {
Why do you open the key when you don't use it?
+ if (!RegGetValueW(HKEY_LOCAL_MACHINE, policyKeyVistaW, policyValueVistaW, + RRF_RT_REG_DWORD, NULL, &enabled, &count))
enabled has the type BOOLEAN and a size of 1 byte. Did you want to pass "value" instead?
+ { + expected = !!enabled; + } + RegCloseKey(hkey); + }
3385
Age (days ago)
3385
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sebastian Lackner