Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Mar 7, 2024
1 parent c244515 commit 47b3a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/IceSSL/SecureTransportCertificateI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ SecureTransportCertificateI::encode() const
{
#ifdef ICE_USE_SECURE_TRANSPORT_IOS
UniqueRef<CFDataRef> cert(SecCertificateCopyData(_cert.get()));
vector<byte> data(reinterpret_cast<const byte*>(cert.get()), reinterpret_cast<const byte*>(CFDataGetBytePtr(cert.get()) + CFDataGetLength(cert.get())));
vector<byte> data(reinterpret_cast<const byte*>(cert.get()), reinterpret_cast<const byte*>(CFDataGetBytePtr(cert.get())) + CFDataGetLength(cert.get()));
ostringstream os;
os << "-----BEGIN CERTIFICATE-----\n";
os << IceInternal::Base64::encode(data);
Expand Down

0 comments on commit 47b3a25

Please sign in to comment.