Index: /trunk/src/libs/libtpms-0.9.0/src/tpm2/crypto/openssl/TpmToOsslMath.c
===================================================================
--- /trunk/src/libs/libtpms-0.9.0/src/tpm2/crypto/openssl/TpmToOsslMath.c	(revision 91690)
+++ /trunk/src/libs/libtpms-0.9.0/src/tpm2/crypto/openssl/TpmToOsslMath.c	(revision 91691)
@@ -502,6 +502,6 @@
 	FAIL(FATAL_ERROR_ALLOCATION);
     // If this returns false, then the point is at infinity
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
-    !defined(LIBRESSL_VERSION_NUMBER)					// libtpms added begin
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && \
+    !defined(LIBRESSL_VERSION_NUMBER)					// libtpms added begin VBox: fixed openssl version number check from 0x10100000L
     OK = EC_POINT_get_affine_coordinates(E->G, pIn, x, y, E->CTX);
 #else									// libtpms added begin
@@ -537,6 +537,6 @@
 		FAIL(FATAL_ERROR_ALLOCATION);
 	    P = EC_POINT_new(E->G);
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
-    !defined(LIBRESSL_VERSION_NUMBER)					// libtpms added begin
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && \
+    !defined(LIBRESSL_VERSION_NUMBER)					// libtpms added begin VBox: fixed openssl version number check from 0x10100000L
 	    if(!EC_POINT_set_affine_coordinates(E->G, P, bnX, bnY, E->CTX))
 #else									// libtpms added end
@@ -595,6 +595,6 @@
 	    
 	    // Need to use this in case Montgomery method is being used
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
-    !defined(LIBRESSL_VERSION_NUMBER)						// libtpms added begin
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && \
+    !defined(LIBRESSL_VERSION_NUMBER)						// libtpms added begin VBox: fixed openssl version number check from 0x10100000L
 	    VERIFY(EC_POINT_set_affine_coordinates(E->G, P, bnX, bnY, CTX));
 #else										// libtpms added end
