Commit Graph
12 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez 118c790577 Bug 1602317 - Add a missing include in OSReauthenticator to unbust win builds. a=malexandru
CLOSED TREE

MANUAL PUSH: build bustage
2019-12-09 14:19:26 +01:00
Aaron Klotz 18a8732bb4 Bug 1578786: Fix up some includes and namespaces in security/manager/ssl so that it may compile in non-unified mode; r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D44700
2019-09-04 18:35:50 +00:00
Dana Keeler 1cba55883e bug 1555854 - avoid creating transient threads in PSM (particularly CryptoTask) r=KevinJacobs
CryptoTask is a helper class that makes it easier to implement code that runs on
a background thread and then notifies completion on the main thread (this is
useful for not blocking the main thread with long-running cryptography or I/O).
Before this patch, each CryptoTask would create a new thread each time it ran,
which was inefficient. This patch updates CryptoTask to use the stream transport
service (which is essentially a pool of threads for doing exactly these kinds of
things and notably is not to be confused with the socket transport service) to
run each task. Additionally, there were a few places in PSM where we
unnecessarily created new threads to perform similar tasks. These now use the
stream transport service as well.

Differential Revision: https://phabricator.services.mozilla.com/D33534
2019-06-03 23:47:48 +00:00
Nathan Froyd 78d1c4c954 Bug 1542347 - eliminate needless string flattening in OSReauthenticator; r=keeler
We already have a null-terminated `nsString` in this code; we don't need
to turn it into another null-terminated `nsString`.

Depends on D26355

Differential Revision: https://phabricator.services.mozilla.com/D26356
2019-04-08 16:26:10 +00:00
Ehsan Akhgari 498e2df734 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Franziskus Kiefer 9586bb0d03 Bug 1508936 - Fix conversion to wide characters in OSReauthenticator r=keeler,mhowell
Fix conversion to wide characters in OSReauthenticator

Differential Revision: https://phabricator.services.mozilla.com/D12727
2019-01-15 01:21:00 +00:00
Sylvestre Ledru e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
J.C. Jones 07e42ca3ae Bug 1505106 - Support TouchID/FaceID for Reauthentication r=spohl
In Bug 1499846 we added support for OSX to do Keychain-based reauthentication.
On newer versions of OSX, it's possible to instead do TouchID/FaceID for bio-
metric reauthentication, with a fallback to Keychain.

This implements that functionality. There's no C++ interface to access the
LocalAuthentication framework, so it adds an Objective-C method called by the
existing OSReauthenticator methods to perform its work.

Differential Revision: https://phabricator.services.mozilla.com/D11700
2018-11-28 18:35:02 +00:00
Franziskus Kiefer 1f767ea337 Bug 1505197 - allow the user to retry reauthentication on Windows 2 times r=keeler
This adds a hard coded number of retries for Windos re-auth.
I also changed to always return NS_OK unless a real error occurred to make this behave like the macOS version.

Differential Revision: https://phabricator.services.mozilla.com/D11438
2018-11-14 09:07:20 +00:00
David Keeler 5cbccbe8e5 bug 1499846 - implement user reauthentication on MacOS r=franziskus,spohl
Differential Revision: https://phabricator.services.mozilla.com/D9025
2018-10-25 00:24:04 +00:00
Franziskus Kiefer ac7f1869e1 Bug 1498518 - user authentication prompts for Windows, r=keeler,mhowell
Depends on D8480

Differential Revision: https://phabricator.services.mozilla.com/D8530
2018-10-23 09:05:07 +00:00
Dana Keeler 0ff71db879 bug 1498351 - add interface to allow OS-specific user re-authentication r=franziskus
This patch introduces the interface with a stub implementation that does
nothing. Follow-up bugs will add platform-specific implementations.

Differential Revision: https://phabricator.services.mozilla.com/D8480
2018-10-16 16:06:30 +00:00