forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 634697 - Refactoring nsClientAuthRememberService to work as a ser…
…vice r=keeler Differential Revision: https://phabricator.services.mozilla.com/D62585 --HG-- extra : moz-landing-system : lando
- Loading branch information
Moritz Birghan
committed
Feb 27, 2020
1 parent
aa33282
commit d3291a0
Showing
9 changed files
with
99 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "nsISupports.idl" | ||
|
||
%{C++ | ||
#include "cert.h" | ||
#define NS_CLIENTAUTHREMEMBER_CONTRACTID "@mozilla.org/security/clientAuthRemember;1" | ||
%} | ||
|
||
[ptr] native CERTCertificatePtr(CERTCertificate); | ||
[ref] native const_OriginAttributesRef(const mozilla::OriginAttributes); | ||
|
||
[scriptable, uuid(1dbc6eb6-0972-4bdb-9dc4-acd0abf72369)] | ||
interface nsIClientAuthRemember : nsISupports | ||
{ | ||
|
||
[must_use, noscript] | ||
void rememberDecision(in ACString aHostName, | ||
in const_OriginAttributesRef aOriginAttributes, | ||
in CERTCertificatePtr aServerCert, | ||
in CERTCertificatePtr aClientCert); | ||
|
||
[must_use, noscript] | ||
bool hasRememberedDecision(in ACString aHostName, | ||
in const_OriginAttributesRef aOriginAttributes, | ||
in CERTCertificatePtr aServerCert, | ||
out ACString aCertDBKey); | ||
|
||
[must_use] | ||
void clearRememberedDecisions(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters