Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michel Le Bihan
gajim
Commits
a53675cf
Commit
a53675cf
authored
12 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
prevent traceback when a wrong certificate is being checked. Fixes #7242
parent
58e6a874
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/check_X509.py
+6
-1
6 additions, 1 deletion
src/common/check_X509.py
with
6 additions
and
1 deletion
src/common/check_X509.py
+
6
−
1
View file @
a53675cf
...
...
@@ -133,7 +133,12 @@ try:
for
i
in
range
(
0
,
cnt
):
ext
=
cert
.
get_extension
(
i
)
if
ext
.
get_short_name
()
==
'
subjectAltName
'
:
r
=
_parse_asn1
(
ext
.
get_data
())
try
:
r
=
_parse_asn1
(
ext
.
get_data
())
except
:
log
.
error
(
'
Wrong data in certificate: subjectAltName=%s
'
%
\
ext
.
get_data
())
continue
if
'
otherName
'
in
r
:
if
oid_xmppaddr
in
r
[
'
otherName
'
]:
for
host
in
r
[
'
otherName
'
][
oid_xmppaddr
]:
...
...
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