From 388dac403778c7ce40265e4b1fa2a346fa96b019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 27 Mar 2014 18:57:52 +0100 Subject: [PATCH] Still test pbkdf2 while it's there --- programs/test/selftest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/test/selftest.c b/programs/test/selftest.c index 0fb5886a7b..c029e9b33d 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -49,6 +49,7 @@ #include "polarssl/x509.h" #include "polarssl/xtea.h" #include "polarssl/pkcs5.h" +#include "polarssl/pbkdf2.h" #include "polarssl/ecp.h" #if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C) @@ -171,10 +172,15 @@ int main( int argc, char *argv[] ) return( ret ); #endif +#if defined(POLARSSL_PBKDF2_C) + if( ( ret = pbkdf2_self_test( v ) ) != 0 ) + return( ret ); +#else #if defined(POLARSSL_PKCS5_C) if( ( ret = pkcs5_self_test( v ) ) != 0 ) return( ret ); #endif +#endif #if defined(POLARSSL_ECP_C) if( ( ret = ecp_self_test( v ) ) != 0 )