From f7abd422dc692e58fef05eb7e2d4669e2050bfce Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 16 Apr 2013 13:15:56 +0200
Subject: [PATCH] Removed extra spaces on end of lines
---
library/ssl_cli.c | 6 +++---
library/ssl_srv.c | 4 ++--
library/ssl_tls.c | 16 ++++++++--------
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 0153b8610..c5ca73336 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -691,7 +691,7 @@ static int ssl_parse_server_hello( ssl_context *ssl )
{
SSL_DEBUG_MSG( 1, ( "legacy renegotiation, breaking off handshake" ) );
handshake_failure = 1;
- }
+ }
else if( ssl->renegotiation == SSL_RENEGOTIATION &&
ssl->secure_renegotiation == SSL_SECURE_RENEGOTIATION &&
renegotiation_info_seen == 0 )
@@ -1085,7 +1085,7 @@ static int ssl_parse_certificate_request( ssl_context *ssl )
// client authentication
buf = ssl->in_msg;
-
+
// Retrieve cert types
//
cert_type_len = buf[4];
@@ -1130,7 +1130,7 @@ static int ssl_parse_certificate_request( ssl_context *ssl )
SSL_DEBUG_MSG( 1, ( "bad certificate request message" ) );
return( POLARSSL_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST );
}
- }
+ }
dn_len = ( ( buf[5 + m + n] << 8 )
| ( buf[6 + m + n] ) );
diff --git a/library/ssl_srv.c b/library/ssl_srv.c
index fbc86abad..bdea555b4 100644
--- a/library/ssl_srv.c
+++ b/library/ssl_srv.c
@@ -1077,7 +1077,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
{
ssl->handshake->verify_sig_alg = SSL_HASH_SHA384;
}
-
+
*p++ = ssl->handshake->verify_sig_alg;
*p++ = SSL_SIG_RSA;
@@ -1126,7 +1126,7 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
ssl->state++;
return( 0 );
}
-#else
+#else
static int ssl_write_server_key_exchange( ssl_context *ssl )
{
int ret;
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 4065318fc..85fc7fee1 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -317,7 +317,7 @@ int ssl_derive_keys( ssl_context *ssl )
cipher_info = cipher_info_from_type( transform->ciphersuite_info->cipher );
if( cipher_info == NULL )
{
- SSL_DEBUG_MSG( 1, ( "cipher info for %d not found",
+ SSL_DEBUG_MSG( 1, ( "cipher info for %d not found",
transform->ciphersuite_info->cipher ) );
return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );
}
@@ -325,7 +325,7 @@ int ssl_derive_keys( ssl_context *ssl )
md_info = md_info_from_type( transform->ciphersuite_info->mac );
if( md_info == NULL )
{
- SSL_DEBUG_MSG( 1, ( "md info for %d not found",
+ SSL_DEBUG_MSG( 1, ( "md info for %d not found",
transform->ciphersuite_info->mac ) );
return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );
}
@@ -367,7 +367,7 @@ int ssl_derive_keys( ssl_context *ssl )
* MD5( premaster + SHA1( 'A' + premaster + randbytes ) ) +
* MD5( premaster + SHA1( 'BB' + premaster + randbytes ) ) +
* MD5( premaster + SHA1( 'CCC' + premaster + randbytes ) )
- *
+ *
* TLSv1:
* master = PRF( premaster, "master secret", randbytes )[0..47]
*/
@@ -748,7 +748,7 @@ static void ssl_mac( md_context_t *md_ctx, unsigned char *secret,
/*
* Encryption/decryption functions
- */
+ */
static int ssl_encrypt_buf( ssl_context *ssl )
{
size_t i, padlen;
@@ -1268,7 +1268,7 @@ static int ssl_decrypt_buf( ssl_context *ssl )
}
else
ssl->nb_zero = 0;
-
+
for( i = 8; i > 0; i-- )
if( ++ssl->in_ctr[i - 1] != 0 )
break;
@@ -2166,7 +2166,7 @@ void ssl_optimize_checksum( ssl_context *ssl,
else
ssl->handshake->update_checksum = ssl_update_checksum_sha256;
}
-
+
static void ssl_update_checksum_start( ssl_context *ssl, unsigned char *buf,
size_t len )
{
@@ -2653,7 +2653,7 @@ int ssl_handshake_init( ssl_context *ssl )
ssl->handshake->update_checksum = ssl_update_checksum_start;
ssl->handshake->sig_alg = SSL_HASH_SHA1;
-
+
return( 0 );
}
@@ -2962,7 +2962,7 @@ int ssl_set_hostname( ssl_context *ssl, const char *hostname )
memcpy( ssl->hostname, (unsigned char *) hostname,
ssl->hostname_len );
-
+
ssl->hostname[ssl->hostname_len] = '\0';
return( 0 );