Cut dependency on BoringSSL.

gRPC is only used for intra-machine communications, for which not using crypto is perfectly fine.

--
MOS_MIGRATED_REVID=121825070
diff --git a/third_party/grpc/BUILD b/third_party/grpc/BUILD
index 6a54da5..9693ea3 100644
--- a/third_party/grpc/BUILD
+++ b/third_party/grpc/BUILD
@@ -47,7 +47,7 @@
 )
 
 cc_library(
-    name = "grpc",
+    name = "grpc_unsecure",
     srcs = [
         "src/core/census/aggregation.h",
         "src/core/census/context.c",
@@ -121,7 +121,6 @@
         "src/core/httpcli/format_request.h",
         "src/core/httpcli/httpcli.c",
         "src/core/httpcli/httpcli.h",
-        "src/core/httpcli/httpcli_security_connector.c",
         "src/core/httpcli/parser.c",
         "src/core/httpcli/parser.h",
         "src/core/iomgr/closure.c",
@@ -212,30 +211,6 @@
         "src/core/profiling/basic_timers.c",
         "src/core/profiling/stap_timers.c",
         "src/core/profiling/timers.h",
-        "src/core/security/auth_filters.h",
-        "src/core/security/base64.c",
-        "src/core/security/base64.h",
-        "src/core/security/client_auth_filter.c",
-        "src/core/security/credentials.c",
-        "src/core/security/credentials.h",
-        "src/core/security/credentials_metadata.c",
-        "src/core/security/credentials_posix.c",
-        "src/core/security/credentials_win32.c",
-        "src/core/security/google_default_credentials.c",
-        "src/core/security/handshake.c",
-        "src/core/security/handshake.h",
-        "src/core/security/json_token.c",
-        "src/core/security/json_token.h",
-        "src/core/security/jwt_verifier.c",
-        "src/core/security/jwt_verifier.h",
-        "src/core/security/secure_endpoint.c",
-        "src/core/security/secure_endpoint.h",
-        "src/core/security/security_connector.c",
-        "src/core/security/security_connector.h",
-        "src/core/security/security_context.c",
-        "src/core/security/security_context.h",
-        "src/core/security/server_auth_filter.c",
-        "src/core/security/server_secure_chttp2.c",
         "src/core/statistics/census_interface.h",
         "src/core/statistics/census_rpc_stats.h",
         "src/core/support/alloc.c",
@@ -309,10 +284,9 @@
         "src/core/surface/event_string.h",
         "src/core/surface/init.c",
         "src/core/surface/init.h",
-        "src/core/surface/init_secure.c",
+        "src/core/surface/init_unsecure.c",
         "src/core/surface/lame_client.c",
         "src/core/surface/metadata_array.c",
-        "src/core/surface/secure_channel_create.c",
         "src/core/surface/server.c",
         "src/core/surface/server.h",
         "src/core/surface/server_chttp2.c",
@@ -376,14 +350,6 @@
         "src/core/transport/transport.h",
         "src/core/transport/transport_impl.h",
         "src/core/transport/transport_op_string.c",
-        "src/core/tsi/fake_transport_security.c",
-        "src/core/tsi/fake_transport_security.h",
-        "src/core/tsi/ssl_transport_security.c",
-        "src/core/tsi/ssl_transport_security.h",
-        "src/core/tsi/ssl_types.h",
-        "src/core/tsi/transport_security.c",
-        "src/core/tsi/transport_security.h",
-        "src/core/tsi/transport_security_interface.h",
     ],
     hdrs = [
         "include/grpc/byte_buffer.h",
@@ -391,7 +357,6 @@
         "include/grpc/census.h",
         "include/grpc/compression.h",
         "include/grpc/grpc.h",
-        "include/grpc/grpc_security.h",
         "include/grpc/impl/codegen/alloc.h",
         "include/grpc/impl/codegen/atm.h",
         "include/grpc/impl/codegen/atm_gcc_atomic.h",
@@ -451,13 +416,12 @@
         "include",
     ],
     deps = [
-        "//third_party/boringssl:ssl",
         "//third_party/zlib",
     ],
 )
 
 cc_library(
-    name = "grpc++",
+    name = "grpc++_unsecure",
     srcs = [
         "src/cpp/client/channel.cc",
         "src/cpp/client/client_context.cc",
@@ -467,19 +431,13 @@
         "src/cpp/client/credentials.cc",
         "src/cpp/client/generic_stub.cc",
         "src/cpp/client/insecure_credentials.cc",
-        "src/cpp/client/secure_credentials.cc",
-        "src/cpp/client/secure_credentials.h",
         "src/cpp/codegen/grpc_library.cc",
-        "src/cpp/common/auth_property_iterator.cc",
         "src/cpp/common/call.cc",
         "src/cpp/common/channel_arguments.cc",
         "src/cpp/common/completion_queue.cc",
         "src/cpp/common/create_auth_context.h",
+        "src/cpp/common/insecure_create_auth_context.cc",
         "src/cpp/common/rpc_method.cc",
-        "src/cpp/common/secure_auth_context.cc",
-        "src/cpp/common/secure_auth_context.h",
-        "src/cpp/common/secure_channel_arguments.cc",
-        "src/cpp/common/secure_create_auth_context.cc",
         "src/cpp/proto/proto_utils.cc",
         "src/cpp/server/async_generic_service.cc",
         "src/cpp/server/create_default_thread_pool.cc",
@@ -488,8 +446,6 @@
         "src/cpp/server/fixed_size_thread_pool.cc",
         "src/cpp/server/fixed_size_thread_pool.h",
         "src/cpp/server/insecure_server_credentials.cc",
-        "src/cpp/server/secure_server_credentials.cc",
-        "src/cpp/server/secure_server_credentials.h",
         "src/cpp/server/server.cc",
         "src/cpp/server/server_builder.cc",
         "src/cpp/server/server_context.cc",
@@ -576,13 +532,8 @@
         "include/grpc++/support/sync_stream.h",
         "include/grpc++/support/time.h",
     ],
-    includes = [
-        ".",
-        "include",
-    ],
     deps = [
-        ":grpc",
-        "//third_party/boringssl:ssl",
+        ":grpc_unsecure",
         "//third_party/protobuf:protobuf_clib",
     ],
 )
diff --git a/tools/build_rules/genproto.bzl b/tools/build_rules/genproto.bzl
index 1da0447..1dede57 100644
--- a/tools/build_rules/genproto.bzl
+++ b/tools/build_rules/genproto.bzl
@@ -100,7 +100,7 @@
       name = name,
       srcs = [basename + ".grpc.pb.cc", basename + ".pb.cc"],
       hdrs = [basename + ".grpc.pb.h", basename + ".pb.h"],
-      deps = [str(Label("//third_party/grpc:grpc++"))],
+      deps = [str(Label("//third_party/grpc:grpc++_unsecure"))],
       includes = ["."])
 
 # TODO(bazel-team): support proto => proto dependencies too