1234567891011121314151617181920 |
- #include "ua_server_internal.h"
- #include "ua_services.h"
- #include "ua_securechannel_manager.h"
- void Service_OpenSecureChannel(UA_Server *server, UA_Connection *connection,
- const UA_OpenSecureChannelRequest *request,
- UA_OpenSecureChannelResponse *response) {
-
- if(request->requestType == UA_SECURITYTOKENREQUESTTYPE_ISSUE)
- UA_SecureChannelManager_open(&server->secureChannelManager, connection, request, response);
- else
- UA_SecureChannelManager_renew(&server->secureChannelManager, connection, request, response);
- }
- void Service_CloseSecureChannel(UA_Server *server, UA_Int32 channelId) {
-
- UA_SecureChannelManager_close(&server->secureChannelManager, channelId);
-
- }
|