crypt32: Use the SecItemExport() function.
Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
de7adacedb
commit
6eab45621c
|
@ -598,7 +598,7 @@ static void load_root_certs(void)
|
|||
{
|
||||
SecCertificateRef cert = (SecCertificateRef)CFArrayGetValueAtIndex(certs, i);
|
||||
CFDataRef certData;
|
||||
if ((status = SecKeychainItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)
|
||||
if ((status = SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)
|
||||
{
|
||||
BYTE *data = add_cert( CFDataGetLength(certData) );
|
||||
if (data) memcpy( data, CFDataGetBytePtr(certData), CFDataGetLength(certData) );
|
||||
|
|
Loading…
Reference in New Issue