Skip to content

Commit

Permalink
[qtmozembed] Expose SSL/TLS security info. Contributes to JB#40089
Browse files Browse the repository at this point in the history
Provides a new inteface exposing the SSL/TLS and certificate information
in a form consumable by QML. Useful for providing security info to the
user. This presents the deserialised info provided by the gecko engine.

The certificate details are provided as a property map, allowing them to
be consumed by the CertificateDetailsPage of jolla-settings-system for
presentation to the user.

qmozview handles ownership and management of the QMozSecurity object.
  • Loading branch information
llewelld committed Sep 24, 2019
1 parent 0b191f0 commit 0b41a71
Show file tree
Hide file tree
Showing 14 changed files with 601 additions and 4 deletions.
2 changes: 2 additions & 0 deletions qmlplugin5/main.cpp
Expand Up @@ -10,6 +10,7 @@
#include "qmozcontext.h"
#include "qmozscrolldecorator.h"
#include "qmlmozcontext.h"
#include "qmozsecurity.h"

class QtMozEmbedPlugin : public QQmlExtensionPlugin
{
Expand All @@ -24,6 +25,7 @@ class QtMozEmbedPlugin : public QQmlExtensionPlugin
qmlRegisterType<QmlMozContext>("Qt5Mozilla", 1, 0, "QmlMozContext");
qmlRegisterUncreatableType<QMozScrollDecorator>("Qt5Mozilla", 1, 0, "QmlMozScrollDecorator", "");
qmlRegisterUncreatableType<QMozReturnValue>("Qt5Mozilla", 1, 0, "QMozReturnValue", "");
qmlRegisterType<QMozSecurity>("Qt5Mozilla", 1, 0, "QMozSecurity");
setenv("EMBED_COMPONENTS_PATH", DEFAULT_COMPONENTS_PATH, 1);
}
};
Expand Down
2 changes: 2 additions & 0 deletions qtmozembed.pro
Expand Up @@ -7,3 +7,5 @@ qmlplugin5.depends = src
isEmpty(NO_TESTS) {
SUBDIRS += tests
}

OTHER_FILES += rpm/qtmozembed-qt5.spec
2 changes: 2 additions & 0 deletions rpm/qtmozembed-qt5.spec
Expand Up @@ -27,7 +27,9 @@ BuildRequires: pkgconfig(pixman-1) >= 0.19.2
BuildRequires: xulrunner-qt5-devel >= %{min_xulrunner_version}
BuildRequires: qt5-default
BuildRequires: qt5-qttools
BuildRequires: pkgconfig(systemsettings) >= 0.5.25
Requires: xulrunner-qt5 >= %{min_xulrunner_version}
Requires: nemo-qml-plugin-systemsettings >= 0.5.25

%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
Expand Down

0 comments on commit 0b41a71

Please sign in to comment.