diff options
author | Austin Henriksen <austin@zeroc.com> | 2018-10-24 11:50:44 -0400 |
---|---|---|
committer | Austin Henriksen <austin@zeroc.com> | 2018-10-24 11:50:59 -0400 |
commit | cf720c9de22ea553aa56b94d150baee01e286a3f (patch) | |
tree | c2bb6cf8b568699b47868ec8d9cd46cf8bdd06b4 /matlab/src/Util.cpp | |
parent | Fix Matlab r2016b Ice/objects test failures (diff) | |
download | ice-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.cpp | 12 |
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 { |