From eaa89f8366927affc6f9d13bf3b276030100bca0 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Mon, 4 Apr 2011 21:36:15 +0000
Subject: [PATCH] - Do not depend on dhm code if POLARSSL_DHM_C not defined
---
library/x509parse.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/library/x509parse.c b/library/x509parse.c
index b13fbdefc..9d0ebd294 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -2049,6 +2049,7 @@ int x509parse_public_keyfile( rsa_context *rsa, const char *path )
return( ret );
}
+#if defined(POLARSSL_DHM_C)
/*
* Parse DHM parameters
*/
@@ -2150,6 +2151,7 @@ int x509parse_dhmfile( dhm_context *dhm, const char *path )
return( ret );
}
+#endif /* POLARSSL_DHM_C */
#if defined _MSC_VER && !defined snprintf
#include