|
@@ -198,9 +198,9 @@ processDecodedOPNResponseAsync(void *application, UA_SecureChannel *channel,
|
|
|
setClientState(client, UA_CLIENTSTATE_SECURECHANNEL);
|
|
|
}
|
|
|
|
|
|
-static UA_StatusCode
|
|
|
-processOPNResponse(void *application, UA_Connection *connection,
|
|
|
- UA_ByteString *chunk) {
|
|
|
+UA_StatusCode
|
|
|
+processOPNResponseAsync(void *application, UA_Connection *connection,
|
|
|
+ UA_ByteString *chunk) {
|
|
|
UA_Client *client = (UA_Client*) application;
|
|
|
UA_StatusCode retval = UA_SecureChannel_decryptAddChunk(&client->channel, chunk, UA_TRUE);
|
|
|
client->connectStatus = retval;
|
|
@@ -566,8 +566,6 @@ UA_Client_connect_async(UA_Client *client, const char *endpointUrl,
|
|
|
|
|
|
UA_ChannelSecurityToken_init(&client->channel.securityToken);
|
|
|
client->channel.state = UA_SECURECHANNELSTATE_FRESH;
|
|
|
- /* Set up further callback function to handle secure channel and session establishment */
|
|
|
- client->openSecureChannelResponseCallback = processOPNResponse;
|
|
|
client->endpointsHandshake = true;
|
|
|
|
|
|
UA_StatusCode retval = UA_STATUSCODE_GOOD;
|