Commit a5d336bc authored by Gergely Budai's avatar Gergely Budai Committed by Manuel Pégourié-Gonnard
Browse files

Increase title size (fits to increased curve names). Give verbose errors on failures.

parent fbf09154
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#include "polarssl/dhm.h" #include "polarssl/dhm.h"
#include "polarssl/ecdsa.h" #include "polarssl/ecdsa.h"
#include "polarssl/ecdh.h" #include "polarssl/ecdh.h"
#include "polarssl/error.h"
#if defined _MSC_VER && !defined snprintf #if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf #define snprintf _snprintf
...@@ -57,7 +58,7 @@ ...@@ -57,7 +58,7 @@
#define BUFSIZE 1024 #define BUFSIZE 1024
#define HEADER_FORMAT " %-24s : " #define HEADER_FORMAT " %-24s : "
#define TITLE_LEN 15 #define TITLE_LEN 25
#if !defined(POLARSSL_TIMING_C) #if !defined(POLARSSL_TIMING_C)
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
...@@ -132,7 +133,10 @@ do { \ ...@@ -132,7 +133,10 @@ do { \
} \ } \
\ \
if( ret != 0 ) \ if( ret != 0 ) \
printf( "FAILED\n" ); \ { \
polarssl_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \
printf( "FAILED: %s\n", tmp ); \
} \
else \ else \
printf( "%9lu " TYPE "/s\n", i / 3 ); \ printf( "%9lu " TYPE "/s\n", i / 3 ); \
} while( 0 ) } while( 0 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment