2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2014-01-27 07:36:28 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
2017-03-09 13:33:30 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Security: PSM")
|
|
|
|
|
2014-09-03 21:24:12 +04:00
|
|
|
EXPORTS += [
|
2016-02-09 21:14:27 +03:00
|
|
|
'BRNameMatchingPolicy.h',
|
2014-09-03 21:24:12 +04:00
|
|
|
'CertVerifier.h',
|
|
|
|
'OCSPCache.h',
|
|
|
|
]
|
|
|
|
|
2014-09-03 02:28:11 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2016-02-09 21:14:27 +03:00
|
|
|
'BRNameMatchingPolicy.cpp',
|
2014-01-27 07:36:28 +04:00
|
|
|
'CertVerifier.cpp',
|
2014-01-21 10:10:33 +04:00
|
|
|
'NSSCertDBTrustDomain.cpp',
|
2014-03-13 00:08:48 +04:00
|
|
|
'OCSPCache.cpp',
|
2015-07-17 19:07:48 +03:00
|
|
|
'OCSPVerificationTrustDomain.cpp',
|
2014-01-27 07:36:28 +04:00
|
|
|
]
|
|
|
|
|
2014-02-24 10:15:53 +04:00
|
|
|
if not CONFIG['NSS_NO_EV_CERTS']:
|
2014-09-03 02:28:11 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-01-27 07:36:28 +04:00
|
|
|
'ExtendedValidation.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2018-10-01 19:20:41 +03:00
|
|
|
'/security/ct',
|
2015-05-26 20:31:23 +03:00
|
|
|
'/security/manager/ssl',
|
2014-01-27 07:36:28 +04:00
|
|
|
]
|
|
|
|
|
2014-03-11 01:04:31 +04:00
|
|
|
DIRS += [
|
2018-10-01 19:20:41 +03:00
|
|
|
'../ct',
|
2014-03-11 01:04:31 +04:00
|
|
|
]
|
|
|
|
|
2016-04-11 16:17:25 +03:00
|
|
|
TEST_DIRS += [
|
|
|
|
'tests/gtest',
|
|
|
|
]
|
|
|
|
|
2018-07-20 09:34:56 +03:00
|
|
|
if CONFIG['CC_TYPE'] == 'clang-cl':
|
|
|
|
# -Wall on clang-cl maps to -Weverything, which turns on way too
|
2018-09-15 15:20:32 +03:00
|
|
|
# much, so we're passing through -Wall using -Xclang.
|
|
|
|
CXXFLAGS += ['-Xclang']
|
|
|
|
CXXFLAGS += ['-Wall']
|
2018-07-20 09:34:56 +03:00
|
|
|
|
2019-02-15 00:45:27 +03:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wextra',
|
|
|
|
'-Wunreachable-code',
|
|
|
|
]
|
2017-02-23 18:19:55 +03:00
|
|
|
|
2019-02-15 00:45:27 +03:00
|
|
|
# Gecko headers aren't warning-free enough for us to enable these warnings.
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
]
|
2016-05-11 10:00:01 +03:00
|
|
|
|
Bug 1510569 - Implement serializers for nsITransportSecurityInfo, nsIX509Cert, and nsIX509CertList r=froydnj,keeler,mayhemer
As part of the ongoing effort to port the nsIWebProgress events from
RemoteWebProgress / WebProgressChild to BrowserParent / BrowserChild, we need
to (de)serialize the nsITransportSecurityInfo instance across the IPC layer.
The existing code was calling `NS_SerializeToString` which has the overhead of
(a) allocating a buffer and also performing base64 encoding/decoding. This
patch adds `IPC::ParamTraits` implementations for `nsITransportSecurityInfo`,
`nsIX509Certificate`, and `nsIX509CertList` that (de)serializes the params
directly onto and off of the IPC message so that we don't go through the
overhead of allocating and encoding/decoding an additional buffer.
This (de)serialization will address the performance issues present in the
current implementation.
As a side effect, I also make nsITransportSecurityInfo a builtinclass XPCOM
interface, since the existing serialization code was assuming it was, there is
only one implementation, and it is in C++.
Differential Revision: https://phabricator.services.mozilla.com/D35090
--HG--
extra : moz-landing-system : lando
2019-08-28 21:55:31 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-01-27 07:36:28 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2018-07-31 16:10:07 +03:00
|
|
|
|
|
|
|
if CONFIG['CC_TYPE'] == 'clang-cl':
|
|
|
|
AllowCompilerWarnings() # workaround for bug 1090497
|