From 11c1140a8041b3dcdd79b9244422e56ebe8da10c Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 20 Mar 2017 11:11:16 +0100 Subject: Update IceSSL::ConnectionInfo to use native certs and remove NativeConnectionInfo --- php/src/php7/Connection.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'php/src/php7/Connection.cpp') diff --git a/php/src/php7/Connection.cpp b/php/src/php7/Connection.cpp index 0afade3d709..7c2bf854ac3 100644 --- a/php/src/php7/Connection.cpp +++ b/php/src/php7/Connection.cpp @@ -763,7 +763,14 @@ IcePHP::createConnectionInfo(zval* zv, const Ice::ConnectionInfoPtr& p) zval zarr; AutoDestroy listDestroyer(&zarr); - if(createStringArray(&zarr, info->certs)) + + Ice::StringSeq encoded; + for(vector::const_iterator i = info->certs.begin(); i != info->certs.end(); ++i) + { + encoded.push_back((*i)->encode()); + } + + if(createStringArray(&zarr, encoded)) { add_property_zval(zv, STRCAST("certs"), &zarr); } -- cgit v1.2.3