Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TLS_axTLS-Example HTTPSClientExample
Certificate processing. More...
Go to the source code of this file.
Functions | |
| static const uint8_t * | get_signature (const uint8_t *asn1_sig, int *len) |
| Retrieve the signature from a certificate. | |
| int | x509_new (const uint8_t *cert, int *len, X509_CTX **ctx) |
| Construct a new x509 object. | |
| void | x509_free (X509_CTX *x509_ctx) |
| Free an X.509 object's resources. | |
| bigint * | sig_verify (BI_CTX *ctx, const uint8_t *sig, int sig_len, bigint *modulus, bigint *pub_exp) |
| Take a signature and decrypt it. | |
| int | x509_verify (PrecomputedCertificate *cert) |
| Do some basic checks on the certificate chain. | |
Variables | |
| static const char * | not_part_of_cert = "<Not Part Of Certificate>" |
| Used for diagnostics. | |
Detailed Description
Certificate processing.
Definition in file x509.c.
Function Documentation
| static const uint8_t* get_signature | ( | const uint8_t * | asn1_sig, |
| int * | len | ||
| ) | [static] |
| void x509_free | ( | X509_CTX * | x509_ctx ) |
| int x509_new | ( | const uint8_t * | cert, |
| int * | len, | ||
| X509_CTX ** | ctx | ||
| ) |
| int x509_verify | ( | PrecomputedCertificate * | cert ) |
Do some basic checks on the certificate chain.
Certificate verification consists of a number of checks:
- The date of the certificate is after the start date.
- The date of the certificate is before the finish date.
- A root certificate exists in the certificate store.
- That the certificate(s) are not self-signed.
- The certificate chain is valid.
- The signature of the certificate is valid.
Variable Documentation
const char* not_part_of_cert = "<Not Part Of Certificate>" [static] |
Generated on Wed Jul 13 2022 19:30:08 by
1.7.2