diff options
author | Roxie Linden <roxie@lindenlab.com> | 2010-05-24 15:31:10 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2010-05-24 15:31:10 -0700 |
commit | a7d1c68c787fcccf888632b9787c4cc9b30393f7 (patch) | |
tree | 4743ef5af9d239a7a8243b6ca207e7c5335233a3 /indra/newview/tests/llsechandler_basic_test.cpp | |
parent | 1ad46b5cd0fcac0d3224d37d555092258593eabd (diff) |
Fixup some certificate related unit tests
Diffstat (limited to 'indra/newview/tests/llsechandler_basic_test.cpp')
-rw-r--r-- | indra/newview/tests/llsechandler_basic_test.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/tests/llsechandler_basic_test.cpp b/indra/newview/tests/llsechandler_basic_test.cpp index d1330e2270..dfbd596d39 100644 --- a/indra/newview/tests/llsechandler_basic_test.cpp +++ b/indra/newview/tests/llsechandler_basic_test.cpp @@ -328,7 +328,8 @@ namespace tut ensure_equals("Der Format is correct", memcmp(buffer, mDerFormat.c_str(), mDerFormat.length()), 0); - LLSD llsd_cert = test_cert->getLLSD(); + LLSD llsd_cert; + test_cert->getLLSD(llsd_cert); std::ostringstream llsd_value; llsd_value << LLSDOStreamer<LLSDNotationFormatter>(llsd_cert) << std::endl; std::string llsd_cert_str = llsd_value.str(); @@ -988,10 +989,11 @@ namespace tut test_chain, validation_params); // validate without the trust flag - test_chain->validate(0, test_store, validation_params); + test_store->validate(0, test_chain, validation_params); // Test time validity - LLSD child_info = (*test_chain)[0]->getLLSD(); + LLSD child_info; + ((*test_chain)[0])->getLLSD(child_info); validation_params = LLSD::emptyMap(); validation_params[CERT_VALIDATION_DATE] = LLDate(child_info[CERT_VALID_FROM].asDate().secondsSinceEpoch() + 1.0); test_store->validate(VALIDATION_POLICY_TIME, test_chain, validation_params); |