aboutsummaryrefslogtreecommitdiff
path: root/networking/tls.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-19 16:32:38 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-19 16:32:38 +0100
commit432f1ae2ff184e07fa78bd3797073094069e521d (patch)
tree390ac831d959105cf07ba8bb71edcab9d1d0a865 /networking/tls.c
parent6b1b004845ebec194c4d4868d3deb57f22711b19 (diff)
downloadbusybox-w32-432f1ae2ff184e07fa78bd3797073094069e521d.tar.gz
busybox-w32-432f1ae2ff184e07fa78bd3797073094069e521d.tar.bz2
busybox-w32-432f1ae2ff184e07fa78bd3797073094069e521d.zip
tls: tested PSTM_X86_64, not enabling it - too large
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls.c')
-rw-r--r--networking/tls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/tls.c b/networking/tls.c
index f3d0bde90..092735884 100644
--- a/networking/tls.c
+++ b/networking/tls.c
@@ -582,7 +582,7 @@ static void xwrite_and_hash(tls_state_t *tls, /*const*/ void *buf, unsigned size
582 tls_get_random(tls->outbuf, AES_BLOCKSIZE); /* IV */ 582 tls_get_random(tls->outbuf, AES_BLOCKSIZE); /* IV */
583 p = tls->outbuf + AES_BLOCKSIZE; 583 p = tls->outbuf + AES_BLOCKSIZE;
584 size -= sizeof(*xhdr); 584 size -= sizeof(*xhdr);
585 dbg("before crypt: 5 hdr + %u data + %u hash bytes\n", size, sizeof(mac_hash)); 585 dbg("before crypt: 5 hdr + %u data + %u hash bytes\n", size, (int)sizeof(mac_hash));
586 p = mempcpy(p, buf + sizeof(*xhdr), size); /* content */ 586 p = mempcpy(p, buf + sizeof(*xhdr), size); /* content */
587 p = mempcpy(p, mac_hash, sizeof(mac_hash)); /* MAC */ 587 p = mempcpy(p, mac_hash, sizeof(mac_hash)); /* MAC */
588 size += sizeof(mac_hash); 588 size += sizeof(mac_hash);
@@ -625,7 +625,7 @@ static void xwrite_and_hash(tls_state_t *tls, /*const*/ void *buf, unsigned size
625 xhdr->len16_lo = size & 0xff; 625 xhdr->len16_lo = size & 0xff;
626 xwrite(tls->fd, xhdr, sizeof(*xhdr)); 626 xwrite(tls->fd, xhdr, sizeof(*xhdr));
627 xwrite(tls->fd, tls->outbuf, size); 627 xwrite(tls->fd, tls->outbuf, size);
628 dbg("wrote %u bytes\n", sizeof(*xhdr) + size); 628 dbg("wrote %u bytes\n", (int)sizeof(*xhdr) + size);
629//restore xhdr->len16_hi = ; 629//restore xhdr->len16_hi = ;
630//restore xhdr->len16_lo = ; 630//restore xhdr->len16_lo = ;
631 } 631 }