summaryrefslogtreecommitdiff
path: root/matlab/src/Util.cpp
diff options
context:
space:
mode:
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
{