Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 4 of 4) sorted by relevance

/busybox-1.35.0/networking/
Dtls.c367 # define hash_handshake(tls, fmt, buffer, len) \ argument
368 hash_handshake(tls, buffer, len)
370 static void hash_handshake(tls_state_t *tls, const char *fmt, const void *buffer, unsigned len) in hash_handshake() argument
372 md5sha_hash(&tls->hsd->handshake_hash_ctx, buffer, len); in hash_handshake()
378 len = sha_peek(&tls->hsd->handshake_hash_ctx, h); in hash_handshake()
391 # define TLS_MAC_SIZE(tls) SHA256_OUTSIZE argument
393 # define TLS_MAC_SIZE(tls) (tls)->MAC_size argument
496 #define hmac(tls,out,key,key_size,...) \ argument
499 static unsigned hmac(tls_state_t *tls, uint8_t *out, uint8_t *key, unsigned key_size, ...) in hmac() argument
508 (ENABLE_FEATURE_TLS_SHA1 && tls->MAC_size == SHA1_OUTSIZE) in hmac()
[all …]
Dssl_client.c26 tls_state_t *tls; in ssl_client_main() local
32 tls = new_tls_state(); in ssl_client_main()
33 opt = getopt32(argv, "es:+r:+n:", &tls->ofd, &tls->ifd, &sni); in ssl_client_main()
36 tls->ifd = tls->ofd; in ssl_client_main()
48 tls->ifd = tls->ofd = create_and_connect_stream_or_die(argv[1], 443); in ssl_client_main()
51 tls_handshake(tls, sni); in ssl_client_main()
54 tls_run_copy_loop(tls, /*flags*/ opt & 1); in ssl_client_main()
Dwget.c796 tls_state_t *tls = new_tls_state(); in spawn_ssl_client() local
797 tls->ifd = tls->ofd = network_fd; in spawn_ssl_client()
798 tls_handshake(tls, servername); in spawn_ssl_client()
799 tls_run_copy_loop(tls, flags); in spawn_ssl_client()
/busybox-1.35.0/include/
Dlibbb.h894 tls_state_t *tls = xzalloc(sizeof(*tls)); in new_tls_state() local
895 return tls; in new_tls_state()
897 void tls_handshake(tls_state_t *tls, const char *sni) FAST_FUNC;
899 void tls_run_copy_loop(tls_state_t *tls, unsigned flags) FAST_FUNC;