summaryrefslogtreecommitdiff
path: root/lib/includes/gnutls/gnutls.h.in
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2019-04-11 12:11:00 +0200
committerDaiki Ueno <dueno@redhat.com>2019-04-19 08:56:51 +0200
commit89c975cc25d4e7c5040a3f657b732dd1704bfb2b (patch)
tree223c8d24d1e790c2fdfc0fd1ff090be16bd087d5 /lib/includes/gnutls/gnutls.h.in
parent0e579649a6e9ab690f0a3f6f8a0b7abd3f715881 (diff)
downloadgnutls-89c975cc25d4e7c5040a3f657b732dd1704bfb2b.tar.gz
prf: add function to retrieve early keying material
This adds a new function gnutls_prf_early, which shall be called in a handshake hook waiting for GNUTLS_HANDSHAKE_CLIENT_HELLO. The test needs to be run in a datefudge wrapper as the early secrets depend on the current time (through PSK). Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/includes/gnutls/gnutls.h.in')
-rw-r--r--lib/includes/gnutls/gnutls.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
index 7fc96aaea1..0801203128 100644
--- a/lib/includes/gnutls/gnutls.h.in
+++ b/lib/includes/gnutls/gnutls.h.in
@@ -1471,6 +1471,10 @@ int gnutls_prf_rfc5705(gnutls_session_t session,
size_t label_size, const char *label,
size_t context_size, const char *context,
size_t outsize, char *out);
+int gnutls_prf_early(gnutls_session_t session,
+ size_t label_size, const char *label,
+ size_t context_size, const char *context,
+ size_t outsize, char *out);
int gnutls_prf_raw(gnutls_session_t session,
size_t label_size, const char *label,