summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-10-24 18:01:55 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-10-24 18:01:55 +0300
commit445fa3641e7c37afdb153906b5db0a0c74713b97 (patch)
tree1bc48b9640cdc4702708d207a23f863bf738e0ca /lib/gnutls_int.h
parentcad80e6184135ea65f6f46a9abf9c1534486deab (diff)
downloadgnutls-445fa3641e7c37afdb153906b5db0a0c74713b97.tar.gz
lib: simplify uint24 handling
Drop separate uint24 type and functions to convert between it and uint32_t. This makes _gnutls_read/_write_uint24 simpler and easier to understand. And with faster assembly code. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 3b683a1de1..6a5b61cc69 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -263,10 +263,6 @@ typedef enum record_send_state_t {
#define GNUTLS_KX_INVALID (-1)
-typedef struct {
- uint8_t pint[3];
-} uint24;
-
#include <mpi.h>
typedef enum handshake_state_t { STATE0 = 0, STATE1, STATE2,