ua_pki_certificate.h 1.0 KB

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