Before you connect to the server, specify the name of your SSLCallback object in the CallbackImpl property of SSLServiceProvider:
SSLServiceProvider sp int rc getcontextservice("SSLServiceProvider", sp) rc = sp.setglobalproperty( "CallbackImpl", & "uo_sslcallback" ) IF rc <> 0 THEN MessageBox("Set CallbackImpl Failed", "rc= " + & string(rc)) RETURN END IF MessageBox( "Set CallbackImpl Property", "succeeded" ) 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:
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.