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 | |
parent | f9463b7c4c197abddc01c3a7bcd6894cfa2032f3 (diff) | |
download | gnutls-8e1694126b84557c00775d84195159b43bc4ba58.tar.gz |
*** empty log message ***
-rw-r--r-- | includes/gnutls/gnutls.h.in | 16 | ||||
-rw-r--r-- | lib/gnutls_handshake.c | 2 |
2 files changed, 11 insertions, 7 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 diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c index bf314aea1b..66cec0a9bb 100644 --- a/lib/gnutls_handshake.c +++ b/lib/gnutls_handshake.c @@ -2815,7 +2815,7 @@ _gnutls_remove_unwanted_ciphersuites (gnutls_session_t session, * **/ void -gnutls_handshake_set_max_packet_length (gnutls_session_t session, int max) +gnutls_handshake_set_max_packet_length (gnutls_session_t session, size_t max) { session->internals.max_handshake_data_buffer_size = max; } |