diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2006-04-05 20:35:50 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2006-04-05 20:35:50 +0000 |
commit | 8e1694126b84557c00775d84195159b43bc4ba58 (patch) | |
tree | 5f98b6b1356e06f3a3ca5e29da54a81fc402b7c2 /includes | |
parent | f9463b7c4c197abddc01c3a7bcd6894cfa2032f3 (diff) | |
download | gnutls-8e1694126b84557c00775d84195159b43bc4ba58.tar.gz |
*** empty log message ***
Diffstat (limited to 'includes')
-rw-r--r-- | includes/gnutls/gnutls.h.in | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/includes/gnutls/gnutls.h.in b/includes/gnutls/gnutls.h.in index 9a50494964..748a7a70eb 100644 --- a/includes/gnutls/gnutls.h.in +++ b/includes/gnutls/gnutls.h.in @@ -476,10 +476,14 @@ extern "C" int gnutls_session_get_id (gnutls_session_t session, void *session_id, size_t * session_id_size); -/* returns security values. */ - const char *gnutls_session_get_server_random (gnutls_session_t session); - const char *gnutls_session_get_client_random (gnutls_session_t session); - const char *gnutls_session_get_master_secret (gnutls_session_t session); +/* returns security values. + * Do not use them unless you know what you're doing. + */ +#define TLS_MASTER_SIZE 48 +#define TLS_RANDOM_SIZE 32 + const void *gnutls_session_get_server_random (gnutls_session_t session); + const void *gnutls_session_get_client_random (gnutls_session_t session); + const void *gnutls_session_get_master_secret (gnutls_session_t session); /* checks if this session is a resumed one */ @@ -505,7 +509,7 @@ extern "C" gnutls_datum_t session_entry); void gnutls_handshake_set_max_packet_length (gnutls_session_t session, - int max); + size_t max); /* returns libgnutls version (call it with a NULL argument) */ @@ -521,7 +525,7 @@ extern "C" gnutls_credentials_type_t type, void *cred); #define gnutls_cred_set gnutls_credentials_set -/* Credential structures for SRP - used in gnutls_credentials_set(); */ +/* Credential structures - used in gnutls_credentials_set(); */ struct gnutls_certificate_credentials_st; typedef struct gnutls_certificate_credentials_st |