ua_plugin_securitypolicy.h 990 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef UA_PLUGIN_SECURITYPOLICY_H_
  5. #define UA_PLUGIN_SECURITYPOLICY_H_
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. #include "ua_types.h"
  10. #include "ua_plugin_log.h"
  11. #include "ua_types_generated.h"
  12. extern const UA_ByteString UA_SECURITY_POLICY_NONE_URI;
  13. struct UA_SecurityPolicy;
  14. typedef struct UA_SecurityPolicy UA_SecurityPolicy;
  15. /* Holds an endpoint description and the corresponding security policy
  16. * Also holds the context for the endpoint. */
  17. typedef struct {
  18. UA_SecurityPolicy *securityPolicy;
  19. void *securityContext;
  20. UA_EndpointDescription endpointDescription;
  21. } UA_Endpoint;
  22. typedef struct {
  23. size_t count;
  24. UA_Endpoint *endpoints;
  25. } UA_Endpoints;
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* UA_PLUGIN_SECURITYPOLICY_H_ */