Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 279861 Details for
Bug 374943
media-gfx/cutycapt-0_p20110502-r2 unable to ignore invalid ssl certificate
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ignore SSL errors
no-check-certificate.patch (text/plain), 1.36 KB, created by
Anton Bolshakov
on 2011-07-12 10:38:46 UTC
(
hide
)
Description:
ignore SSL errors
Filename:
MIME Type:
Creator:
Anton Bolshakov
Created:
2011-07-12 10:38:46 UTC
Size:
1.36 KB
patch
obsolete
>diff -urN cutycapt-0_p20110502.orig//CutyCapt.cpp cutycapt-0_p20110502/CutyCapt.cpp >--- cutycapt-0_p20110502.orig//CutyCapt.cpp 2010-06-09 02:12:11.000000000 +0800 >+++ cutycapt-0_p20110502/CutyCapt.cpp 2011-07-12 18:28:21.358269002 +0800 >@@ -163,6 +163,12 @@ > // This is not really nice, but some restructuring work is > // needed anyway, so this should not be that bad for now. > mPage->setCutyCapt(this); >+ >+ // Ignore SSL errors >+ QNetworkAccessManager* mManager = mPage->networkAccessManager(); >+ connect(mManager, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)), >+ this, SLOT(handleSslErrors(QNetworkReply*,QList<QSslError>))); >+ > } > > void >@@ -226,6 +232,11 @@ > } > > void >+CutyCapt::handleSslErrors(QNetworkReply* reply, QList<QSslError> errors) { >+ reply->ignoreSslErrors(); >+} >+ >+void > CutyCapt::saveSnapshot() { > QWebFrame *mainFrame = mPage->mainFrame(); > QPainter painter; >diff -urN cutycapt-0_p20110502.orig//CutyCapt.hpp cutycapt-0_p20110502/CutyCapt.hpp >--- cutycapt-0_p20110502.orig//CutyCapt.hpp 2010-06-09 02:12:11.000000000 +0800 >+++ cutycapt-0_p20110502/CutyCapt.hpp 2011-07-12 17:44:57.292269001 +0800 >@@ -48,6 +48,7 @@ > void JavaScriptWindowObjectCleared(); > void Timeout(); > void Delayed(); >+ void handleSslErrors(QNetworkReply* reply, QList<QSslError> errors); > > private: > void TryDelayedRender();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 374943
: 279861 |
279865