- Lots of minimal changes to better support WINCE as a build target

This commit is contained in:
Paul Bakker
2011-11-18 14:26:47 +00:00
parent 33008eef64
commit cce9d77745
41 changed files with 392 additions and 161 deletions

View File

@@ -1,7 +1,7 @@
/*
* Classic "Hello, world" demonstration program
*
* Copyright (C) 2006-2010, Brainspark B.V.
* Copyright (C) 2006-2011, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
@@ -34,18 +34,24 @@
#include "polarssl/md5.h"
#if !defined(POLARSSL_MD5_C)
int main( void )
int main( int argc, char *argv[] )
{
((void) argc);
((void) argv);
printf("POLARSSL_MD5_C not defined.\n");
return( 0 );
}
#else
int main( void )
int main( int argc, char *argv[] )
{
int i;
unsigned char digest[16];
char str[] = "Hello, world!";
((void) argc);
((void) argv);
printf( "\n MD5('%s') = ", str );
md5( (unsigned char *) str, 13, digest );
@@ -55,7 +61,7 @@ int main( void )
printf( "\n\n" );
#ifdef WIN32
#if defined(_WIN32)
printf( " Press Enter to exit this program.\n" );
fflush( stdout ); getchar();
#endif