S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
key_manager_mbedtls.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 "sopc_crypto_decl.h"
29#include "sopc_enums.h"
30
31// Note : this file MUST be included before other mbedtls headers
32#include "mbedtls_common.h"
33
34#include "mbedtls/pk.h"
35#include "mbedtls/x509_crt.h"
36#include "mbedtls/x509_csr.h"
37
45{
46 mbedtls_pk_context pk;
49};
50
65{
66 mbedtls_x509_crt crt;
67};
68
80struct SOPC_CRLList
81{
82 mbedtls_x509_crl crl;
83};
84
85struct SOPC_CSR
86{
87 mbedtls_x509write_csr csr;
88};
89
90// INTERNAL FUNCTIONS
91
111 SOPC_AsymmetricKey* pKey);
112
113#endif /* SOPC_KEY_MANAGER_LIB_H_ */
SOPC_ReturnStatus SOPC_KeyManagerInternal_Certificate_GetPublicKey(const SOPC_CertificateList *pCert, SOPC_AsymmetricKey *pKey)
Returns the internal public key of the given signed public key.
Provides compatibility with different versions of MBEDTLS.
Defines the common declarations for the cryptographic objects. The structures and macros defined in t...
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
The asymmetric key representation.
Definition key_manager_cyclone.h:42
mbedtls_pk_context pk
Definition key_manager_mbedtls.h:46
bool isBorrowedFromCert
Definition key_manager_cyclone.h:45
A list of Certificate Revocation Lists.
Definition key_manager_cyclone.h:79
mbedtls_x509_crl crl
Definition key_manager_mbedtls.h:82
Definition key_manager_cyclone.h:86
mbedtls_x509write_csr csr
Definition key_manager_mbedtls.h:87
The signed public key representation.
Definition key_manager_cyclone.h:60
mbedtls_x509_crt crt
Definition key_manager_mbedtls.h:66