[PATCH] secur32: Use the SecItemExport() function.
Chip Davis
cdavis at codeweavers.com
Mon Sep 27 15:59:25 CDT 2021
Signed-off-by: Chip Davis <cdavis at codeweavers.com>
---
dlls/secur32/schannel_macosx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/secur32/schannel_macosx.c b/dlls/secur32/schannel_macosx.c
index d7453a448166..2f802f966862 100644
--- a/dlls/secur32/schannel_macosx.c
+++ b/dlls/secur32/schannel_macosx.c
@@ -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;
--
2.33.0
More information about the wine-devel
mailing list