<commit_before>From f8f73238eb1a45dcd5400f4f921ffa9f204ac1cf Mon Sep 17 00:00:00 2001
From: <NAME> <<EMAIL>>
Date: Wed, 7 Oct 2020 18:35:41 +0300
Subject: [PATCH] chromium GOSTSSL

---
 chrome/app/app-entitlements.plist             |   2 +
 chrome/browser/devtools/devtools_window.cc    |  16 +++
 .../native_process_launcher_posix.cc          |  12 ++
 .../resources/local_ntp/local_ntp.html        |   4 +-
 .../browser/resources/local_ntp/local_ntp.js  |   2 +-
 chrome/browser/search/local_ntp_source.cc     |   7 ++
 .../chromium-browser/chromium-browser.info    |  10 +-
 .../installer/linux/rpm/chrome.spec.template  |   4 +
 content/browser/BUILD.gn                      |   8 ++
 content/browser/storage_partition_impl.cc     |   9 ++
 content/common/user_agent.cc                  |   2 +-
 net/base/net_error_list.h                     |   5 +
 net/cert/cert_verify_proc.cc                  |  23 ++++
 net/http/http_network_transaction.cc          |   9 ++
 net/socket/socket.h                           |   3 +
 net/socket/ssl_client_socket.cc               |   9 ++
 net/socket/ssl_client_socket.h                |   4 +
 net/socket/ssl_client_socket_impl.cc          | 112 ++++++++++++++++++
 net/socket/ssl_client_socket_impl.h           |   3 +
 net/spdy/spdy_session.cc                      |   5 +
 net/ssl/client_cert_store_mac.cc              |  31 +++++
 net/ssl/client_cert_store_nss.cc              |  33 ++++++
 net/ssl/openssl_ssl_util.cc                   |   4 +
 net/ssl/ssl_cipher_suite_names.cc             |  36 ++++++
 net/ssl/ssl_platform_key_util.cc              |  21 ++++
 net/ssl/ssl_platform_key_util.h               |   7 ++
 sandbox/policy/mac/common.sb                  |  15 +++
 sandbox/win/src/process_mitigations.cc        |   4 +
 third_party/boringssl/BUILD.generated.gni     |   2 +
 29 files changed, 393 insertions(+), 9 deletions(-)

diff --git a/chrome/app/app-entitlements.plist b/chrome/app/app-entitlements.plist
index 1a37d509bfce..310d9aab7d47 100644
--- a/chrome/app/app-entitlements.plist
+++ b/chrome/app/app-entitlements.plist
@@ -12,5 +12,7 @@
 	<true/>
 	<key>com.apple.security.device.usb</key>
 	<true/>
+	<key>com.apple.security.smartcard</key><commit_msg>adopt hardened runtime on Mac<commit_after>From 200b931b14b3c385ab7f03c10f37488c5e8dae3f Mon Sep 17 00:00:00 2001
From: <NAME> <<EMAIL>>
Date: Wed, 7 Oct 2020 18:35:41 +0300
Subject: [PATCH] chromium GOSTSSL

---
 chrome/app/app-entitlements.plist             |   4 +
 chrome/browser/devtools/devtools_window.cc    |  16 +++
 .../native_process_launcher_posix.cc          |  12 ++
 .../resources/local_ntp/local_ntp.html        |   4 +-
 .../browser/resources/local_ntp/local_ntp.js  |   2 +-
 chrome/browser/search/local_ntp_source.cc     |   7 ++
 .../chromium-browser/chromium-browser.info    |  10 +-
 .../installer/linux/rpm/chrome.spec.template  |   4 +
 content/browser/BUILD.gn                      |   8 ++
 content/browser/storage_partition_impl.cc     |   9 ++
 content/common/user_agent.cc                  |   2 +-
 net/base/net_error_list.h                     |   5 +
 net/cert/cert_verify_proc.cc                  |  23 ++++
 net/http/http_network_transaction.cc          |   9 ++
 net/socket/socket.h                           |   3 +
 net/socket/ssl_client_socket.cc               |   9 ++
 net/socket/ssl_client_socket.h                |   4 +
 net/socket/ssl_client_socket_impl.cc          | 112 ++++++++++++++++++
 net/socket/ssl_client_socket_impl.h           |   3 +
 net/spdy/spdy_session.cc                      |   5 +
 net/ssl/client_cert_store_mac.cc              |  31 +++++
 net/ssl/client_cert_store_nss.cc              |  33 ++++++
 net/ssl/openssl_ssl_util.cc                   |   4 +
 net/ssl/ssl_cipher_suite_names.cc             |  36 ++++++
 net/ssl/ssl_platform_key_util.cc              |  21 ++++
 net/ssl/ssl_platform_key_util.h               |   7 ++
 sandbox/policy/mac/common.sb                  |  15 +++
 sandbox/win/src/process_mitigations.cc        |   4 +
 third_party/boringssl/BUILD.generated.gni     |   2 +
 29 files changed, 395 insertions(+), 9 deletions(-)

diff --git a/chrome/app/app-entitlements.plist b/chrome/app/app-entitlements.plist
index 1a37d509bfce..79384a1262e9 100644
--- a/chrome/app/app-entitlements.plist
+++ b/chrome/app/app-entitlements.plist
@@ -12,5 +12,9 @@
 	<true/>
 	<key>com.apple.security.device.usb</key>
 	<true/>
+	<key>com.apple.security.smartcard</key>
+	<true/>
+	<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
{'fraction_non_alphanumeric': 0.14383259911894272, 'fraction_numerical': 0.05418502202643172, 'mean_word_length': 2.0112732095490715, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '470932', 'n_tokens_mistral': 1794, 'n_tokens_neox': 1587, 'n_words': 207}