Commit 699fc68f authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard

secur32: Use the SecItemExport() function.

parent 6eab4562
...@@ -1085,7 +1085,7 @@ static SECURITY_STATUS CDECL schan_get_session_peer_certificate(schan_session se ...@@ -1085,7 +1085,7 @@ static SECURITY_STATUS CDECL schan_get_session_peer_certificate(schan_session se
for (i = 0; i < list->count; i++) for (i = 0; i < list->count; i++)
{ {
if (!(cert = (SecCertificateRef)CFArrayGetValueAtIndex(cert_array, 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"); WARN("Couldn't extract certificate data\n");
ret = SEC_E_INTERNAL_ERROR; ret = SEC_E_INTERNAL_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment