open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
pki_default.h
Go to the documentation of this file.
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 * Copyright 2019 (c) Kalycito Infotech Private Limited
6 */
7
8#ifndef UA_PKI_CERTIFICATE_H_
9#define UA_PKI_CERTIFICATE_H_
10
12
14
15/** Default implementation that accepts all certificates */
16UA_EXPORT void
18
19#ifdef UA_ENABLE_ENCRYPTION
20
21/** Accept certificates based on a trust-list and a revocation-list. Based on
22 * mbedTLS. */
23UA_EXPORT UA_StatusCode
25 const UA_ByteString *certificateTrustList,
26 size_t certificateTrustListSize,
27 const UA_ByteString *certificateIssuerList,
28 size_t certificateIssuerListSize,
29 const UA_ByteString *certificateRevocationList,
30 size_t certificateRevocationListSize);
31
32#ifdef __linux__ /* Linux only so far */
33UA_EXPORT UA_StatusCode
34UA_CertificateVerification_CertFolders(UA_CertificateVerification *cv,
35 const char *trustListFolder,
36 const char *issuerListFolder,
37 const char *revocationListFolder);
38#endif
39
40#endif
41
43
44#endif /* UA_PKI_CERTIFICATE_H_ */
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition config.h:89
#define _UA_END_DECLS
Definition config.h:96
UA_EXPORT UA_StatusCode UA_CertificateVerification_Trustlist(UA_CertificateVerification *cv, const UA_ByteString *certificateTrustList, size_t certificateTrustListSize, const UA_ByteString *certificateIssuerList, size_t certificateIssuerListSize, const UA_ByteString *certificateRevocationList, size_t certificateRevocationListSize)
Accept certificates based on a trust-list and a revocation-list.
_UA_BEGIN_DECLS UA_EXPORT void UA_CertificateVerification_AcceptAll(UA_CertificateVerification *cv)
This work is licensed under a Creative Commons CCZero 1.0 Universal License.
uint32_t UA_StatusCode
Definition types.h:77