Specifying the SSLCallback object
Before you connect to the server, specify the name of your
SSLCallback object in the CallbackImpl property of SSLServiceProvider:
1 |
SSLServiceProvider sp<br>int    rc<br> <br>getcontextservice("SSLServiceProvider", sp)<br>rc = sp.setglobalproperty( "CallbackImpl", &<br>   "uo_sslcallback" )<br>IF rc <> 0 THEN<br>   MessageBox("Set CallbackImpl Failed", "rc= " + &<br>      string(rc))   <br>   RETURN<br>END IF<br>MessageBox( "Set CallbackImpl Property", "succeeded" )<br>RETURN |
To make sure that the executable version of your client application
can reference your callback object, you need to declare a variable
of its type in your application, for example:
1 |
uo_sslcallback iuo_sslcb |
This is because the callback object
is referenced only by its string name so that it is technically
an unreferenced object and is not included in the executable file.
Your code does not need to use the declared variable.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest