1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Various const fixes

This commit is contained in:
Paul Bakker
2013-11-25 13:29:43 +01:00
parent 17d99fc6f2
commit 8fc30b178c
6 changed files with 26 additions and 26 deletions

View File

@@ -50,8 +50,8 @@ int main( int argc, char *argv[] )
*/
struct options
{
char *filename; /* filename of the input file */
char *output_file; /* where to store the output */
const char *filename; /* filename of the input file */
const char *output_file; /* where to store the output */
} opt;
int convert_pem_to_der( const unsigned char *input, size_t ilen,
@@ -61,11 +61,11 @@ int convert_pem_to_der( const unsigned char *input, size_t ilen,
const unsigned char *s1, *s2, *end = input + ilen;
size_t len = 0;
s1 = (unsigned char *) strstr( (char *) input, "-----BEGIN" );
s1 = (unsigned char *) strstr( (const char *) input, "-----BEGIN" );
if( s1 == NULL )
return( -1 );
s2 = (unsigned char *) strstr( (char *) input, "-----END" );
s2 = (unsigned char *) strstr( (const char *) input, "-----END" );
if( s2 == NULL )
return( -1 );