From 89c975cc25d4e7c5040a3f657b732dd1704bfb2b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 11 Apr 2019 12:11:00 +0200 Subject: 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 --- tests/tls13/prf-early.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 tests/tls13/prf-early.sh (limited to 'tests/tls13/prf-early.sh') diff --git a/tests/tls13/prf-early.sh b/tests/tls13/prf-early.sh new file mode 100755 index 0000000000..5b5ff0c33b --- /dev/null +++ b/tests/tls13/prf-early.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# Copyright (C) 2019 Daiki Ueno +# +# This file is part of GnuTLS. +# +# GnuTLS is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 3 of the License, or (at +# your option) any later version. +# +# GnuTLS is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see +# + +srcdir="${srcdir:-.}" +builddir="${builddir:-.}" + +. "${srcdir}/scripts/common.sh" + +check_for_datefudge + +datefudge 2019-04-12 "${builddir}/tls13/prf-early" "$@" +exit $? -- cgit v1.2.1