diff options
author | Daiki Ueno <ueno@gnu.org> | 2023-04-24 12:39:42 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2023-04-24 12:45:46 +0900 |
commit | aa5950abab56b011331ad4331409b6ff8efb8aeb (patch) | |
tree | ad363fb38e8b65c942876641cda9c76caa13b498 /lib/ext/post_handshake.c | |
parent | 0fe9cb6842d63761718046cc7dd7eb437e6c5163 (diff) | |
download | gnutls-aa5950abab56b011331ad4331409b6ff8efb8aeb.tar.gz |
build: re-indent code
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/ext/post_handshake.c')
-rw-r--r-- | lib/ext/post_handshake.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/ext/post_handshake.c b/lib/ext/post_handshake.c index fe89c46169..9985757246 100644 --- a/lib/ext/post_handshake.c +++ b/lib/ext/post_handshake.c @@ -31,10 +31,10 @@ #include "auth/cert.h" static int _gnutls_post_handshake_recv_params(gnutls_session_t session, - const uint8_t * data, + const uint8_t *data, size_t data_size); static int _gnutls_post_handshake_send_params(gnutls_session_t session, - gnutls_buffer_st * extdata); + gnutls_buffer_st *extdata); const hello_ext_entry_st ext_mod_post_handshake = { .name = "Post Handshake Auth", @@ -51,9 +51,9 @@ const hello_ext_entry_st ext_mod_post_handshake = { .cannot_be_overriden = 1 }; -static int -_gnutls_post_handshake_recv_params(gnutls_session_t session, - const uint8_t * data, size_t _data_size) +static int _gnutls_post_handshake_recv_params(gnutls_session_t session, + const uint8_t *data, + size_t _data_size) { const version_entry_st *vers; @@ -72,9 +72,8 @@ _gnutls_post_handshake_recv_params(gnutls_session_t session, /* returns data_size or a negative number on failure */ -static int -_gnutls_post_handshake_send_params(gnutls_session_t session, - gnutls_buffer_st * extdata) +static int _gnutls_post_handshake_send_params(gnutls_session_t session, + gnutls_buffer_st *extdata) { gnutls_certificate_credentials_t cred; const version_entry_st *max; @@ -85,9 +84,9 @@ _gnutls_post_handshake_send_params(gnutls_session_t session, return 0; } - cred = (gnutls_certificate_credentials_t) - _gnutls_get_cred(session, GNUTLS_CRD_CERTIFICATE); - if (cred == NULL) /* no certificate authentication */ + cred = (gnutls_certificate_credentials_t)_gnutls_get_cred( + session, GNUTLS_CRD_CERTIFICATE); + if (cred == NULL) /* no certificate authentication */ return gnutls_assert_val(0); max = _gnutls_version_max(session); |