ua_pki_certificate.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 2018 (c) Mark Giraud, Fraunhofer IOSB
  5. */
  6. #ifndef UA_PKI_CERTIFICATE_H_
  7. #define UA_PKI_CERTIFICATE_H_
  8. #include "ua_plugin_pki.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /* Default implementation that accepts all certificates */
  13. UA_EXPORT void
  14. UA_CertificateVerification_AcceptAll(UA_CertificateVerification *cv);
  15. #ifdef UA_ENABLE_ENCRYPTION
  16. /* Accept certificates based on a trust-list and a revocation-list. Based on
  17. * mbedTLS. */
  18. UA_EXPORT UA_StatusCode
  19. UA_CertificateVerification_Trustlist(UA_CertificateVerification *cv,
  20. const UA_ByteString *certificateTrustList,
  21. size_t certificateTrustListSize,
  22. const UA_ByteString *certificateRevocationList,
  23. size_t certificateRevocationListSize);
  24. #endif
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* UA_PKI_CERTIFICATE_H_ */