aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2026-02-10 03:11:38 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2026-02-15 15:16:26 +0100
commit657fbcd62c6cb1e15692ad471bc94cfe6efd8a5f (patch)
tree5c551c6a8aad525e4e1856a71fa56f9c292d4bfb /include
parent61055ef909268eedaf5573e652269545440453f8 (diff)
downloadbusybox-w32-657fbcd62c6cb1e15692ad471bc94cfe6efd8a5f.tar.gz
busybox-w32-657fbcd62c6cb1e15692ad471bc94cfe6efd8a5f.tar.bz2
busybox-w32-657fbcd62c6cb1e15692ad471bc94cfe6efd8a5f.zip
tls: implement server code
function old new delta tls_handshake_as_server 7 852 +845 .rodata 107103 107764 +661 psRsaCrypt - 577 +577 load_rsa_priv_key - 329 +329 psRsaDecryptPriv - 200 +200 derive_master_secret_and_keys - 154 +154 send_finished - 95 +95 get_change_cipher_spec - 88 +88 der_binary_to_pstm - 50 +50 get_finished - 42 +42 tls_xread_record 681 708 +27 ssl_server_main 285 288 +3 psRsaEncryptPub 395 199 -196 tls_handshake 2069 1690 -379 ------------------------------------------------------------------------------ (add/remove: 8/0 grow/shrink: 4/2 up/down: 3071/-575) Total: 2496 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index ecdbd9234..434a660bd 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -870,8 +870,11 @@ typedef struct tls_state {
870 int ofd; 870 int ofd;
871 int ifd; 871 int ifd;
872 872
873 unsigned min_encrypted_len_on_read; 873#if ENABLE_SSL_SERVER // || ENABLE_FEATURE_HTTPD_SSL
874 smallint expecting_first_packet;
875#endif
874 uint16_t cipher_id; 876 uint16_t cipher_id;
877 unsigned min_encrypted_len_on_read;
875 unsigned MAC_size; 878 unsigned MAC_size;
876 unsigned key_size; 879 unsigned key_size;
877 unsigned IV_size; 880 unsigned IV_size;
@@ -913,8 +916,8 @@ typedef struct tls_state {
913 uint8_t H[16]; //used by AES_GCM 916 uint8_t H[16]; //used by AES_GCM
914 917
915#if ENABLE_SSL_SERVER // || ENABLE_FEATURE_HTTPD_SSL 918#if ENABLE_SSL_SERVER // || ENABLE_FEATURE_HTTPD_SSL
916 const char *privkey_in_der_format; 919 /* For ECDHE: server's ephemeral EC private key */
917 const char *cert_in_der_format; 920 //uint8_t ecc_priv_key32[32];
918#endif 921#endif
919} tls_state_t; 922} tls_state_t;
920 923