diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-09-11 12:21:59 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-09-11 13:21:04 +0200 |
commit | aa2cc04b9ef04404b719db5d693e6f146dbe026a (patch) | |
tree | 469b7b176428d24e797ae39105705eea45ef1901 /lib/auth | |
parent | 09f1d96b662d34c55de9903a8a890ad887bcd699 (diff) | |
download | gnutls-aa2cc04b9ef04404b719db5d693e6f146dbe026a.tar.gz |
several spacing fixes to keep syntax-check happy
Diffstat (limited to 'lib/auth')
-rw-r--r-- | lib/auth/cert.c | 2 | ||||
-rw-r--r-- | lib/auth/dh_common.c | 8 | ||||
-rw-r--r-- | lib/auth/ecdhe.c | 18 | ||||
-rw-r--r-- | lib/auth/psk.c | 6 | ||||
-rw-r--r-- | lib/auth/psk_passwd.c | 4 | ||||
-rw-r--r-- | lib/auth/srp_passwd.c | 2 |
6 files changed, 20 insertions, 20 deletions
diff --git a/lib/auth/cert.c b/lib/auth/cert.c index e52acd636b..15601725dc 100644 --- a/lib/auth/cert.c +++ b/lib/auth/cert.c @@ -714,7 +714,7 @@ static int gen_x509_crt(gnutls_session_t session, gnutls_buffer_st * data) /* if no certificates were found then send: * 0B 00 00 03 00 00 00 // Certificate with no certs * instead of: - * 0B 00 00 00 // empty certificate handshake + * 0B 00 00 00 // empty certificate handshake * * ( the above is the whole handshake message, not * the one produced here ) diff --git a/lib/auth/dh_common.c b/lib/auth/dh_common.c index d5b953ed27..f9e2b36649 100644 --- a/lib/auth/dh_common.c +++ b/lib/auth/dh_common.c @@ -107,9 +107,9 @@ _gnutls_proc_dh_common_client_kx(gnutls_session_t session, } ret = 0; -error: + error: _gnutls_mpi_release(&session->key.client_Y); - gnutls_pk_params_clear(&session->key.dh_params); + gnutls_pk_params_clear(&session->key.dh_params); return ret; } @@ -173,8 +173,8 @@ _gnutls_gen_dh_common_client_kx_int(gnutls_session_t session, ret = data->length; - error: - gnutls_pk_params_clear(&session->key.dh_params); + error: + gnutls_pk_params_clear(&session->key.dh_params); return ret; } diff --git a/lib/auth/ecdhe.c b/lib/auth/ecdhe.c index e445c2f0fe..909e472dc0 100644 --- a/lib/auth/ecdhe.c +++ b/lib/auth/ecdhe.c @@ -191,8 +191,8 @@ int _gnutls_proc_ecdh_common_client_kx(gnutls_session_t session, goto cleanup; } -cleanup: - gnutls_pk_params_clear(&session->key.ecdh_params); + cleanup: + gnutls_pk_params_clear(&session->key.ecdh_params); return ret; } @@ -271,8 +271,8 @@ _gnutls_gen_ecdh_common_client_kx_int(gnutls_session_t session, } else if (pk == GNUTLS_PK_ECDHX) { ret = _gnutls_buffer_append_data_prefix(data, 8, - session->key.ecdh_params.raw_pub.data, - session->key.ecdh_params.raw_pub.size); + session->key.ecdh_params.raw_pub.data, + session->key.ecdh_params.raw_pub.size); if (ret < 0) { gnutls_assert(); goto cleanup; @@ -287,8 +287,8 @@ _gnutls_gen_ecdh_common_client_kx_int(gnutls_session_t session, } ret = data->length; -cleanup: - gnutls_pk_params_clear(&session->key.ecdh_params); + cleanup: + gnutls_pk_params_clear(&session->key.ecdh_params); return ret; } @@ -451,9 +451,9 @@ int _gnutls_ecdh_common_print_server_kx(gnutls_session_t session, } else if (pk == GNUTLS_PK_ECDHX) { ret = - _gnutls_buffer_append_data_prefix(data, 8, - session->key.ecdh_params.raw_pub.data, - session->key.ecdh_params.raw_pub.size); + _gnutls_buffer_append_data_prefix(data, 8, + session->key.ecdh_params.raw_pub.data, + session->key.ecdh_params.raw_pub.size); if (ret < 0) return gnutls_assert_val(ret); } diff --git a/lib/auth/psk.c b/lib/auth/psk.c index 2b3ac41dc0..ea1417b662 100644 --- a/lib/auth/psk.c +++ b/lib/auth/psk.c @@ -292,9 +292,9 @@ _gnutls_proc_psk_client_kx(gnutls_session_t session, uint8_t * data, * * struct { * select (KeyExchangeAlgorithm) { - * // other cases for rsa, diffie_hellman, etc. - * case psk: // NEW - * uint8_t psk_identity_hint<0..2^16-1>; + * // other cases for rsa, diffie_hellman, etc. + * case psk: // NEW + * uint8_t psk_identity_hint<0..2^16-1>; * }; * } ServerKeyExchange; * diff --git a/lib/auth/psk_passwd.c b/lib/auth/psk_passwd.c index 2ef2c9c901..72aadb83f8 100644 --- a/lib/auth/psk_passwd.c +++ b/lib/auth/psk_passwd.c @@ -194,8 +194,8 @@ _gnutls_psk_pwd_find_entry(gnutls_session_t session, char *username, cleanup: if (fd != NULL) fclose(fd); - - zeroize_key(line, line_size); + + zeroize_key(line, line_size); free(line); return ret; diff --git a/lib/auth/srp_passwd.c b/lib/auth/srp_passwd.c index 4e00f88b4f..b911282567 100644 --- a/lib/auth/srp_passwd.c +++ b/lib/auth/srp_passwd.c @@ -213,7 +213,7 @@ pwd_read_conf(const char *pconf_file, SRP_PWD_ENTRY * entry, int idx) /* move to first ':' */ i = 0; while ((i < line_size) && (line[i] != ':') - && (line[i] != '\0')) { + && (line[i] != '\0')) { i++; } |