equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 #include "javacommonutils.h" |
19 #include "javajniutils.h" |
19 #include "javajniutils.h" |
20 #include "com_nokia_mj_impl_security_midp_authentication_AuthenticationModule.h" |
20 #include "com_nokia_mj_impl_security_midp_authentication_AuthenticationModule.h" |
21 #include "midpauthenticationmodule.h" |
21 #include "midpauthenticationmodule.h" |
22 #include "midpauthenticationmoduleimpl.h" |
22 #include "midpauthenticationmoduleimpl.h" |
23 #include "storagehandler.h" |
23 #include "storagehandler.h" |
471 // verify certificate |
471 // verify certificate |
472 if (X509_verify_cert(x509_ctx) != 1) |
472 if (X509_verify_cert(x509_ctx) != 1) |
473 { |
473 { |
474 ret_code = getErrCode(X509_STORE_CTX_get_error(x509_ctx)); |
474 ret_code = getErrCode(X509_STORE_CTX_get_error(x509_ctx)); |
475 // If the secure time of the device has not yet been set |
475 // If the secure time of the device has not yet been set |
476 // (can happen some times during the first device boot), |
476 // to correct value (This can happen some times during |
|
477 // the first device boot), |
477 // allow installing with not yet valid certificates |
478 // allow installing with not yet valid certificates |
478 if (KCertNotYetValidFailure == ret_code) |
479 if (KCertNotYetValidFailure == ret_code) |
479 { |
480 { |
480 if (!TelUtils::isSecureTimeSet()) |
481 if (JavaCommonUtils::isFirstBoot()) |
481 { |
482 { |
482 ret_code = KCertAndSignatureOk; |
483 ret_code = KCertAndSignatureOk; |
483 } |
484 } |
484 } |
485 } |
485 |
486 |