Bug 1549015 - Removes privilegedPackageRoot r=keeler

nsIX509CertDB::PrivilegedPackageRoot was added in bug 1178518 to support privileged packaged apps for Firefox OS. However, we no longer need to support this use-case.

Differential Revision: https://phabricator.services.mozilla.com/D38655

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Moritz Birghan 2019-07-24 19:54:41 +00:00
parent 094f958c69
commit e58c39f78e
5 changed files with 0 additions and 10 deletions

View File

@ -24,8 +24,6 @@
#include "addons-public.inc"
#include "addons-public-intermediate.inc"
#include "addons-stage.inc"
// Privileged Package Certificates
#include "privileged-package-root.inc"
using namespace mozilla::pkix;
@ -59,11 +57,6 @@ nsresult AppTrustDomain::SetTrustedRoot(AppTrustedRoot trustedRoot) {
trustedDER.len = mozilla::ArrayLength(addonsStageRoot);
break;
case nsIX509CertDB::PrivilegedPackageRoot:
trustedDER.data = const_cast<uint8_t*>(privilegedPackageRoot);
trustedDER.len = mozilla::ArrayLength(privilegedPackageRoot);
break;
default:
return NS_ERROR_INVALID_ARG;
}

View File

@ -34,7 +34,6 @@ array_names = [
'addonsPublicRoot',
'addonsPublicIntermediate',
'addonsStageRoot',
'privilegedPackageRoot',
]
for n in array_names:

View File

@ -41,7 +41,6 @@ headers_arrays_certs = [
('addons-public.inc', 'addonsPublicRoot', 'addons-public.crt'),
('addons-public-intermediate.inc', 'addonsPublicIntermediate', 'addons-public-intermediate.crt'),
('addons-stage.inc', 'addonsStageRoot', 'addons-stage.crt'),
('privileged-package-root.inc', 'privilegedPackageRoot', 'privileged-package-root.der'),
]
for header, array_name, cert in headers_arrays_certs:

View File

@ -250,7 +250,6 @@ interface nsIX509CertDB : nsISupports {
const AppTrustedRoot AppXPCShellRoot = 6;
const AppTrustedRoot AddonsPublicRoot = 7;
const AppTrustedRoot AddonsStageRoot = 8;
const AppTrustedRoot PrivilegedPackageRoot = 9;
[must_use]
void openSignedAppFileAsync(in AppTrustedRoot trustedRoot,
in nsIFile aJarFile,