From 7e56de1671b43e48102ff33d0a2ad21275259ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 14 Aug 2013 21:15:53 +0200 Subject: [PATCH] Adapt ssl_cert_test to changes in PK --- programs/test/ssl_cert_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/test/ssl_cert_test.c b/programs/test/ssl_cert_test.c index ec824c9eb..a77a314ad 100644 --- a/programs/test/ssl_cert_test.c +++ b/programs/test/ssl_cert_test.c @@ -213,7 +213,7 @@ int main( int argc, char *argv[] ) /* EC NOT IMPLEMENTED YET */ - if( clicert.pk.type != POLARSSL_PK_RSA ) + if( ! pk_can_do( &clicert.pk, POLARSSL_PK_RSA ) ) { printf( " failed\n ! certificate's key is not RSA\n\n" ); ret = POLARSSL_ERR_X509_FEATURE_UNAVAILABLE;