• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2024 the gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15licenses(["notice"])
16
17cc_library(
18    name = "helper",
19    srcs = ["helper.cc"],
20    hdrs = ["helper.h"],
21)
22
23cc_binary(
24    name = "ssl_client",
25    srcs = ["ssl_client.cc"],
26    data = [
27        "credentials/root.crt",
28    ],
29    defines = ["BAZEL_BUILD"],
30    deps = [
31        ":helper",
32        "//:grpc++",
33        "//examples/protos:helloworld_cc_grpc",
34        "@com_google_absl//absl/flags:flag",
35        "@com_google_absl//absl/flags:parse",
36    ],
37)
38
39cc_binary(
40    name = "ssl_server",
41    srcs = ["ssl_server.cc"],
42    data = [
43        "credentials/localhost.crt",
44        "credentials/localhost.key",
45    ],
46    defines = ["BAZEL_BUILD"],
47    deps = [
48        ":helper",
49        "//:grpc++",
50        "//examples/protos:helloworld_cc_grpc",
51        "@com_google_absl//absl/flags:flag",
52        "@com_google_absl//absl/flags:parse",
53    ],
54)
55