Index: /trunk/src/VBox/Runtime/common/checksum/openssl-md2.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/checksum/openssl-md2.cpp	(revision 51901)
+++ /trunk/src/VBox/Runtime/common/checksum/openssl-md2.cpp	(revision 51902)
@@ -31,10 +31,12 @@
 #include "internal/iprt.h"
 
-#include <openssl/md2.h>
+#include <openssl/opensslconf.h>
+#ifndef OPENSSL_NO_MD2
+# include <openssl/md2.h>
 
-#define RT_MD2_PRIVATE_CONTEXT
-#include <iprt/md2.h>
+# define RT_MD2_PRIVATE_CONTEXT
+# include <iprt/md2.h>
 
-#include <iprt/assert.h>
+# include <iprt/assert.h>
 
 AssertCompile(RT_SIZEOFMEMB(RTMD2CONTEXT, abPadding) >= RT_SIZEOFMEMB(RTMD2CONTEXT, Private));
@@ -71,2 +73,10 @@
 RT_EXPORT_SYMBOL(RTMd2Final);
 
+
+#else /* OPENSSL_NO_MD2 */
+/*
+ * If the OpenSSL build doesn't have MD2, use the IPRT implementation.
+ */
+# include "alt-md2.cpp"
+#endif /* OPENSSL_NO_MD2 */
+
