diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:55 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:12 +0100 |
commit | 8a90df343edb194920b7a01c8b5e47d8b6e952c5 (patch) | |
tree | 052a3bab9897e1f575b28b8b35143533378c6956 /include | |
parent | 8b7be3aa7e90d85441f5012624cece4dca33291e (diff) |
QUIC DISPATCH/APL: Add SSL_set_incoming_stream_reject_policy (unwired)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_ssl.h | 2 | ||||
-rw-r--r-- | include/openssl/ssl.h.in | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/internal/quic_ssl.h b/include/internal/quic_ssl.h index 986cd0e0d0..d307a9e196 100644 --- a/include/internal/quic_ssl.h +++ b/include/internal/quic_ssl.h @@ -72,6 +72,8 @@ __owur uint64_t ossl_quic_get_stream_id(SSL *s); __owur int ossl_quic_set_default_stream_mode(SSL *s, uint32_t mode); __owur SSL *ossl_quic_detach_stream(SSL *s); __owur int ossl_quic_attach_stream(SSL *conn, SSL *stream); +__owur int ossl_quic_set_incoming_stream_reject_policy(SSL *s, int policy, + uint64_t aec); /* * Used to override ossl_time_now() for debug purposes. Must be called before diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in index c5ab105816..d29ad85ece 100644 --- a/include/openssl/ssl.h.in +++ b/include/openssl/ssl.h.in @@ -2288,6 +2288,11 @@ __owur int SSL_attach_stream(SSL *conn, SSL *stream); #define SSL_STREAM_FLAG_UNI (1U << 0) __owur SSL *SSL_new_stream(SSL *s, uint64_t flags); +#define SSL_INCOMING_STREAM_REJECT_POLICY_AUTO 0 +#define SSL_INCOMING_STREAM_REJECT_POLICY_ACCEPT 1 +#define SSL_INCOMING_STREAM_REJECT_POLICY_REJECT 2 +__owur int SSL_set_incoming_stream_reject_policy(SSL *s, int policy, uint64_t aec); + # ifndef OPENSSL_NO_QUIC __owur int SSL_inject_net_dgram(SSL *s, const unsigned char *buf, size_t buf_len, |