/usr/include/qgis/qgsauthsslerrorsdialog.h is in libqgis-dev 2.18.17+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | /***************************************************************************
qgsauthsslerrorsdialog.h
---------------------
begin : May 22, 2015
copyright : (C) 2015 by Boundless Spatial, Inc. USA
author : Larry Shaffer
email : lshaffer at boundlessgeo dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSAUTHSSLERRORSDIALOG_H
#define QGSAUTHSSLERRORSDIALOG_H
#include <QDialog>
#include <QSslError>
#include "ui_qgsauthsslerrorsdialog.h"
class QNetworkReply;
class QPushButton;
/** \ingroup gui
* Widget for reporting SSL errors and offering an option to store an SSL server exception into the authentication database
*/
class GUI_EXPORT QgsAuthSslErrorsDialog : public QDialog, private Ui::QgsAuthSslErrorsDialog
{
Q_OBJECT
public:
/**
* Construct a dialog to handle SSL errors and saving SSL server certificate exceptions
* @param reply Network reply that hand error(s)
* @param sslErrors SSL errors that occurred
* @param parent Parent widget
* @param digest SHA digest of server certificate
* @param hostport Unique host:port to associate with the server certificate
*/
QgsAuthSslErrorsDialog( QNetworkReply *reply,
const QList<QSslError>& sslErrors,
QWidget *parent = nullptr ,
const QString &digest = QString(),
const QString &hostport = QString() );
~QgsAuthSslErrorsDialog();
private slots:
void loadUnloadCertificate( bool load );
void showCertificateChainInfo();
void showCertificateChainCAsInfo();
void widgetReadyToSaveChanged( bool cansave );
void checkCanSave();
void clearCertificateConfig();
void on_buttonBox_clicked( QAbstractButton *button );
void on_btnChainInfo_clicked();
void on_btnChainCAs_clicked();
void on_grpbxSslErrors_collapsedStateChanged( bool collapsed );
private:
void populateErrorsList();
QPushButton* ignoreButton();
QPushButton* abortButton();
QPushButton* saveButton();
QSslConfiguration mSslConfiguration;
QList<QSslError> mSslErrors;
QString mDigest;
QString mHostPort;
};
#endif // QGSAUTHSSLERRORSDIALOG_H
|