Moved DHM parsing from X509 module to DHM module
diff --git a/programs/test/selftest.c b/programs/test/selftest.c
index 02606fa..5b8706b 100644
--- a/programs/test/selftest.c
+++ b/programs/test/selftest.c
@@ -33,6 +33,7 @@
#include "polarssl/config.h"
#include "polarssl/ctr_drbg.h"
+#include "polarssl/dhm.h"
#include "polarssl/gcm.h"
#include "polarssl/md2.h"
#include "polarssl/md4.h"
@@ -172,6 +173,11 @@
return( ret );
#endif
+#if defined(POLARSSL_DHM_C)
+ if( ( ret = dhm_self_test( v ) ) != 0 )
+ return( ret );
+#endif
+
#else
printf( " POLARSSL_SELF_TEST not defined.\n" );
#endif