2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_HEADER */
|
2009-07-10 22:38:58 +00:00
|
|
|
#include <polarssl/x509.h>
|
2011-02-12 14:30:57 +00:00
|
|
|
#include <polarssl/pem.h>
|
2013-04-07 20:00:46 +00:00
|
|
|
#include <polarssl/oid.h>
|
2011-01-13 17:54:59 +00:00
|
|
|
|
2012-09-28 07:10:55 +00:00
|
|
|
int verify_none( void *data, x509_cert *crt, int certificate_depth, int *flags )
|
2011-01-13 17:54:59 +00:00
|
|
|
{
|
2011-01-18 16:31:52 +00:00
|
|
|
((void) data);
|
|
|
|
((void) crt);
|
|
|
|
((void) certificate_depth);
|
2012-09-28 07:10:55 +00:00
|
|
|
*flags |= BADCERT_OTHER;
|
|
|
|
|
|
|
|
return 0;
|
2011-01-13 17:54:59 +00:00
|
|
|
}
|
|
|
|
|
2012-09-28 07:10:55 +00:00
|
|
|
int verify_all( void *data, x509_cert *crt, int certificate_depth, int *flags )
|
2011-01-13 17:54:59 +00:00
|
|
|
{
|
2011-01-18 16:31:52 +00:00
|
|
|
((void) data);
|
|
|
|
((void) crt);
|
|
|
|
((void) certificate_depth);
|
2012-09-28 07:10:55 +00:00
|
|
|
*flags = 0;
|
2011-01-18 16:31:52 +00:00
|
|
|
|
2011-01-13 17:54:59 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_HEADER */
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_DEPENDENCIES
|
|
|
|
* depends_on:POLARSSL_X509_PARSE_C:POLARSSL_BIGNUM_C
|
|
|
|
* END_DEPENDENCIES
|
|
|
|
*/
|
2011-05-26 13:16:06 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509_cert_info( char *crt_file, char *result_str )
|
2009-07-10 22:38:58 +00:00
|
|
|
{
|
|
|
|
x509_cert crt;
|
|
|
|
char buf[2000];
|
2009-07-11 19:15:20 +00:00
|
|
|
int res;
|
2009-07-10 22:38:58 +00:00
|
|
|
|
|
|
|
memset( &crt, 0, sizeof( x509_cert ) );
|
|
|
|
memset( buf, 0, 2000 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_crtfile( &crt, crt_file ) == 0 );
|
2009-07-11 19:15:20 +00:00
|
|
|
res = x509parse_cert_info( buf, 2000, "", &crt );
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2012-02-11 18:43:20 +00:00
|
|
|
x509_free( &crt );
|
|
|
|
|
2009-07-10 22:38:58 +00:00
|
|
|
TEST_ASSERT( res != -1 );
|
|
|
|
TEST_ASSERT( res != -2 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
|
2009-07-10 22:38:58 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509_crl_info( char *crl_file, char *result_str )
|
2009-07-10 22:38:58 +00:00
|
|
|
{
|
|
|
|
x509_crl crl;
|
|
|
|
char buf[2000];
|
2009-07-11 19:15:20 +00:00
|
|
|
int res;
|
2009-07-10 22:38:58 +00:00
|
|
|
|
|
|
|
memset( &crl, 0, sizeof( x509_crl ) );
|
|
|
|
memset( buf, 0, 2000 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_crlfile( &crl, crl_file ) == 0 );
|
2009-07-11 19:15:20 +00:00
|
|
|
res = x509parse_crl_info( buf, 2000, "", &crl );
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2012-02-11 18:43:20 +00:00
|
|
|
x509_crl_free( &crl );
|
|
|
|
|
2009-07-10 22:38:58 +00:00
|
|
|
TEST_ASSERT( res != -1 );
|
|
|
|
TEST_ASSERT( res != -2 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
|
2009-07-10 22:38:58 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509_verify( char *crt_file, char *ca_file, char *crl_file,
|
|
|
|
char *cn_name_str, int result, int flags_result,
|
|
|
|
char *verify_callback )
|
2009-07-10 22:38:58 +00:00
|
|
|
{
|
|
|
|
x509_cert crt;
|
|
|
|
x509_cert ca;
|
|
|
|
x509_crl crl;
|
|
|
|
int flags = 0;
|
2009-07-11 19:15:20 +00:00
|
|
|
int res;
|
2013-08-16 11:38:47 +00:00
|
|
|
int (*f_vrfy)(void *, x509_cert *, int, int *) = NULL;
|
|
|
|
char * cn_name = NULL;
|
2009-07-10 22:38:58 +00:00
|
|
|
|
|
|
|
memset( &crt, 0, sizeof( x509_cert ) );
|
|
|
|
memset( &ca, 0, sizeof( x509_cert ) );
|
|
|
|
memset( &crl, 0, sizeof( x509_crl ) );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
if( strcmp( cn_name_str, "NULL" ) != 0 )
|
|
|
|
cn_name = cn_name_str;
|
2013-08-16 11:38:47 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
if( strcmp( verify_callback, "NULL" ) == 0 )
|
2013-08-16 11:38:47 +00:00
|
|
|
f_vrfy = NULL;
|
2013-08-20 09:48:36 +00:00
|
|
|
else if( strcmp( verify_callback, "verify_none" ) == 0 )
|
2013-08-16 11:38:47 +00:00
|
|
|
f_vrfy = verify_none;
|
2013-08-20 09:48:36 +00:00
|
|
|
else if( strcmp( verify_callback, "verify_all" ) == 0 )
|
2013-08-16 11:38:47 +00:00
|
|
|
f_vrfy = verify_all;
|
|
|
|
else
|
|
|
|
TEST_ASSERT( "No known verify callback selected" == 0 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_crtfile( &crt, crt_file ) == 0 );
|
|
|
|
TEST_ASSERT( x509parse_crtfile( &ca, ca_file ) == 0 );
|
|
|
|
TEST_ASSERT( x509parse_crlfile( &crl, crl_file ) == 0 );
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-16 11:38:47 +00:00
|
|
|
res = x509parse_verify( &crt, &ca, &crl, cn_name, &flags, f_vrfy, NULL );
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2012-02-11 18:43:20 +00:00
|
|
|
x509_free( &crt );
|
|
|
|
x509_free( &ca );
|
|
|
|
x509_crl_free( &crl );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( res == ( result ) );
|
|
|
|
TEST_ASSERT( flags == ( flags_result ) );
|
2009-07-10 22:38:58 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509_dn_gets( char *crt_file, char *entity, char *result_str )
|
2009-07-10 22:38:58 +00:00
|
|
|
{
|
|
|
|
x509_cert crt;
|
|
|
|
char buf[2000];
|
2013-08-16 11:38:47 +00:00
|
|
|
int res = 0;
|
2009-07-10 22:38:58 +00:00
|
|
|
|
|
|
|
memset( &crt, 0, sizeof( x509_cert ) );
|
|
|
|
memset( buf, 0, 2000 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_crtfile( &crt, crt_file ) == 0 );
|
|
|
|
if( strcmp( entity, "subject" ) == 0 )
|
2013-08-16 11:38:47 +00:00
|
|
|
res = x509parse_dn_gets( buf, 2000, &crt.subject );
|
2013-08-20 09:48:36 +00:00
|
|
|
else if( strcmp( entity, "issuer" ) == 0 )
|
2013-08-16 11:38:47 +00:00
|
|
|
res = x509parse_dn_gets( buf, 2000, &crt.issuer );
|
|
|
|
else
|
|
|
|
TEST_ASSERT( "Unknown entity" == 0 );
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2012-02-11 18:43:20 +00:00
|
|
|
x509_free( &crt );
|
|
|
|
|
2009-07-10 22:38:58 +00:00
|
|
|
TEST_ASSERT( res != -1 );
|
|
|
|
TEST_ASSERT( res != -2 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
|
2009-07-10 22:38:58 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509_time_expired( char *crt_file, char *entity, int result )
|
2009-07-10 22:38:58 +00:00
|
|
|
{
|
|
|
|
x509_cert crt;
|
|
|
|
|
|
|
|
memset( &crt, 0, sizeof( x509_cert ) );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_crtfile( &crt, crt_file ) == 0 );
|
2013-08-16 11:38:47 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
if( strcmp( entity, "valid_from" ) == 0 )
|
|
|
|
TEST_ASSERT( x509parse_time_expired( &crt.valid_from ) == result );
|
|
|
|
else if( strcmp( entity, "valid_to" ) == 0 )
|
|
|
|
TEST_ASSERT( x509parse_time_expired( &crt.valid_to ) == result );
|
2013-08-16 11:38:47 +00:00
|
|
|
else
|
|
|
|
TEST_ASSERT( "Unknown entity" == 0 );
|
2012-02-11 18:43:20 +00:00
|
|
|
|
|
|
|
x509_free( &crt );
|
2009-07-10 22:38:58 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-22 16:29:07 +00:00
|
|
|
/* BEGIN_CASE depends_on:POLARSSL_RSA_C */
|
2013-08-20 09:48:36 +00:00
|
|
|
void x509parse_keyfile_rsa( char *key_file, char *password, int result )
|
2009-07-10 22:38:58 +00:00
|
|
|
{
|
|
|
|
rsa_context rsa;
|
2009-07-11 19:15:20 +00:00
|
|
|
int res;
|
2013-08-20 09:48:36 +00:00
|
|
|
char *pwd = password;
|
2009-07-10 22:38:58 +00:00
|
|
|
|
|
|
|
memset( &rsa, 0, sizeof( rsa_context ) );
|
|
|
|
|
2013-08-16 11:38:47 +00:00
|
|
|
if( strcmp( pwd, "NULL" ) == 0 )
|
|
|
|
pwd = NULL;
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
res = x509parse_keyfile_rsa( &rsa, key_file, pwd );
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( res == result );
|
2009-07-10 22:38:58 +00:00
|
|
|
|
|
|
|
if( res == 0 )
|
|
|
|
{
|
|
|
|
TEST_ASSERT( rsa_check_privkey( &rsa ) == 0 );
|
|
|
|
}
|
2012-02-11 18:43:20 +00:00
|
|
|
|
|
|
|
rsa_free( &rsa );
|
2009-07-10 22:38:58 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-10 22:38:58 +00:00
|
|
|
|
2013-08-22 16:29:07 +00:00
|
|
|
/* BEGIN_CASE depends_on:POLARSSL_RSA_C */
|
2013-08-20 09:48:36 +00:00
|
|
|
void x509parse_public_keyfile_rsa( char *key_file, int result )
|
2011-07-13 11:32:29 +00:00
|
|
|
{
|
|
|
|
rsa_context rsa;
|
|
|
|
int res;
|
|
|
|
|
|
|
|
memset( &rsa, 0, sizeof( rsa_context ) );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
res = x509parse_public_keyfile_rsa( &rsa, key_file );
|
2011-07-13 11:32:29 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( res == result );
|
2011-07-13 11:32:29 +00:00
|
|
|
|
|
|
|
if( res == 0 )
|
|
|
|
{
|
|
|
|
TEST_ASSERT( rsa_check_pubkey( &rsa ) == 0 );
|
|
|
|
}
|
2012-02-11 18:43:20 +00:00
|
|
|
|
|
|
|
rsa_free( &rsa );
|
2011-07-13 11:32:29 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2011-07-13 11:32:29 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509parse_public_keyfile_ec( char *key_file, int result )
|
2013-06-27 13:33:04 +00:00
|
|
|
{
|
2013-07-04 12:09:57 +00:00
|
|
|
pk_context ctx;
|
2013-06-27 13:33:04 +00:00
|
|
|
int res;
|
|
|
|
|
2013-07-04 12:09:57 +00:00
|
|
|
pk_init( &ctx );
|
2013-06-27 13:33:04 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
res = x509parse_public_keyfile( &ctx, key_file );
|
2013-06-27 13:33:04 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( res == result );
|
2013-06-27 13:33:04 +00:00
|
|
|
|
|
|
|
if( res == 0 )
|
|
|
|
{
|
2013-07-04 12:09:57 +00:00
|
|
|
ecp_keypair *eckey;
|
2013-08-14 16:04:18 +00:00
|
|
|
TEST_ASSERT( pk_can_do( &ctx, POLARSSL_PK_ECKEY ) );
|
2013-08-14 16:26:41 +00:00
|
|
|
eckey = pk_ec( ctx );
|
2013-07-04 12:09:57 +00:00
|
|
|
TEST_ASSERT( ecp_check_pubkey( &eckey->grp, &eckey->Q ) == 0 );
|
2013-06-27 13:33:04 +00:00
|
|
|
}
|
|
|
|
|
2013-07-04 12:09:57 +00:00
|
|
|
pk_free( &ctx );
|
2013-06-27 13:33:04 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2013-06-27 13:33:04 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509parse_keyfile_ec( char *key_file, char *password, int result )
|
2013-07-03 10:13:56 +00:00
|
|
|
{
|
2013-07-04 12:09:57 +00:00
|
|
|
pk_context ctx;
|
2013-07-03 10:13:56 +00:00
|
|
|
int res;
|
|
|
|
|
2013-07-04 12:09:57 +00:00
|
|
|
pk_init( &ctx );
|
2013-07-03 10:13:56 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
res = x509parse_keyfile( &ctx, key_file, password );
|
2013-07-03 10:13:56 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( res == result );
|
2013-07-03 10:13:56 +00:00
|
|
|
|
|
|
|
if( res == 0 )
|
|
|
|
{
|
2013-07-04 12:09:57 +00:00
|
|
|
ecp_keypair *eckey;
|
2013-08-14 16:04:18 +00:00
|
|
|
TEST_ASSERT( pk_can_do( &ctx, POLARSSL_PK_ECKEY ) );
|
2013-08-14 16:26:41 +00:00
|
|
|
eckey = pk_ec( ctx );
|
2013-07-09 14:05:52 +00:00
|
|
|
TEST_ASSERT( ecp_check_privkey( &eckey->grp, &eckey->d ) == 0 );
|
2013-07-03 10:13:56 +00:00
|
|
|
}
|
|
|
|
|
2013-07-04 12:09:57 +00:00
|
|
|
pk_free( &ctx );
|
2013-07-03 10:13:56 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2013-07-03 10:13:56 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509parse_crt( char *crt_data, char *result_str, int result )
|
2009-07-19 19:36:15 +00:00
|
|
|
{
|
|
|
|
x509_cert crt;
|
|
|
|
unsigned char buf[2000];
|
|
|
|
unsigned char output[2000];
|
|
|
|
int data_len, res;
|
|
|
|
|
|
|
|
memset( &crt, 0, sizeof( x509_cert ) );
|
|
|
|
memset( buf, 0, 2000 );
|
|
|
|
memset( output, 0, 2000 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
data_len = unhexify( buf, crt_data );
|
2009-07-19 19:36:15 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_crt( &crt, buf, data_len ) == ( result ) );
|
|
|
|
if( ( result ) == 0 )
|
2009-07-19 19:36:15 +00:00
|
|
|
{
|
|
|
|
res = x509parse_cert_info( (char *) output, 2000, "", &crt );
|
2013-08-20 09:48:36 +00:00
|
|
|
|
2009-07-19 19:36:15 +00:00
|
|
|
TEST_ASSERT( res != -1 );
|
|
|
|
TEST_ASSERT( res != -2 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( strcmp( (char *) output, result_str ) == 0 );
|
2009-07-19 19:36:15 +00:00
|
|
|
}
|
2012-02-11 18:43:20 +00:00
|
|
|
|
|
|
|
x509_free( &crt );
|
2009-07-19 19:36:15 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-19 19:36:15 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509parse_crl( char *crl_data, char *result_str, int result )
|
2009-07-20 20:35:41 +00:00
|
|
|
{
|
|
|
|
x509_crl crl;
|
|
|
|
unsigned char buf[2000];
|
|
|
|
unsigned char output[2000];
|
|
|
|
int data_len, res;
|
|
|
|
|
|
|
|
memset( &crl, 0, sizeof( x509_crl ) );
|
|
|
|
memset( buf, 0, 2000 );
|
|
|
|
memset( output, 0, 2000 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
data_len = unhexify( buf, crl_data );
|
2009-07-20 20:35:41 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_crl( &crl, buf, data_len ) == ( result ) );
|
|
|
|
if( ( result ) == 0 )
|
2009-07-20 20:35:41 +00:00
|
|
|
{
|
|
|
|
res = x509parse_crl_info( (char *) output, 2000, "", &crl );
|
2013-08-20 09:48:36 +00:00
|
|
|
|
2009-07-20 20:35:41 +00:00
|
|
|
TEST_ASSERT( res != -1 );
|
|
|
|
TEST_ASSERT( res != -2 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( strcmp( (char *) output, result_str ) == 0 );
|
2009-07-20 20:35:41 +00:00
|
|
|
}
|
2012-02-11 18:43:20 +00:00
|
|
|
|
|
|
|
x509_crl_free( &crl );
|
2009-07-20 20:35:41 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-20 20:35:41 +00:00
|
|
|
|
2013-08-22 16:29:07 +00:00
|
|
|
/* BEGIN_CASE depends_on:POLARSSL_RSA_C */
|
2013-08-20 09:48:36 +00:00
|
|
|
void x509parse_key_rsa( char *key_data, char *result_str, int result )
|
2009-07-20 20:35:41 +00:00
|
|
|
{
|
|
|
|
rsa_context rsa;
|
|
|
|
unsigned char buf[2000];
|
|
|
|
unsigned char output[2000];
|
2011-07-13 14:21:52 +00:00
|
|
|
int data_len;
|
2013-08-16 11:38:47 +00:00
|
|
|
((void) result_str);
|
2009-07-20 20:35:41 +00:00
|
|
|
|
|
|
|
memset( &rsa, 0, sizeof( rsa_context ) );
|
|
|
|
memset( buf, 0, 2000 );
|
|
|
|
memset( output, 0, 2000 );
|
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
data_len = unhexify( buf, key_data );
|
2009-07-20 20:35:41 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
TEST_ASSERT( x509parse_key_rsa( &rsa, buf, data_len, NULL, 0 ) == ( result ) );
|
|
|
|
if( ( result ) == 0 )
|
2009-07-20 20:35:41 +00:00
|
|
|
{
|
|
|
|
TEST_ASSERT( 1 );
|
|
|
|
}
|
2012-02-11 18:43:20 +00:00
|
|
|
|
|
|
|
rsa_free( &rsa );
|
2009-07-20 20:35:41 +00:00
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|
2009-07-20 20:35:41 +00:00
|
|
|
|
2013-08-20 09:48:36 +00:00
|
|
|
/* BEGIN_CASE */
|
|
|
|
void x509_selftest()
|
2009-07-10 22:38:58 +00:00
|
|
|
{
|
|
|
|
TEST_ASSERT( x509_self_test( 0 ) == 0 );
|
|
|
|
}
|
2013-08-20 09:48:36 +00:00
|
|
|
/* END_CASE */
|