19 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01: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
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Larry Shaffer
1ff02debdc [auth system] Fix doc string warnings and comments in PR 2330 2015-09-22 07:05:06 -06:00
Larry Shaffer
c894357a94 [auth system] Python bindings for core and gui classes 2015-09-21 08:51:19 -06:00