blob: 98bfc0a0fa03ec942068e5867bbe731d0ca7ccb2 [file] [log] [blame]
Jan Tattermusch7897ae92017-06-07 22:57:36 +02001# Copyright 2015 gRPC authors.
nnoble097ef9b2014-12-01 17:06:10 -08002#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003# 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
nnoble097ef9b2014-12-01 17:06:10 -08006#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02007# http://www.apache.org/licenses/LICENSE-2.0
nnoble097ef9b2014-12-01 17:06:10 -08008#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009# 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.
nnoble097ef9b2014-12-01 17:06:10 -080014
murgatroid9900450af2016-01-05 15:13:08 -080015ssl_roots_path = File.expand_path('../../../../etc/roots.pem', __FILE__)
murgatroid99b5703222015-12-18 13:05:34 -080016
murgatroid9979108d02016-04-22 13:41:00 -070017require_relative 'grpc/errors'
18require_relative 'grpc/grpc'
19require_relative 'grpc/logconfig'
20require_relative 'grpc/notifier'
21require_relative 'grpc/version'
22require_relative 'grpc/core/time_consts'
23require_relative 'grpc/generic/active_call'
24require_relative 'grpc/generic/client_stub'
25require_relative 'grpc/generic/service'
26require_relative 'grpc/generic/rpc_server'
murgatroid999e3538c2016-04-28 13:27:19 -070027
28begin
29 file = File.open(ssl_roots_path)
30 roots = file.read
31 GRPC::Core::ChannelCredentials.set_default_roots_pem roots
32ensure
33 file.close
34end