crypt32: CryptAcquireCertificatePrivateKey should look up certificate in the user...
commit23f97773ee76ec60d036f5a704c6fe22c66f2417
authorDmitry Timoshkov <dmitry@baikal.ru>
Wed, 6 Feb 2019 07:25:49 +0000 (6 15:25 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 6 Feb 2019 18:57:27 +0000 (6 19:57 +0100)
tree1d38f25f20025d39083515e68fa944f415e4f61a
parentd917f0ef096d55928e1631a77cda1e683c906f07
crypt32: CryptAcquireCertificatePrivateKey should look up certificate in the user's store if not linked to a provider.

Under Windows passing to CryptAcquireCertificatePrivateKey() a certificate
retrieved from the key container using CryptGetKeyParam(KP_CERTIFICATE) +
CertCreateCertificateContext() works although such a certificate doesn't
have assigned properties at all. In order for this to work Windows probably
looks up an original certificate in the user's private store.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/crypt32/cert.c