Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Dec 17, 2024
1 parent 37e31b8 commit 85c8e5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
build_flags: "/p:Platform=x64 /p:Configuration=Debug"
test_flags: "--platform=x64 --config=Debug"
msbuild_project: "msbuild/ice.proj"

# Swift iOS
- os: macos-15
config: "swift-ios"
Expand Down
3 changes: 3 additions & 0 deletions swift/src/IceImpl/Connection.mm
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,13 @@ - (BOOL)throwException:(NSError**)error
if (sslInfo)
{
std::string encoded;
// See https://github.com/zeroc-ice/ice/issues/3283
#if TARGET_OS_IPHONE == 0
if (sslInfo->peerCertificate)
{
encoded = Ice::SSL::encodeCertificate(sslInfo->peerCertificate);
}
#endif
return [factory createSSLConnectionInfo:underlying peerCertificate:toNSString(encoded)];
}

Expand Down

0 comments on commit 85c8e5a

Please sign in to comment.