summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/tls/s2n_internal.h
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2023-03-28 10:12:33 +0300
committerrobot-contrib <[email protected]>2023-03-28 10:12:33 +0300
commit7a815bed611966b3e27f438f43bc9dc7f69aef70 (patch)
tree0335bcf2d80c7d79a76496ffaa7bda87b6bbfdff /contrib/restricted/aws/s2n/tls/s2n_internal.h
parent14a9357e8d2d937e22b789d5aea09219a3e92c31 (diff)
Update contrib/restricted/aws/s2n to 1.3.39
Diffstat (limited to 'contrib/restricted/aws/s2n/tls/s2n_internal.h')
-rw-r--r--contrib/restricted/aws/s2n/tls/s2n_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/restricted/aws/s2n/tls/s2n_internal.h b/contrib/restricted/aws/s2n/tls/s2n_internal.h
index 87076a7e544..ed4f5d936b1 100644
--- a/contrib/restricted/aws/s2n/tls/s2n_internal.h
+++ b/contrib/restricted/aws/s2n/tls/s2n_internal.h
@@ -44,3 +44,12 @@ struct s2n_connection;
* modified after it has been built. Doing so is undefined behavior.
*/
S2N_PRIVATE_API int s2n_connection_get_config(struct s2n_connection *conn, struct s2n_config **config);
+
+/*
+ * Sets a certificate chain on the config.
+ *
+ * It does NOT set a private key, so the connection will need to be configured to
+ * [offload private key operations](https://github.com/aws/s2n-tls/blob/main/docs/USAGE-GUIDE.md#offloading-asynchronous-private-key-operations).
+ */
+S2N_PRIVATE_API int s2n_config_add_cert_chain(struct s2n_config *config,
+ uint8_t *cert_chain_pem, uint32_t cert_chain_pem_size);