S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_pki_stack_lib_itf.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
29#ifndef SOPC_PKI_STACK_LIB_ITF_H_
30#define SOPC_PKI_STACK_LIB_ITF_H_
31
32#include "sopc_pki_decl.h"
33
34/*
35TODO :
36 - Handle that the security level of the update is not higher than the security level of the endpoint
37 (The following issue has been SUBMITTED : https://mantis.opcfoundation.org/view.php?id=8976)
38*/
39
58 const SOPC_PKI_ChainProfile* pProfile,
59 uint32_t** pErrors,
60 char*** ppThumbprints,
61 uint32_t* pLength);
62
75
85
97 const SOPC_PKI_LeafProfile* pConfig);
98
111
123 const SOPC_PKI_LeafProfile* pProfile);
124
125#endif /* SOPC_PKI_STACK_LIB_ITF_H_ */
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
Defines the common declarations for the PKI objects. The structures and macros defined in this file a...
SOPC_ReturnStatus SOPC_PKIProvider_CheckSecurityPolicy(const SOPC_CertificateList *pToValidate, const SOPC_PKI_LeafProfile *pConfig)
Checks if the PKI public keys are valid.
SOPC_ReturnStatus SOPC_PKIProvider_CheckHostName(const SOPC_CertificateList *pToValidate, const char *url)
Checks if the host name in the URL used to connect to the server is the same as the host name in the ...
SOPC_ReturnStatus SOPC_PKIProvider_CheckCommonName(const SOPC_CertificateList *pToValidate)
Checks if the Common Name attribute of a certificate thumbprint is specified.
SOPC_ReturnStatus SOPC_PKIProvider_VerifyEveryCertificate(SOPC_PKIProvider *pPKI, const SOPC_PKI_ChainProfile *pProfile, uint32_t **pErrors, char ***ppThumbprints, uint32_t *pLength)
Verify every certificate of the PKI.
SOPC_ReturnStatus SOPC_PKIProvider_CheckCertificateUsage(const SOPC_CertificateList *pToValidate, const SOPC_PKI_LeafProfile *pProfile)
Checks if the certificate uses are matching the required uses.
SOPC_ReturnStatus SOPC_PKIProvider_AddCertToRejectedList(SOPC_PKIProvider *pPKI, const SOPC_CertificateList *pCert)
Add a certificate to the PKI rejected list.
The signed public key representation.
Definition key_manager_cyclone.h:60
The PKIProvider object for the Public Key Infrastructure.
Definition sopc_pki_struct_lib_internal.h:39
Structure containing the certificate chain profile for the validation with SOPC_PKIProvider_ValidateC...
Definition sopc_pki_struct_lib_internal.h:120
Structure containing the leaf certificate profile for validation with SOPC_PKIProvider_ValidateCertif...
Definition sopc_pki_struct_lib_internal.h:91