Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
0d324bb2
Commit
0d324bb2
authored
4 years ago
by
Andrey Kleshchev
Browse files
Options
Downloads
Patches
Plain Diff
SL-12422 Clear cert cache to enshure there is no carry-over between failed logins
parent
83127d22
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/newview/llsecapi.h
+3
-1
3 additions, 1 deletion
indra/newview/llsecapi.h
indra/newview/llsechandler_basic.h
+4
-1
4 additions, 1 deletion
indra/newview/llsechandler_basic.h
indra/newview/llstartup.cpp
+5
-0
5 additions, 0 deletions
indra/newview/llstartup.cpp
with
12 additions
and
2 deletions
indra/newview/llsecapi.h
+
3
−
1
View file @
0d324bb2
...
...
@@ -264,7 +264,9 @@ class LLCertificateStore : virtual public LLCertificateVector
virtual
void
validate
(
int
validation_policy
,
LLPointer
<
LLCertificateChain
>
cert_chain
,
const
LLSD
&
validation_params
)
=
0
;
// Clear cache if any
virtual
void
clearSertCache
()
=
0
;
};
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llsechandler_basic.h
+
4
−
1
View file @
0d324bb2
...
...
@@ -177,7 +177,10 @@ class LLBasicCertificateStore : virtual public LLBasicCertificateVector, public
virtual
void
validate
(
int
validation_policy
,
LLPointer
<
LLCertificateChain
>
ca_chain
,
const
LLSD
&
validation_params
);
// Clears cache of certs validated agains store
virtual
void
clearSertCache
()
{
mTrustedCertCache
.
clear
();
}
protected
:
std
::
vector
<
LLPointer
<
LLCertificate
>
>
mCerts
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llstartup.cpp
+
5
−
0
View file @
0d324bb2
...
...
@@ -2824,6 +2824,11 @@ void reset_login()
// Hide any other stuff
LLFloaterReg
::
hideVisibleInstances
();
LLStartUp
::
setStartupState
(
STATE_BROWSER_INIT
);
// Clear any verified certs and verify them again on next login
// to ensure cert matches server instead of just getting reused
LLPointer
<
LLCertificateStore
>
store
=
gSecAPIHandler
->
getCertificateStore
(
""
);
store
->
clearSertCache
();
}
//---------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment