diff options
author | Matt Caswell <matt@openssl.org> | 2023-05-01 15:40:28 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-05-24 12:18:27 +0100 |
commit | 63dfde87c46f8ad037ad5b5e635e609f4909578e (patch) | |
tree | 7f360b776e5aa174bc48bb2d1d9bd9f58ca2c7e7 /ssl/ssl_local.h | |
parent | 6dea91f56dcbcb0979dd36790664808ad960faf9 (diff) |
Add initial QUIC support for the msg_callback
At this stage we just support msg_callback on receipt of a datagram.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20914)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r-- | ssl/ssl_local.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index 485b18fb21..be834d8f68 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -799,6 +799,9 @@ typedef struct { # define TLS_GROUP_FFDHE_FOR_TLS1_3 (TLS_GROUP_FFDHE|TLS_GROUP_ONLY_FOR_TLS1_3) +typedef void (*ossl_msg_cb)(int write_p, int version, int content_type, + const void *buf, size_t len, SSL *ssl, void *arg); + struct ssl_ctx_st { OSSL_LIB_CTX *libctx; @@ -939,8 +942,7 @@ struct ssl_ctx_st { int read_ahead; /* callback that allows applications to peek at protocol messages */ - void (*msg_callback) (int write_p, int version, int content_type, - const void *buf, size_t len, SSL *ssl, void *arg); + ossl_msg_cb msg_callback; void *msg_callback_arg; uint32_t verify_mode; |