diff options
author | Simon Josefsson <simon@josefsson.org> | 2005-12-15 11:28:00 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2005-12-15 11:28:00 +0000 |
commit | c134471a6b35383004b4fcb592e180d90740b619 (patch) | |
tree | f40e1930befca68190a5d862d48c2dff68c29bb4 /includes | |
parent | 7f81b41cf85c3b222afeb74acdbfc31897565176 (diff) | |
download | gnutls-c134471a6b35383004b4fcb592e180d90740b619.tar.gz |
Add functions to access the TLS PRF and to extract client/server random fields, suggested by Jouni Malinen <jkmaline@cc.hut.fi>.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/gnutls/gnutls.h.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/includes/gnutls/gnutls.h.in b/includes/gnutls/gnutls.h.in index 714d13c50b..7c752cfc7d 100644 --- a/includes/gnutls/gnutls.h.in +++ b/includes/gnutls/gnutls.h.in @@ -263,7 +263,6 @@ const char *gnutls_compression_get_name( gnutls_compression_method_t algorithm); const char *gnutls_kx_get_name( gnutls_kx_algorithm_t algorithm); const char *gnutls_certificate_type_get_name( gnutls_certificate_type_t type); - /* error functions */ int gnutls_error_is_fatal( int error); int gnutls_error_to_alert( int err, int* level); @@ -291,6 +290,17 @@ ssize_t gnutls_record_set_max_size( gnutls_session_t session, size_t size); size_t gnutls_record_check_pending(gnutls_session_t session); +int gnutls_prf (gnutls_session_t session, + size_t label_size, const char *label, + int server_random_first, + size_t extra_size, const char *extra, + size_t outsize, char *out); + +int gnutls_prf_raw (gnutls_session_t session, + size_t label_size, const char *label, + size_t seed_size, const char *seed, + size_t outsize, char *out); + /* TLS Extensions */ typedef enum { GNUTLS_NAME_DNS=1 @@ -345,6 +355,10 @@ int gnutls_session_get_data2( gnutls_session_t session, gnutls_datum* data); #define GNUTLS_MAX_SESSION_ID 32 int gnutls_session_get_id( gnutls_session_t session, void* session_id, size_t *session_id_size); +/* returns the client/server random fields. */ +const char *gnutls_session_get_server_random (gnutls_session_t session); +const char *gnutls_session_get_client_random (gnutls_session_t session); + /* checks if this session is a resumed one */ int gnutls_session_is_resumed(gnutls_session_t session); |