open62541 1.4.15
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
16 * Any plugin implementation should invalidate an existing certificate verification
17 * by first calling the internal clear() method if it is not NULL.
18 * Refer to the default implementation in src/plugins/crypto/ua_pki_none.c */
19UA_EXPORT void
21
22#ifdef UA_ENABLE_ENCRYPTION
23
24/** Accept certificates based on a trust-list and a revocation-list. Based on mbedTLS.
25 * Any plugin implementation should invalidate an existing certificate verification
26 * by first calling the internal clear() method if it is not NULL.
27 * Refer to the default implementation in src/plugins/crypto/mbedtls/ua_pki_mbedtls.c
28 * or src/plugins/crypto/openssl/ua_pki_openssl.c */
29UA_EXPORT UA_StatusCode
31 const UA_ByteString *certificateTrustList,
32 size_t certificateTrustListSize,
33 const UA_ByteString *certificateIssuerList,
34 size_t certificateIssuerListSize,
35 const UA_ByteString *certificateRevocationList,
36 size_t certificateRevocationListSize);
37
38#ifdef __linux__ /* Linux only so far */
39
40#ifdef UA_ENABLE_CERT_REJECTED_DIR
41UA_EXPORT UA_StatusCode
42UA_CertificateVerification_CertFolders(UA_CertificateVerification *cv,
43 const char *trustListFolder,
44 const char *issuerListFolder,
45 const char *revocationListFolder,
46 const char *rejectedListFolder);
47#else
48UA_EXPORT UA_StatusCode
49UA_CertificateVerification_CertFolders(UA_CertificateVerification *cv,
50 const char *trustListFolder,
51 const char *issuerListFolder,
52 const char *revocationListFolder);
53#endif
54#endif
55
56#endif
57
59
60#endif /* UA_PKI_CERTIFICATE_H_ */
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition config.h:100
#define _UA_END_DECLS
Definition config.h:107
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:82