1234567891011121314151617181920212223242526272829303132333435363738 |
- /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
- * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
- *
- * Copyright 2018 (c) Mark Giraud, Fraunhofer IOSB
- */
- #ifndef UA_PKI_CERTIFICATE_H_
- #define UA_PKI_CERTIFICATE_H_
- #include "ua_plugin_pki.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Default implementation that accepts all certificates */
- UA_EXPORT void
- UA_CertificateVerification_AcceptAll(UA_CertificateVerification *cv);
- #ifdef UA_ENABLE_ENCRYPTION
- /* Accept certificates based on a trust-list and a revocation-list. Based on
- * mbedTLS. */
- UA_EXPORT UA_StatusCode
- UA_CertificateVerification_Trustlist(UA_CertificateVerification *cv,
- const UA_ByteString *certificateTrustList,
- size_t certificateTrustListSize,
- const UA_ByteString *certificateRevocationList,
- size_t certificateRevocationListSize);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* UA_PKI_CERTIFICATE_H_ */
|