summaryrefslogtreecommitdiff
path: root/lib/state.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-31 14:55:19 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-01 09:44:00 +0200
commit93bd6b8aa3bc4ed7f3e8673d3894eeddee7fbf7f (patch)
treeab1dbdd1619a9c6aaa44c9912ab6cf420db2cefb /lib/state.h
parentda05fdb2d83cc9eb67f2e6569d8e29ed84dcd850 (diff)
downloadgnutls-93bd6b8aa3bc4ed7f3e8673d3894eeddee7fbf7f.tar.gz
_gnutls_PRF: was made inline function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/state.h')
-rw-r--r--lib/state.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/state.h b/lib/state.h
index 9e5fff848a..fd7b3f66d8 100644
--- a/lib/state.h
+++ b/lib/state.h
@@ -85,10 +85,17 @@ int _gnutls_session_is_psk(gnutls_session_t session);
int _gnutls_openpgp_send_fingerprint(gnutls_session_t session);
-int _gnutls_PRF(gnutls_session_t session,
- const uint8_t * secret, unsigned int secret_size,
- const char *label, int label_size,
- const uint8_t * seed, int seed_size,
- int total_bytes, void *ret);
+inline static int
+_gnutls_PRF(gnutls_session_t session,
+ const uint8_t * secret, unsigned int secret_size,
+ const char *label, int label_size, const uint8_t * seed,
+ int seed_size, int total_bytes, void *ret)
+{
+ return _gnutls_prf_raw(session->security_parameters.prf_mac,
+ secret_size, secret,
+ label_size, label,
+ seed_size, seed,
+ total_bytes, ret);
+}
#define DEFAULT_CERT_TYPE GNUTLS_CRT_X509