javacommons/security/src/midpauthenticationmoduleimpl.cpp
changeset 57 59b3b4473dc8
parent 56 abc41079b313
child 64 0ea12c182930
--- a/javacommons/security/src/midpauthenticationmoduleimpl.cpp	Fri Jul 23 12:27:20 2010 +0300
+++ b/javacommons/security/src/midpauthenticationmoduleimpl.cpp	Thu Aug 05 16:07:57 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-
+#include "javacommonutils.h"
 #include "javajniutils.h"
 #include "com_nokia_mj_impl_security_midp_authentication_AuthenticationModule.h"
 #include "midpauthenticationmodule.h"
@@ -473,11 +473,12 @@
         {
             ret_code = getErrCode(X509_STORE_CTX_get_error(x509_ctx));
             // If the secure time of the device has not yet been set
-            // (can happen some times during the first device boot),
+            // to correct value (This can happen some times during
+            // the first device boot),
             // allow installing with not yet valid certificates
             if (KCertNotYetValidFailure == ret_code)
             {
-                if (!TelUtils::isSecureTimeSet())
+                if (JavaCommonUtils::isFirstBoot())
                 {
                     ret_code = KCertAndSignatureOk;
                 }