secur32: 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:
Chip Davis 2021-09-27 15:59:25 -05:00 committed by Alexandre Julliard
parent 6eab45621c
commit 699fc68f2a
1 changed files with 1 additions and 1 deletions

View File

@ -1085,7 +1085,7 @@ static SECURITY_STATUS CDECL schan_get_session_peer_certificate(schan_session se
for (i = 0; i < list->count; i++)
{
if (!(cert = (SecCertificateRef)CFArrayGetValueAtIndex(cert_array, i)) ||
(SecKeychainItemExport(cert, kSecFormatX509Cert, 0, NULL, &data) != noErr))
(SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &data) != noErr))
{
WARN("Couldn't extract certificate data\n");
ret = SEC_E_INTERNAL_ERROR;