cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject cordova-lib git commit: CB-11936 - Support four new App Transport Security (ATS) keys
Date Thu, 06 Oct 2016 18:51:08 GMT
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 <shazron@apache.org>
Authored: Thu Oct 6 10:29:29 2016 -0700
Committer: Shazron Abdullah <shazron@apache.org>
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


Mime
View raw message