summaryrefslogtreecommitdiff
path: root/lib/includes/gnutls/gnutls.h.in
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-02-20 11:16:44 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-02-20 11:16:46 +0100
commit47e828d793807700f20da4c32a9149bf4906f7b2 (patch)
tree555712903a1fc5f9098236eda4306ae0044f9176 /lib/includes/gnutls/gnutls.h.in
parentb5557f947060167172b43e16889aa206572c70a2 (diff)
downloadgnutls-47e828d793807700f20da4c32a9149bf4906f7b2.tar.gz
Added gnutls_record_get_state() and gnutls_record_set_state()
These functions allow to export the key material and sequence numbers. That allows offloading the sending and receiving of individual records.
Diffstat (limited to 'lib/includes/gnutls/gnutls.h.in')
-rw-r--r--lib/includes/gnutls/gnutls.h.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
index 33cdf2507b..665326ea31 100644
--- a/lib/includes/gnutls/gnutls.h.in
+++ b/lib/includes/gnutls/gnutls.h.in
@@ -934,6 +934,19 @@ void gnutls_record_cork(gnutls_session_t session);
int gnutls_record_uncork(gnutls_session_t session, unsigned int flags);
size_t gnutls_record_discard_queued(gnutls_session_t session);
+int
+gnutls_record_get_state(gnutls_session_t session,
+ unsigned read,
+ gnutls_datum_t *mac_key,
+ gnutls_datum_t *IV,
+ gnutls_datum_t *cipher_key,
+ unsigned char seq_number[8]);
+
+int
+gnutls_record_set_state(gnutls_session_t session,
+ unsigned read,
+ unsigned char seq_number[8]);
+
typedef struct {
size_t low;
size_t high;