1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4:lib/tls: add tstream_tls_ngtcp2_connect_send/recv

This implemented a tstream_context for a single QUIC
stream using libngtcp2 over an udp socket.

This will allow us to support the SMB over QUIC protocol
on the client side even without quic.ko kernel support.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher
2025-05-04 18:20:56 +02:00
parent a8c2080533
commit 20e42cbbfe
3 changed files with 2023 additions and 0 deletions

View File

@ -153,4 +153,21 @@ NTSTATUS tstream_tls_quic_handshake(struct tstream_tls_params *tlsp,
const char *alpn,
int sockfd);
struct tevent_req *_tstream_tls_ngtcp2_connect_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct tstream_tls_params *tlsp,
uint32_t timeout_msec,
const char *alpn,
int *sockfd,
const char *location);
int tstream_tls_ngtcp2_connect_recv(struct tevent_req *req,
int *perrno,
TALLOC_CTX *mem_ctx,
struct tstream_context **quic_stream);
#define tstream_tls_ngtcp2_connect_send(mem_ctx, ev, tls_params, \
timeout_msec, alpn, sockfd) \
_tstream_tls_ngtcp2_connect_send(mem_ctx, ev, tls_params, \
timeout_msec, alpn, sockfd, \
__location__)
#endif /* _TLS_H_ */

File diff suppressed because it is too large Load Diff

View File

@ -14,4 +14,6 @@ bld.SAMBA_SUBSYSTEM('LIBTLS',
tevent
tevent-util
quic
libngtcp2
libngtcp2_crypto_gnutls
''')