cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
pqc_layer.c File Reference

Post-Quantum Cryptography (PQC) TLS layer facade. More...

#include <cwist/sys/app/app.h>
#include <cwist/core/log.h>
#include <openssl/ssl.h>
#include <string.h>
Include dependency graph for pqc_layer.c:

Go to the source code of this file.

Functions

bool cwist_tls_apply_pqc_layer (cwist_app *app, SSL_CTX *ctx)
 Apply PQC hybrid key exchange settings to an SSL context.
 

Detailed Description

Post-Quantum Cryptography (PQC) TLS layer facade.

Internal-only file. No application code should include this.

Definition in file pqc_layer.c.

Function Documentation

◆ cwist_tls_apply_pqc_layer()

bool cwist_tls_apply_pqc_layer ( cwist_app *  app,
SSL_CTX *  ctx 
)

Apply PQC hybrid key exchange settings to an SSL context.

Parameters
appApplication context containing PQC configuration.
ctxOpenSSL/BoringSSL SSL_CTX to mutate.
Returns
true when PQC was applied or not needed; false on failure.

Definition at line 19 of file pqc_layer.c.

References cap, CWIST_LOG_ERROR, CWIST_LOG_INFO, CWIST_LOG_WARN, cwist_app::pqc_layer_enabled, SSL_CTX_set1_groups_list, SSL_CTX_set_min_proto_version, SSL_CTX_set_options, SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2, TLS1_3_VERSION, and cwist_app::tls_groups.