scep_client_misc.h File Reference

Helper functions for SCEP client. More...

#include "core/net.h"
#include "scep/scep_client.h"
#include "pkcs7/pkcs7_common.h"

Go to the source code of this file.

Functions

error_t scepClientSelectContentEncrAlgo (ScepClientContext *context, Pkcs7ContentEncrAlgo *contentEncrAlgo)
 Content encryption algorithm selection. More...
 
error_t scepClientSelectSignatureAlgo (ScepClientContext *context, X509SignAlgoId *signatureAlgo)
 Signature algorithm selection. More...
 
error_t scepClientParseCaCert (ScepClientContext *context, X509CertInfo *certInfo)
 Parse CA certificate. More...
 
error_t scepClientVerifyCaCert (ScepClientContext *context)
 Verify CA certificate. More...
 
error_t scepClientGenerateTransactionId (ScepClientContext *context)
 Transaction identifier generation. More...
 
error_t scepClientGenerateCsr (ScepClientContext *context)
 Generate PKCS #10 certificate request. More...
 
error_t scepClientGenerateSelfSignedCert (ScepClientContext *context)
 Generate self-signed certificate. More...
 

Detailed Description

Helper functions for SCEP client.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneCRYPTO Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.5.2

Definition in file scep_client_misc.h.

Function Documentation

◆ scepClientGenerateCsr()

error_t scepClientGenerateCsr ( ScepClientContext context)

Generate PKCS #10 certificate request.

Parameters
[in]contextPointer to the SCEP client context
Returns
Error code

Definition at line 359 of file scep_client_misc.c.

◆ scepClientGenerateSelfSignedCert()

error_t scepClientGenerateSelfSignedCert ( ScepClientContext context)

Generate self-signed certificate.

Parameters
[in]contextPointer to the SCEP client context
Returns
Error code

Definition at line 387 of file scep_client_misc.c.

◆ scepClientGenerateTransactionId()

error_t scepClientGenerateTransactionId ( ScepClientContext context)

Transaction identifier generation.

Parameters
[in]contextPointer to the SCEP client context
Returns
Error code

Definition at line 314 of file scep_client_misc.c.

◆ scepClientParseCaCert()

error_t scepClientParseCaCert ( ScepClientContext context,
X509CertInfo certInfo 
)

Parse CA certificate.

Parameters
[in]contextPointer to the SCEP client context
[out]certInfoInformation resulting from the parsing process
Returns
Error code

Definition at line 173 of file scep_client_misc.c.

◆ scepClientSelectContentEncrAlgo()

error_t scepClientSelectContentEncrAlgo ( ScepClientContext context,
Pkcs7ContentEncrAlgo contentEncrAlgo 
)

Content encryption algorithm selection.

Parameters
[in]contextPointer to the SCEP client context
[out]contentEncrAlgoContent encryption algorithm
Returns
Error code

Definition at line 54 of file scep_client_misc.c.

◆ scepClientSelectSignatureAlgo()

error_t scepClientSelectSignatureAlgo ( ScepClientContext context,
X509SignAlgoId signatureAlgo 
)

Signature algorithm selection.

Parameters
[in]contextPointer to the SCEP client context
[out]signatureAlgoSignature algorithm

Definition at line 102 of file scep_client_misc.c.

◆ scepClientVerifyCaCert()

error_t scepClientVerifyCaCert ( ScepClientContext context)

Verify CA certificate.

Parameters
[in]contextPointer to the SCEP client context
Returns
Error code

Definition at line 222 of file scep_client_misc.c.