Merge pull request #13525 from vjpai/desecure

Remove unnecessary secure dependences
pull/13534/head
Vijay Pai 7 years ago committed by GitHub
commit 80453cbd38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      BUILD
  2. 4
      bazel/cc_grpc_library.bzl
  3. 4
      examples/BUILD
  4. 24
      tools/run_tests/sanity/check_unsecure.sh
  5. 1
      tools/run_tests/sanity/sanity_tests.yaml

@ -418,7 +418,6 @@ grpc_cc_library(
], ],
external_deps = [ external_deps = [
"nanopb", "nanopb",
"libssl",
], ],
language = "c++", language = "c++",
public_hdrs = [ public_hdrs = [

@ -60,10 +60,10 @@ def cc_grpc_library(name, srcs, deps, proto_only, well_known_protos, generate_mo
if use_external: if use_external:
# when this file is used by non-grpc projects # when this file is used by non-grpc projects
grpc_deps = ["//external:grpc++", "//external:grpc++_codegen_proto", grpc_deps = ["//external:grpc++_codegen_proto",
"//external:protobuf"] "//external:protobuf"]
else: else:
grpc_deps = ["//:grpc++", "//:grpc++_codegen_proto", "//external:protobuf"] grpc_deps = ["//:grpc++_codegen_proto", "//external:protobuf"]
native.cc_library( native.cc_library(
name = name, name = name,

@ -42,12 +42,12 @@ cc_binary(
name = "greeter_client", name = "greeter_client",
srcs = ["cpp/helloworld/greeter_client.cc"], srcs = ["cpp/helloworld/greeter_client.cc"],
defines = ["BAZEL_BUILD"], defines = ["BAZEL_BUILD"],
deps = [":helloworld"], deps = [":helloworld", "//:grpc++"],
) )
cc_binary( cc_binary(
name = "greeter_server", name = "greeter_server",
srcs = ["cpp/helloworld/greeter_server.cc"], srcs = ["cpp/helloworld/greeter_server.cc"],
defines = ["BAZEL_BUILD"], defines = ["BAZEL_BUILD"],
deps = [":helloworld"], deps = [":helloworld", "//:grpc++"],
) )

@ -0,0 +1,24 @@
#!/bin/sh
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
# Make sure that there is no path from a known unsecure target
# to an SSL library
test `bazel query "somepath(//test/cpp/microbenchmarks:helpers, //external:libssl)" 2>/dev/null | wc -l` -eq 0
# Fall through with the exit code of that command

@ -6,6 +6,7 @@
- script: tools/run_tests/sanity/check_submodules.sh - script: tools/run_tests/sanity/check_submodules.sh
- script: tools/run_tests/sanity/check_test_filtering.py - script: tools/run_tests/sanity/check_test_filtering.py
- script: tools/run_tests/sanity/check_tracer_sanity.py - script: tools/run_tests/sanity/check_tracer_sanity.py
- script: tools/run_tests/sanity/check_unsecure.sh
- script: tools/run_tests/sanity/core_banned_functions.py - script: tools/run_tests/sanity/core_banned_functions.py
- script: tools/run_tests/sanity/core_untyped_structs.sh - script: tools/run_tests/sanity/core_untyped_structs.sh
- script: tools/buildgen/generate_projects.sh -j 3 - script: tools/buildgen/generate_projects.sh -j 3

Loading…
Cancel
Save