ua_securitypolicies.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
  2. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
  3. *
  4. * Copyright 2017-2018 (c) Mark Giraud, Fraunhofer IOSB
  5. * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
  6. * Copyright 2018 (c) Daniel Feist, Precitec GmbH & Co. KG
  7. */
  8. #ifndef UA_SECURITYPOLICIES_H_
  9. #define UA_SECURITYPOLICIES_H_
  10. #include "ua_plugin_securitypolicy.h"
  11. _UA_BEGIN_DECLS
  12. UA_EXPORT UA_StatusCode
  13. UA_SecurityPolicy_None(UA_SecurityPolicy *policy,
  14. UA_CertificateVerification *certificateVerification,
  15. const UA_ByteString localCertificate, const UA_Logger *logger);
  16. #ifdef UA_ENABLE_ENCRYPTION
  17. UA_EXPORT UA_StatusCode
  18. UA_SecurityPolicy_Basic128Rsa15(UA_SecurityPolicy *policy,
  19. UA_CertificateVerification *certificateVerification,
  20. const UA_ByteString localCertificate,
  21. const UA_ByteString localPrivateKey,
  22. const UA_Logger *logger);
  23. UA_EXPORT UA_StatusCode
  24. UA_SecurityPolicy_Basic256Sha256(UA_SecurityPolicy *policy,
  25. UA_CertificateVerification *certificateVerification,
  26. const UA_ByteString localCertificate,
  27. const UA_ByteString localPrivateKey,
  28. const UA_Logger *logger);
  29. #endif
  30. _UA_END_DECLS
  31. #endif /* UA_SECURITYPOLICIES_H_ */