Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
203
Issues
203
List
Boards
Labels
Service Desk
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
2b65c5d5
Commit
2b65c5d5
authored
Apr 18, 2011
by
Yann Leboulanger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ability to see certificate on ssl error dialog. Fixes
#3998
parent
34248839
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
src/common/connection.py
src/common/connection.py
+2
-1
src/dialogs.py
src/dialogs.py
+19
-2
src/gui_interface.py
src/gui_interface.py
+3
-2
No files found.
src/common/connection.py
View file @
2b65c5d5
...
...
@@ -1273,7 +1273,8 @@ def connection_accepted(self, con, con_type):
gajim
.
nec
.
push_incoming_event
(
SSLErrorEvent
(
None
,
conn
=
self
,
error_text
=
text
,
error_num
=
errnum
,
cert
=
con
.
Connection
.
ssl_cert_pem
,
fingerprint
=
con
.
Connection
.
ssl_fingerprint_sha1
))
fingerprint
=
con
.
Connection
.
ssl_fingerprint_sha1
,
certificate
=
con
.
Connection
.
ssl_certificate
))
return
True
if
hasattr
(
con
.
Connection
,
'ssl_fingerprint_sha1'
):
saved_fingerprint
=
gajim
.
config
.
get_per
(
'accounts'
,
self
.
name
,
'ssl_fingerprint_sha1'
)
...
...
src/dialogs.py
View file @
2b65c5d5
...
...
@@ -5646,11 +5646,28 @@ def __init__(self, pritext='', sectext='', checktext='',
self
.
cert
=
certificate
YesNoDialog
.
__init__
(
self
,
pritext
,
sectext
,
checktext
,
on_response_yes
,
on_response_no
)
b
=
gtk
.
Button
(
'View cert...'
)
b
=
gtk
.
Button
(
_
(
'View cert...'
)
)
b
.
connect
(
'clicked'
,
self
.
on_cert_clicked
)
b
.
show_all
()
area
=
self
.
get_action_area
()
area
.
pack_start
(
b
)
def
on_cert_clicked
(
self
,
button
):
d
=
CertificatDialog
(
self
,
self
.
account
,
self
.
cert
)
\ No newline at end of file
d
=
CertificatDialog
(
self
,
self
.
account
,
self
.
cert
)
class
SSLErrorDialog
(
ConfirmationDialogDoubleCheck
):
def
__init__
(
self
,
account
,
certificate
,
pritext
,
sectext
,
checktext1
,
checktext2
,
on_response_ok
=
None
,
on_response_cancel
=
None
):
self
.
account
=
account
self
.
cert
=
certificate
ConfirmationDialogDoubleCheck
.
__init__
(
self
,
pritext
,
sectext
,
checktext1
,
checktext2
,
on_response_ok
,
on_response_cancel
,
is_modal
=
False
)
b
=
gtk
.
Button
(
_
(
'View cert...'
))
b
.
connect
(
'clicked'
,
self
.
on_cert_clicked
)
b
.
show_all
()
area
=
self
.
get_action_area
()
area
.
pack_start
(
b
)
def
on_cert_clicked
(
self
,
button
):
d
=
CertificatDialog
(
self
,
self
.
account
,
self
.
cert
)
src/gui_interface.py
View file @
2b65c5d5
...
...
@@ -1219,8 +1219,9 @@ def on_cancel():
if
'ssl_error'
in
self
.
instances
[
account
][
'online_dialog'
]:
self
.
instances
[
account
][
'online_dialog'
][
'ssl_error'
].
destroy
()
self
.
instances
[
account
][
'online_dialog'
][
'ssl_error'
]
=
\
dialogs
.
ConfirmationDialogDoubleCheck
(
pritext
,
sectext
,
checktext1
,
checktext2
,
on_response_ok
=
on_ok
,
on_response_cancel
=
on_cancel
)
dialogs
.
SSLErrorDialog
(
obj
.
conn
.
name
,
obj
.
certificate
,
pritext
,
sectext
,
checktext1
,
checktext2
,
on_response_ok
=
on_ok
,
on_response_cancel
=
on_cancel
)
def
handle_event_fingerprint_error
(
self
,
obj
):
# ('FINGERPRINT_ERROR', account, (new_fingerprint,))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment