diff options
Diffstat (limited to 'src/plugins/tlspicotls/tls_picotls.h')
-rw-r--r-- | src/plugins/tlspicotls/tls_picotls.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/tlspicotls/tls_picotls.h b/src/plugins/tlspicotls/tls_picotls.h index 835f4a6b071..b8e802eb551 100644 --- a/src/plugins/tlspicotls/tls_picotls.h +++ b/src/plugins/tlspicotls/tls_picotls.h @@ -7,6 +7,12 @@ #include <vnet/tls/tls.h> #include <vpp/app/version.h> +#define TLS_RX_LEN(x) ((x)->rx_content + (x)->rx_len) +#define TLS_RX_OFFSET(x) ((x)->rx_content + (x)->rx_offset) +#define TLS_RX_IS_LEFT(x) ((x)->rx_len != (x)->rx_offset) +#define TLS_RX_LEFT_LEN(x) ((x)->rx_len - (x)->rx_offset) + + typedef struct tls_ctx_picotls_ { tls_ctx_t ctx; |