59 Commits

Author SHA1 Message Date
Denis Rouzaud
458cab7b20 run sipify 2018-01-17 10:16:37 -04:00
Denis Rouzaud
7722010ca8 rename *.sip to *.sip.in for the auto generated sip files 2018-01-17 10:16:37 -04:00
Denis Rouzaud
6d94ac9c6c run sipify 2018-01-12 21:10:16 -04:00
Denis Rouzaud
5babec5e07 run sipify 2018-01-09 11:40:39 -04:00
Denis Rouzaud
90e5196996 run sipify 2017-12-19 14:55:46 -04:00
Denis Rouzaud
c604d2dda6 run sipify 2017-12-15 22:13:44 -04:00
Denis Rouzaud
f2b3ed0a9b run sipify 2017-12-15 11:12:19 -04:00
Denis Rouzaud
ed5076201a [doxygen] \see must be placed after params 2017-12-06 07:19:50 -04:00
Denis Rouzaud
e48cf98edb run sipify 2017-12-06 07:19:50 -04:00
Alessandro Pasotti
6f0659742b [auth] Morph the mutex from a pointer to a member var 2017-11-16 16:01:37 +01:00
Alessandro Pasotti
674467b95e [auth] Thread safe auth methods with recursive mutex
Add a mutex to the base class and use that
mutex to protect all public methods of the
authentication methods.
2017-11-16 16:01:37 +01:00
Alessandro Pasotti
fe4f1500d9
Merge pull request #5563 from boundlessgeo/BD-2469-pem-key-encoding
[auth][bugfix] Import pvt keys with unknown file extension
2017-11-13 17:40:54 +01:00
Alessandro Pasotti
3fc4be3f10 [auth] Remove unused accessor to mutex 2017-11-09 09:02:54 +01:00
Alessandro Pasotti
d09d7048fa [auth][bugfix] Import pvt keys with unknown file extension
This fixes an unreported bug that prevent imports of
private keys with wrong/unknown extension.

The old logic relied on the file extension, that is
not only weak but plain wrong because the same extension
can have different encodings.

The new implementation is 100% robust because completely
ignores the file extentions and try to load the key with
all supported encodings and algorithms before giving up.
2017-11-08 12:16:15 +01:00
Larry Shaffer
8032de8d06 [auth][api] Remove deprecated QSslCertificate::isValid()
Substitue QgsAuthCertUtils::certIsViable(cert), which checks similar
characteristics to old function, plus whether the cert is null.
2017-10-27 14:01:03 -06:00
Alessandro Pasotti
d64529f4ce [api][auth] Removed get prefix from all getters in auth manager 2017-10-27 14:27:29 +02:00
Larry Shaffer
8501053a0d Merge pull request #5463 from boundlessgeo/BD-2507-pki-bundle-validation
[auth] PKI bundle validation utility function
2017-10-26 13:52:57 -06:00
Larry Shaffer
3210f8546a Merge pull request #5401 from boundlessgeo/pkcs8-to-pkcs1
[auth] Convert PKCS8 to PKCS1 private keys (for macOS)
2017-10-26 12:42:12 -06:00
Alessandro Pasotti
89166a0d2e [auth] Add utility method to validate a PKI bundle 2017-10-26 18:26:47 +02:00
Alessandro Pasotti
f1eba3a849 [auth] Add validatePKIBundle 2017-10-26 18:24:35 +02:00
Alessandro Pasotti
0557b394d8 Add documentation for the hostName argument 2017-10-26 18:24:35 +02:00
Alessandro Pasotti
368b0df24e [auth] Add certificate chain validation routine 2017-10-26 18:24:35 +02:00
Alessandro Pasotti
bb73f0d8db [auth] Removed instance and ctor from bindings 2017-10-26 10:10:27 +02:00
Alessandro Pasotti
48984dd089 [auth] Authmanager singleton removal from API 2017-10-26 10:10:27 +02:00
Larry Shaffer
a1efff793a [auth] Fix documentation error in QgsAuthCertUtils 2017-10-18 17:40:44 -06:00
Larry Shaffer
8107f91037 [auth] Move inline file reads to static func; add PKCS#8 sniffing func 2017-10-18 16:07:04 -06:00
Alessandro Pasotti
18517b36b0 [auth] Document cachain argument 2017-10-16 14:33:55 +02:00
Alessandro Pasotti
b3fc3a4809 [auth] Sipify and doxify 2017-10-16 12:59:44 +02:00
Alessandro Pasotti
d293e8f6ed [auth] Add method to exclude self-signed CAs from a list of certificates 2017-10-16 10:52:40 +02:00
Alessandro Pasotti
566ad8b554 [auth] Add CA utility methods 2017-10-13 12:58:08 +02:00
Alessandro Pasotti
f4b4030fd3 [auth] Add CA chain to auth config 2017-10-13 12:56:42 +02:00
Nyall Dawson
42676dc93c Move some getters which are incorrectly marked as slots,
remove some unnecessary 'const's from signals

