S2OPC OPCUA Toolkit
key_manager_lib.h
Go to the documentation of this file.
1 /*
2  * Licensed to Systerel under one or more contributor license
3  * agreements. See the NOTICE file distributed with this work
4  * for additional information regarding copyright ownership.
5  * Systerel licenses this file to you under the Apache
6  * License, Version 2.0 (the "License"); you may not use this
7  * file except in compliance with the License. You may obtain
8  * a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
25 #ifndef SOPC_KEY_MANAGER_LIB_H_
26 #define SOPC_KEY_MANAGER_LIB_H_
27 
28 #include <stdbool.h>
29 
30 #include "sopc_crypto_decl.h"
31 #include "sopc_enums.h"
32 
33 // Note : this file MUST be included before other mbedtls headers
34 #include "mbedtls_common.h"
35 
36 #include "mbedtls/pk.h"
37 #include "mbedtls/x509_crt.h"
38 
46 {
47  mbedtls_pk_context pk;
50 };
51 
66 {
67  mbedtls_x509_crt crt;
68 };
69 
82 {
83  mbedtls_x509_crl crl;
84 };
85 
105 
106 #endif /* SOPC_KEY_MANAGER_LIB_H_ */
SOPC_CRLList::crl
mbedtls_x509_crl crl
Definition: key_manager_lib.h:83
SOPC_CertificateList
The signed public key representation, or a chained list of such keys.
Definition: key_manager_lib.h:66
sopc_crypto_decl.h
Defines the common declarations for the cryptographic objects.
KeyManager_Certificate_GetPublicKey
SOPC_ReturnStatus KeyManager_Certificate_GetPublicKey(const SOPC_CertificateList *pCert, SOPC_AsymmetricKey *pKey)
Returns the internal public key of the given signed public key.
sopc_enums.h
mbedtls_common.h
Provides compatibility with different versions of MBEDTLS.
SOPC_CertificateList::crt
mbedtls_x509_crt crt
Definition: key_manager_lib.h:67
SOPC_AsymmetricKey
The asymmetric key representation.
Definition: key_manager_lib.h:46
SOPC_AsymmetricKey::pk
mbedtls_pk_context pk
Definition: key_manager_lib.h:47
SOPC_AsymmetricKey::isBorrowedFromCert
bool isBorrowedFromCert
Definition: key_manager_lib.h:48
SOPC_CRLList
A list of Certificate Revocation Lists.
Definition: key_manager_lib.h:82
SOPC_ReturnStatus
SOPC_ReturnStatus
Definition: libs2opc_client.h:61