Style: fix trailing spaces

This commit is contained in:
Manuel Pégourié-Gonnard 2015-02-13 14:12:07 +00:00
parent 013bffe5a7
commit 6c5abfa42b
13 changed files with 15 additions and 15 deletions

View file

@ -31,7 +31,7 @@
#else #else
#include POLARSSL_CONFIG_FILE #include POLARSSL_CONFIG_FILE
#endif #endif
#include "cipher.h" #include "cipher.h"
#ifdef __cplusplus #ifdef __cplusplus

View file

@ -31,7 +31,7 @@
#else #else
#include POLARSSL_CONFIG_FILE #include POLARSSL_CONFIG_FILE
#endif #endif
#include "md.h" #include "md.h"
#ifdef __cplusplus #ifdef __cplusplus

View file

@ -400,7 +400,7 @@ int main( int argc, char *argv[] )
goto exit; goto exit;
} }
if( ( ( filesize - md_get_size( md_info ) ) % if( ( ( filesize - md_get_size( md_info ) ) %
cipher_get_block_size( &cipher_ctx ) ) != 0 ) cipher_get_block_size( &cipher_ctx ) ) != 0 )
{ {
polarssl_fprintf( stderr, "File content not a multiple of the block size (%d).\n", polarssl_fprintf( stderr, "File content not a multiple of the block size (%d).\n",

View file

@ -134,7 +134,7 @@ int main( void )
} }
rsa.len = ( mpi_msb( &rsa.N ) + 7 ) >> 3; rsa.len = ( mpi_msb( &rsa.N ) + 7 ) >> 3;
fclose( f ); fclose( f );
/* /*

View file

@ -51,7 +51,7 @@
#define DFL_PASSWORD "" #define DFL_PASSWORD ""
#define DFL_PASSWORD_FILE "" #define DFL_PASSWORD_FILE ""
#define DFL_DEBUG_LEVEL 0 #define DFL_DEBUG_LEVEL 0
#define USAGE \ #define USAGE \
"\n usage: key_app param=<>...\n" \ "\n usage: key_app param=<>...\n" \
"\n acceptable parameters:\n" \ "\n acceptable parameters:\n" \

View file

@ -84,7 +84,7 @@
" output_mode=private|public default: none\n" \ " output_mode=private|public default: none\n" \
USAGE_OUT \ USAGE_OUT \
"\n" "\n"
#if !defined(POLARSSL_PK_WRITE_C) || !defined(POLARSSL_FS_IO) #if !defined(POLARSSL_PK_WRITE_C) || !defined(POLARSSL_FS_IO)
int main( void ) int main( void )
{ {

View file

@ -105,7 +105,7 @@ int main( int argc, char *argv[] )
} }
rsa_init( &rsa, RSA_PKCS_V15, 0 ); rsa_init( &rsa, RSA_PKCS_V15, 0 );
if( ( ret = mpi_read_file( &rsa.N, 16, f ) ) != 0 || if( ( ret = mpi_read_file( &rsa.N, 16, f ) ) != 0 ||
( ret = mpi_read_file( &rsa.E, 16, f ) ) != 0 ) ( ret = mpi_read_file( &rsa.E, 16, f ) ) != 0 )
{ {

View file

@ -41,7 +41,7 @@
#include "polarssl/bignum.h" #include "polarssl/bignum.h"
#include "polarssl/x509.h" #include "polarssl/x509.h"
#include "polarssl/rsa.h" #include "polarssl/rsa.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#endif #endif
@ -86,7 +86,7 @@ int main( void )
fflush( stdout ); fflush( stdout );
rsa_init( &rsa, RSA_PKCS_V15, 0 ); rsa_init( &rsa, RSA_PKCS_V15, 0 );
if( ( ret = rsa_gen_key( &rsa, ctr_drbg_random, &ctr_drbg, KEY_SIZE, if( ( ret = rsa_gen_key( &rsa, ctr_drbg_random, &ctr_drbg, KEY_SIZE,
EXPONENT ) ) != 0 ) EXPONENT ) ) != 0 )
{ {

View file

@ -86,7 +86,7 @@ int main( int argc, char *argv[] )
} }
rsa_init( &rsa, RSA_PKCS_V15, 0 ); rsa_init( &rsa, RSA_PKCS_V15, 0 );
if( ( ret = mpi_read_file( &rsa.N , 16, f ) ) != 0 || if( ( ret = mpi_read_file( &rsa.N , 16, f ) ) != 0 ||
( ret = mpi_read_file( &rsa.E , 16, f ) ) != 0 || ( ret = mpi_read_file( &rsa.E , 16, f ) ) != 0 ||
( ret = mpi_read_file( &rsa.D , 16, f ) ) != 0 || ( ret = mpi_read_file( &rsa.D , 16, f ) ) != 0 ||

View file

@ -95,7 +95,7 @@
#define USAGE_AUTH \ #define USAGE_AUTH \
" authentication=%%d default: 0 (disabled)\n" \ " authentication=%%d default: 0 (disabled)\n" \
" user_name=%%s default: \"user\"\n" \ " user_name=%%s default: \"user\"\n" \
" user_pwd=%%s default: \"password\"\n" " user_pwd=%%s default: \"password\"\n"
#else #else
#define USAGE_AUTH \ #define USAGE_AUTH \
" authentication options disabled. (Require POLARSSL_BASE64_C)\n" " authentication options disabled. (Require POLARSSL_BASE64_C)\n"
@ -349,7 +349,7 @@ static int write_and_get_response( int sock_fd, unsigned char *buf, size_t len )
code[3] = '\0'; code[3] = '\0';
return atoi( code ); return atoi( code );
} }
idx = 0; idx = 0;
} }
} }

View file

@ -70,7 +70,7 @@
#define BUFSIZE 1024 #define BUFSIZE 1024
#define HEADER_FORMAT " %-24s : " #define HEADER_FORMAT " %-24s : "
#define TITLE_LEN 25 #define TITLE_LEN 25
#define DHM_SIZES 3 #define DHM_SIZES 3
#define OPTIONS \ #define OPTIONS \

View file

@ -457,7 +457,7 @@ exit:
" session_reuse=on/off default: on (enabled)\n" \ " session_reuse=on/off default: on (enabled)\n" \
" session_lifetime=%%d (s) default: 86400\n" \ " session_lifetime=%%d (s) default: 86400\n" \
" force_ciphersuite=<name> default: all enabled\n" \ " force_ciphersuite=<name> default: all enabled\n" \
" acceptable ciphersuite names:\n" " acceptable ciphersuite names:\n"
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {

View file

@ -119,7 +119,7 @@
" email_ca\n" \ " email_ca\n" \
" object_signing_ca\n" \ " object_signing_ca\n" \
"\n" "\n"
#if !defined(POLARSSL_X509_CRT_WRITE_C) || \ #if !defined(POLARSSL_X509_CRT_WRITE_C) || \
!defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_FS_IO) || \ !defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_FS_IO) || \
!defined(POLARSSL_ENTROPY_C) || !defined(POLARSSL_CTR_DRBG_C) || \ !defined(POLARSSL_ENTROPY_C) || !defined(POLARSSL_CTR_DRBG_C) || \