open62541
1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
doc
open62541
include
open62541
plugin
pki.h
Go to the documentation of this file.
1
/** This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
*
5
* Copyright 2018 (c) Mark Giraud, Fraunhofer IOSB
6
*/
7
8
#ifndef UA_PLUGIN_PKI_H_
9
#define UA_PLUGIN_PKI_H_
10
11
#include <
open62541/types.h
>
12
#include <
open62541/types_generated.h
>
13
14
_UA_BEGIN_DECLS
15
16
17
18
struct
UA_CertificateVerification
;
19
typedef
struct
UA_CertificateVerification
UA_CertificateVerification
;
20
21
struct
UA_CertificateVerification
{
22
void
*
context
;
23
24
/* Verify the certificate against the configured policies and trust chain. */
25
UA_StatusCode
(*
verifyCertificate
)(
void
*verificationContext,
26
const
UA_ByteString
*certificate);
27
28
/* Verify that the certificate has the applicationURI in the subject name. */
29
UA_StatusCode
(*
verifyApplicationURI
)(
void
*verificationContext,
30
const
UA_ByteString
*certificate,
31
const
UA_String
*applicationURI);
32
33
/* Delete the certificate verification context */
34
void (*
clear
)(
UA_CertificateVerification
*cv);
35
};
36
37
_UA_END_DECLS
38
39
#endif
/* UA_PLUGIN_PKI_H_ */
_UA_BEGIN_DECLS
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition
config.h:89
_UA_END_DECLS
#define _UA_END_DECLS
Definition
config.h:96
UA_CertificateVerification
Definition
pki.h:21
UA_CertificateVerification::verifyCertificate
UA_StatusCode(* verifyCertificate)(void *verificationContext, const UA_ByteString *certificate)
Definition
pki.h:25
UA_CertificateVerification::context
void * context
Definition
pki.h:22
UA_CertificateVerification::clear
void(* clear)(UA_CertificateVerification *cv)
Definition
pki.h:34
UA_CertificateVerification::verifyApplicationURI
UA_StatusCode(* verifyApplicationURI)(void *verificationContext, const UA_ByteString *certificate, const UA_String *applicationURI)
Definition
pki.h:29
UA_String
Definition
types.h:114
types.h
UA_StatusCode
uint32_t UA_StatusCode
Definition
types.h:77
types_generated.h
Generated by
1.11.0