Rename x509parse_key & co with _rsa suffix

This commit is contained in:
Manuel Pégourié-Gonnard 2013-06-27 10:51:01 +02:00
parent c8dc295e83
commit ba4878aa64
19 changed files with 122 additions and 120 deletions

View file

@ -104,7 +104,7 @@ int main( int argc, char *argv[] )
fflush( stdout );
rsa_init( &p_rsa, RSA_PKCS_V15, 0 );
if( x509parse_keyfile( &p_rsa, argv[1], NULL ) != 0 )
if( x509parse_keyfile_rsa( &p_rsa, argv[1], NULL ) != 0 )
{
ret = 1;
printf( " failed\n ! Could not load key.\n\n" );

View file

@ -196,10 +196,10 @@ int main( int argc, char *argv[] )
printf( " . Loading the client private key %s...", name );
fflush( stdout );
ret = x509parse_keyfile( &rsa, name, NULL );
ret = x509parse_keyfile_rsa( &rsa, name, NULL );
if( ret != 0 )
{
printf( " failed\n ! x509parse_key returned %d\n\n", ret );
printf( " failed\n ! x509parse_key_rsa returned %d\n\n", ret );
goto exit;
}

View file

@ -229,11 +229,11 @@ static int ssl_test( struct options *opt )
goto exit;
}
ret = x509parse_key( &rsa, (const unsigned char *) test_srv_key,
ret = x509parse_key_rsa( &rsa, (const unsigned char *) test_srv_key,
strlen( test_srv_key ), NULL, 0 );
if( ret != 0 )
{
printf( " ! x509parse_key returned %d\n\n", ret );
printf( " ! x509parse_key_rsa returned %d\n\n", ret );
goto exit;
}
#endif