Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0DCC3200B96 for ; Thu, 6 Oct 2016 20:51:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0C44A160ADB; Thu, 6 Oct 2016 18:51:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 486C2160AC5 for ; Thu, 6 Oct 2016 20:51:09 +0200 (CEST) Received: (qmail 56037 invoked by uid 500); 6 Oct 2016 18:51:08 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 56028 invoked by uid 99); 6 Oct 2016 18:51:08 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2016 18:51:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2B35FDFF55; Thu, 6 Oct 2016 18:51:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: commits@cordova.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cordova-lib git commit: CB-11936 - Support four new App Transport Security (ATS) keys Date: Thu, 6 Oct 2016 18:51:08 +0000 (UTC) archived-at: Thu, 06 Oct 2016 18:51:10 -0000 Repository: cordova-lib Updated Branches: refs/heads/master 97e98ed9a -> 934757c0a CB-11936 - Support four new App Transport Security (ATS) keys This closes #496 Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/934757c0 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/934757c0 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/934757c0 Branch: refs/heads/master Commit: 934757c0a2d0a0463a747ba3fa32d2ddcdf652d5 Parents: 97e98ed Author: Shazron Abdullah Authored: Thu Oct 6 10:29:29 2016 -0700 Committer: Shazron Abdullah Committed: Thu Oct 6 11:50:54 2016 -0700 ---------------------------------------------------------------------- cordova-common/src/ConfigParser/ConfigParser.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/934757c0/cordova-common/src/ConfigParser/ConfigParser.js ---------------------------------------------------------------------- diff --git a/cordova-common/src/ConfigParser/ConfigParser.js b/cordova-common/src/ConfigParser/ConfigParser.js index 195164a..bd417ac 100644 --- a/cordova-common/src/ConfigParser/ConfigParser.js +++ b/cordova-common/src/ConfigParser/ConfigParser.js @@ -448,10 +448,19 @@ ConfigParser.prototype = { return accesses.map(function(access){ var minimum_tls_version = access.attrib['minimum-tls-version']; /* String */ var requires_forward_secrecy = access.attrib['requires-forward-secrecy']; /* Boolean */ + var requires_certificate_transparency = access.attrib['requires-certificate-transparency']; /* Boolean */ + var allows_arbitrary_loads_in_web_content = access.attrib['allows-arbitrary-loads-in-web-content']; /* Boolean */ + var allows_arbitrary_loads_in_media = access.attrib['allows-arbitrary-loads-in-media']; /* Boolean */ + var allows_local_networking = access.attrib['allows-local-networking']; /* Boolean */ + return { 'origin': access.attrib.origin, 'minimum_tls_version': minimum_tls_version, - 'requires_forward_secrecy' : requires_forward_secrecy + 'requires_forward_secrecy' : requires_forward_secrecy, + 'requires_certificate_transparency' : requires_certificate_transparency, + 'allows_arbitrary_loads_in_web_content' : allows_arbitrary_loads_in_web_content, + 'allows_arbitrary_loads_in_media' : allows_arbitrary_loads_in_media, + 'allows_local_networking' : allows_local_networking }; }); }, @@ -461,10 +470,13 @@ ConfigParser.prototype = { return allow_navigations.map(function(allow_navigation){ var minimum_tls_version = allow_navigation.attrib['minimum-tls-version']; /* String */ var requires_forward_secrecy = allow_navigation.attrib['requires-forward-secrecy']; /* Boolean */ + var requires_certificate_transparency = allow_navigation.attrib['requires-certificate-transparency']; /* Boolean */ + return { 'href': allow_navigation.attrib.href, 'minimum_tls_version': minimum_tls_version, - 'requires_forward_secrecy' : requires_forward_secrecy + 'requires_forward_secrecy' : requires_forward_secrecy, + 'requires_certificate_transparency' : requires_certificate_transparency }; }); }, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org