ua_pki_certificate.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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. _UA_BEGIN_DECLS
  10. /* Default implementation that accepts all certificates */
  11. UA_EXPORT void
  12. UA_CertificateVerification_AcceptAll(UA_CertificateVerification *cv);
  13. #ifdef UA_ENABLE_ENCRYPTION
  14. /* Accept certificates based on a trust-list and a revocation-list. Based on
  15. * mbedTLS. */
  16. UA_EXPORT UA_StatusCode
  17. UA_CertificateVerification_Trustlist(UA_CertificateVerification *cv,
  18. const UA_ByteString *certificateTrustList,
  19. size_t certificateTrustListSize,
  20. const UA_ByteString *certificateRevocationList,
  21. size_t certificateRevocationListSize);
  22. #endif
  23. _UA_END_DECLS
  24. #endif /* UA_PKI_CERTIFICATE_H_ */