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:
@ -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
@ -14,4 +14,6 @@ bld.SAMBA_SUBSYSTEM('LIBTLS',
|
||||
tevent
|
||||
tevent-util
|
||||
quic
|
||||
libngtcp2
|
||||
libngtcp2_crypto_gnutls
|
||||
''')
|
||||
|
Reference in New Issue
Block a user