diff options
Diffstat (limited to 'lib/gnutls_state.h')
-rw-r--r-- | lib/gnutls_state.h | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/lib/gnutls_state.h b/lib/gnutls_state.h index edacde3e2a..89d40e037e 100644 --- a/lib/gnutls_state.h +++ b/lib/gnutls_state.h @@ -25,23 +25,25 @@ #include <gnutls_int.h> -void _gnutls_session_cert_type_set (gnutls_session_t session, - gnutls_certificate_type_t); +void _gnutls_session_cert_type_set(gnutls_session_t session, + gnutls_certificate_type_t); -inline static gnutls_ecc_curve_t _gnutls_session_ecc_curve_get(gnutls_session_t session) +inline static gnutls_ecc_curve_t +_gnutls_session_ecc_curve_get(gnutls_session_t session) { - return session->security_parameters.ecc_curve; + return session->security_parameters.ecc_curve; } -int _gnutls_session_is_ecc (gnutls_session_t session); +int _gnutls_session_is_ecc(gnutls_session_t session); void -_gnutls_session_ecc_curve_set (gnutls_session_t session, - gnutls_ecc_curve_t c); +_gnutls_session_ecc_curve_set(gnutls_session_t session, + gnutls_ecc_curve_t c); void -_gnutls_record_set_default_version (gnutls_session_t session, - unsigned char major, unsigned char minor); +_gnutls_record_set_default_version(gnutls_session_t session, + unsigned char major, + unsigned char minor); #include <gnutls_auth.h> @@ -52,36 +54,36 @@ _gnutls_record_set_default_version (gnutls_session_t session, #endif -int _gnutls_session_cert_type_supported (gnutls_session_t, - gnutls_certificate_type_t); -int _gnutls_dh_set_secret_bits (gnutls_session_t session, unsigned bits); +int _gnutls_session_cert_type_supported(gnutls_session_t, + gnutls_certificate_type_t); +int _gnutls_dh_set_secret_bits(gnutls_session_t session, unsigned bits); -int _gnutls_dh_set_peer_public (gnutls_session_t session, bigint_t public); -int _gnutls_dh_set_group (gnutls_session_t session, bigint_t gen, - bigint_t prime); +int _gnutls_dh_set_peer_public(gnutls_session_t session, bigint_t public); +int _gnutls_dh_set_group(gnutls_session_t session, bigint_t gen, + bigint_t prime); -static inline int -_gnutls_dh_get_min_prime_bits (gnutls_session_t session) +static inline int _gnutls_dh_get_min_prime_bits(gnutls_session_t session) { - if (session->internals.priorities.dh_prime_bits != 0) - return session->internals.priorities.dh_prime_bits; - else - return gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH, session->internals.priorities.level); + if (session->internals.priorities.dh_prime_bits != 0) + return session->internals.priorities.dh_prime_bits; + else + return gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH, + session->internals. + priorities.level); } -void _gnutls_handshake_internal_state_clear (gnutls_session_t); +void _gnutls_handshake_internal_state_clear(gnutls_session_t); -int _gnutls_session_is_resumable (gnutls_session_t session); +int _gnutls_session_is_resumable(gnutls_session_t session); -int _gnutls_session_is_psk (gnutls_session_t session); +int _gnutls_session_is_psk(gnutls_session_t session); -int _gnutls_openpgp_send_fingerprint (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); +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); #define DEFAULT_CERT_TYPE GNUTLS_CRT_X509 - |