summaryrefslogtreecommitdiff
path: root/matlab/src/Util.cpp
diff options
context:
space:
mode:
authorAustin Henriksen <austin@zeroc.com>2018-10-24 11:50:44 -0400
committerAustin Henriksen <austin@zeroc.com>2018-10-24 11:50:59 -0400
commitcf720c9de22ea553aa56b94d150baee01e286a3f (patch)
treec2bb6cf8b568699b47868ec8d9cd46cf8bdd06b4 /matlab/src/Util.cpp
parentFix Matlab r2016b Ice/objects test failures (diff)
downloadice-cf720c9de22ea553aa56b94d150baee01e286a3f.tar.bz2
ice-cf720c9de22ea553aa56b94d150baee01e286a3f.tar.xz
ice-cf720c9de22ea553aa56b94d150baee01e286a3f.zip
Added IceSSL::ConnectionInfo for matlab. Closes #219.
Diffstat (limited to 'matlab/src/Util.cpp')
-rw-r--r--matlab/src/Util.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/matlab/src/Util.cpp b/matlab/src/Util.cpp
index 23a2c81ae78..30605a90eb1 100644
--- a/matlab/src/Util.cpp
+++ b/matlab/src/Util.cpp
@@ -598,6 +598,18 @@ IceMatlab::createByteArray(const Ice::Byte* begin, const Ice::Byte* end)
return r;
}
+mxArray*
+IceMatlab::createCertificateList(const vector<IceSSL::CertificatePtr>& v)
+{
+ auto r = mxCreateCellMatrix(1, static_cast<int>(v.size()));
+ mwIndex i = 0;
+ for(auto p = v.begin(); p != v.end(); ++p, ++i)
+ {
+ mxSetCell(r, i, createStringFromUTF8((*p)->encode()));
+ }
+ return r;
+}
+
namespace
{