Thanks to clazy const-signal-or-slot check
2017-10-09 11:53:06 +10:00
Alessandro Pasotti
07e1bd9c38 [auth] Added updateNetworkProxy method to auth manager
This allows to apply stored proxy auth settings to the
proxy configuration.
2017-09-25 17:39:41 +02:00
Denis Rouzaud
54c6291378 script to write include SIP files 2017-06-28 10:45:51 +02:00
Martin Dobias
51e7efe218 Replace QString::null by QString() in core (deprecated since Qt 5.9) 2017-06-06 11:36:41 +02:00
Denis Rouzaud
00fcc6e0cd sipify auth classes 2017-05-23 11:43:34 +02:00
Denis Rouzaud
7b60d89d6c align pointer and reference in sip files batch 2 2017-05-01 20:00:51 +02:00
Alessandro Pasotti
090d5305e5 [feature][needs-docs] Master Password integration with OS password manager
This PR adds (optional) synchronization of the master password
with the OS password manager (AKA wallet/keychain).

A set of new menu items has been added in the options ->
authentication -> utilities to manage the new behavior.

Notifications are handled by the message bar unless the
password r/w operation is triggered from a modal dialog,
in this case the notifications will be routed through
the recently exposed QgisApp::showSystemNotification
that uses the OS tray notifications.

This new feature requires libqt5keychain, and was tested
with v. 0.5+
2017-04-11 15:00:29 +02:00
Nyall Dawson
d47d31d13c Rename "Db"/"DB" in API to "Database"
Motivations:
- consistency - we generally use expanded names, and this also
matches Qt API which uses Database instead of Db
- avoids unpredictable capitalization throughout API (mix of "Db"
and "DB")
2017-02-07 09:32:05 +10:00
Denis Rouzaud
b119744773 replace cancelling, cancelled and cancellation by canceling, canceled and cancelation, respectively (#4000)
* replace cancelling and cancelled by canceling and canceled, respectively

see https://github.com/qgis/qgis3_UIX_discussion/issues/19

* replace cancellation by cancelation
2017-01-16 22:27:14 +01:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Denis Rouzaud
6c74e4ea5d spelling fixes 2017-01-12 22:01:50 +01:00
Denis Rouzaud
37ebcdd1cd [spellcheck] allow inwords checks and line skipping
spell check will be done automatically in words by default (when some conditions are fulfilled)
possibility to avoid in words checking by adding :* at the end in spelling.dat

one can add #spellok at the end of a line of code to skip spell check on this line
2017-01-10 20:18:37 +01:00
Nyall Dawson
44289084e9 Optimise passing of variables by ref/value 2016-10-24 10:36:23 +10:00
Juergen E. Fischer
d9349e5bbb update configuration settings to qgis3 2016-10-06 11:40:42 +02:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
24d9c65494 Fix more classes which violate the rule-of-three
Also remove some empty destructors
2016-01-26 14:24:45 +11:00
Larry Shaffer
d5bf1045f3 [auth] Ensure ident cert cache is used; move temp file creation to utils 2016-01-13 21:29:10 +01:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00