[omniORB] corbaloc for unix and SSL endpoints

Nick Murtagh murtaghn@tcd.ie
Thu, 14 Mar 2002 00:17:26 +0000


--------------Boundary-00=_2TSXJR6RC50JPKAOLLBO
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

On Wednesday 13 March 2002 18:24, Duncan Grisby wrote:
> There has recently been a proposal, started by Gerald Brose I think,
> that all the open source ORBs (JacORB, MICO, TAO, omniORB enlisted so
> far) support corbaloc:ssliop:..., and then try to get the OMG to
> standardise it later. That gets rid of my main objection to supporting
> it.
>
> I'll look into adding it soon, unless Bastiaan has already done it?

Ok, I managed to get corbaloc:ssliop working, but at least part of it is
a large hack that breaks non-ssl stuff :)

Anyway, here's a diff for orbcore/uri.cc against 20020201. (I can't seem
to get to the ftp server at the moment, and that's the latest version I
have). 

The hack involved changing ior.cc::extractSupportedComponents()

from 
  giopAddress* address = giopAddress::fromTcpAddress(info.iiop.address);
to
  giopAddress* address = giopAddress::fromSslAddress(info.iiop.address);

Obviously this breaks anything that should use fromTcpAddress. I don't
know the code well enough yet to see where the real fix goes. Does it
involve the TAG_SSL_SEC_TRANS stuff? I can live with this hack for the
purposes of my project, but I would like to fix it properly.

Thanks,
Nick
--------------Boundary-00=_2TSXJR6RC50JPKAOLLBO
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="uri.cc.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="uri.cc.patch"

LS0tIG9tbmktb3JpZy9zcmMvbGliL29tbmlPUkIvb3JiY29yZS91cmkuY2MJVHVlIERlYyAgNCAx
NDozMjoyNyAyMDAxCisrKyBvbW5pL3NyYy9saWIvb21uaU9SQi9vcmJjb3JlL3VyaS5jYwlUaHUg
TWFyIDE0IDAwOjA1OjQ1IDIwMDIKQEAgLTI1Niw3ICsyNTYsNyBAQAogCiAgICAgc3RhdGljIE9i
akFkZHIqIHBhcnNlKGNvbnN0IGNoYXIqJiBjKTsKIAotICAgIGVudW0gQWRkcktpbmQgeyByaX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