My Project
|
Functions | |
int | wolfSSL_CTX_psa_enable (WOLFSSL_CTX *ctx) |
This function enables PSA support on the given context. More... | |
int | wolfSSL_set_psa_ctx (WOLFSSL *ssl, struct psa_ssl_ctx *ctx) |
This function setup the PSA context for the given SSL session. More... | |
void | wolfSSL_free_psa_ctx (struct psa_ssl_ctx *ctx) |
This function releases the resources used by a PSA context. More... | |
int | wolfSSL_psa_set_private_key_id (struct psa_ssl_ctx *ctx, psa_key_id_t id) |
This function set the private key used by an SSL session. More... | |
int wolfSSL_CTX_psa_enable | ( | WOLFSSL_CTX * | ctx | ) |
This function enables PSA support on the given context.
ctx | pointer to the WOLFSSL_CTX object on which the PSA support must be enabled |
Example
void wolfSSL_free_psa_ctx | ( | struct psa_ssl_ctx * | ctx | ) |
This function releases the resources used by a PSA context.
ctx | pointer to a struct psa_ssl_ctx |
int wolfSSL_psa_set_private_key_id | ( | struct psa_ssl_ctx * | ctx, |
psa_key_id_t | id | ||
) |
This function set the private key used by an SSL session.
ctx | pointer to a struct psa_ssl_ctx |
id | PSA id of the key to be used as private key |
Example
int wolfSSL_set_psa_ctx | ( | WOLFSSL * | ssl, |
struct psa_ssl_ctx * | ctx | ||
) |
This function setup the PSA context for the given SSL session.
ssl | pointer to the WOLFSSL where the ctx will be enabled |
ctx | pointer to a struct psa_ssl_ctx (must be unique for a ssl session) |
This function setup the PSA context for the TLS callbacks to the given SSL session. At the end of the session, the resources used by the context should be freed using wolfSSL_free_psa_ctx().
Example