IiopObjectSetSsl Function

Action

Specifies to access a given CORBA object using the Secure Socket Layer protocol.

Include file

IIOP.bdh

Syntax

IiopObjectSetSsl(in hIiop      : number,
                 in nTargetSup : number,
                 in nTargetReq : number,
                 in nPort      : number): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object
nTargetSup

"AssociationOptions TargetSupports" as defined in Secure Socket Layer/CORBA Security. Although the value of this parameter is written to the IOR of the specified object, it does not affect the way the object is accessed.

Use the SslSetEncryption and SslSetClientCert functions to specify security options

nTargetReq "AssociationOptions TargetSupports" as defined in Secure Socket Layer/CORBA Security. Although the value of this parameter is written to the IOR of the specified object, it does not affect the way the object is accessed.
nPort Number of the port the specified CORBA object listens to in order to be accessed over a secure connection

Example

var
ghIiop0: number;
dcltrans
transaction TMain
const
HOST := "192.168.20.21"; // server
PORT := 1052; // port
KEY := "...\h00"; // key
KEYLEN := 4; // key length
var
nSize : number;
bReturn : boolean;
begin
SslSetEncryption(3);
IiopSetMaxGiopVersion("1.2");
IiopSetByteOrder(IIOP_LITTLE_ENDIAN);
IiopObjectCreate(ghIiop0, "IDL:DemoObject:1.0", "1.2", HOST, PORT, KEY, KEYLEN);
IiopObjectSetSsl(ghIiop0, 0, 0, 2059);
IiopRequest(ghIiop0, "_non_existent");
IiopGetBoolean(ghIiop0);
...
end TMain;