Change certificate store infrastructure to key off of the Subject Key
Id rather than sha1 hash, since that is rarely used in modern certs. The previous form was storing trusted certs using an empty sha1 hash value as the key, which meant most certificates matched... not good. Modify the LLCertException to pass certificate information back as LLSD rather than an LLPointer<LLCertificate>, because when the exception is being thown from the certificate constructor that results in one of a couple of other exceptions (even refcounting won't save you when the problem is that the thing you're pointing to never finished coming into being properly). Update the certificates in the llsechandler_basic_test to modern conventions, and extend the classes to allow for an optional validation date so that the test can use a fixed date. Also make all the certificates include the plain text form for ease of reference.
Showing
- autobuild.xml 3 additions, 3 deletionsautobuild.xml
- indra/llcommon/llthread.cpp 1 addition, 1 deletionindra/llcommon/llthread.cpp
- indra/llcorehttp/httpcommon.h 6 additions, 5 deletionsindra/llcorehttp/httpcommon.h
- indra/newview/llappcorehttp.cpp 4 additions, 6 deletionsindra/newview/llappcorehttp.cpp
- indra/newview/llsecapi.h 12 additions, 15 deletionsindra/newview/llsecapi.h
- indra/newview/llsechandler_basic.cpp 153 additions, 120 deletionsindra/newview/llsechandler_basic.cpp
- indra/newview/llsechandler_basic.h 3 additions, 2 deletionsindra/newview/llsechandler_basic.h
- indra/newview/llxmlrpclistener.cpp 2 additions, 7 deletionsindra/newview/llxmlrpclistener.cpp
- indra/newview/llxmlrpctransaction.cpp 5 additions, 11 deletionsindra/newview/llxmlrpctransaction.cpp
- indra/newview/llxmlrpctransaction.h 1 addition, 1 deletionindra/newview/llxmlrpctransaction.h
- indra/newview/tests/llsechandler_basic_test.cpp 573 additions, 241 deletionsindra/newview/tests/llsechandler_basic_test.cpp
Loading
Please register or sign in to comment