7 Oct
2020
7 Oct
'20
2:35 p.m.
Hans Leidekker <hans(a)codeweavers.com> wrote:
+static struct container *read_key_container( const char *name, DWORD flags ) +{ + DWORD protect_flags = (flags & CRYPT_MACHINE_KEYSET) ? CRYPTPROTECT_LOCAL_MACHINE : 0; + struct container *ret; + HKEY hkey; + + if (!open_container_regkey( name, flags, KEY_READ, &hkey )) return NULL; + + if ((ret = create_key_container( name, flags ))) + { + ret->exch_key = read_key( hkey, AT_SIGNATURE, protect_flags ); + ret->sign_key = read_key( hkey, AT_KEYEXCHANGE, protect_flags ); + }
Seems to be a typo. -- Dmitry.