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
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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
Testicular Slingshot
Alchemy Viewer
Commits
5172d4ed
Commit
5172d4ed
authored
11 years ago
by
Nicky
Browse files
Options
Downloads
Patches
Plain Diff
OPEN-187: Properly cleanup all allocated OpenSSL structures.
parent
6e113858
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/contributions.txt
+1
-0
1 addition, 0 deletions
doc/contributions.txt
indra/newview/llsechandler_basic.cpp
+10
-0
10 additions, 0 deletions
indra/newview/llsechandler_basic.cpp
with
11 additions
and
0 deletions
doc/contributions.txt
+
1
−
0
View file @
5172d4ed
...
...
@@ -924,6 +924,7 @@ Nicky Dasmijn
BUG-2432
BUG-3605
CHUIBUG-197
OPEN-187
Nicky Perian
OPEN-1
STORM-1087
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llsechandler_basic.cpp
+
10
−
0
View file @
5172d4ed
...
...
@@ -207,6 +207,7 @@ LLSD _basic_constraints_ext(X509* cert)
}
}
BASIC_CONSTRAINTS_free
(
bs
);
}
return
result
;
}
...
...
@@ -268,6 +269,8 @@ LLSD _ext_key_usage_ext(X509* cert)
ASN1_OBJECT_free
(
usage
);
}
}
EXTENDED_KEY_USAGE_free
(
eku
);
}
return
result
;
}
...
...
@@ -280,6 +283,8 @@ LLSD _subject_key_identifier_ext(X509 *cert)
if
(
skeyid
)
{
result
=
cert_string_from_octet_string
(
skeyid
);
ASN1_OCTET_STRING_free
(
skeyid
);
}
return
result
;
}
...
...
@@ -300,6 +305,9 @@ LLSD _authority_key_identifier_ext(X509* cert)
{
result
[
CERT_AUTHORITY_KEY_IDENTIFIER_SERIAL
]
=
cert_string_from_asn1_integer
(
akeyid
->
serial
);
}
AUTHORITY_KEYID_free
(
akeyid
);
}
// we ignore the issuer name in the authority key identifier, we check the issue name via
...
...
@@ -1049,6 +1057,8 @@ void LLBasicCertificateStore::validate(int validation_policy,
throw
LLInvalidCertificate
((
*
current_cert
));
}
std
::
string
sha1_hash
((
const
char
*
)
cert_x509
->
sha1_hash
,
SHA_DIGEST_LENGTH
);
X509_free
(
cert_x509
);
cert_x509
=
NULL
;
t_cert_cache
::
iterator
cache_entry
=
mTrustedCertCache
.
find
(
sha1_hash
);
if
(
cache_entry
!=
mTrustedCertCache
.
end
())
{
...
...
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