blob: 8d692429e1c535645e90735bf9ac0e848c6e2739 [file] [log] [blame]
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -08001/*
2 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003 * Copyright 2015 gRPC authors.
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -08004 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -08008 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009 * http://www.apache.org/licenses/LICENSE-2.0
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080010 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +020011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080016 *
17 */
18
David Garcia Quintase1300de2016-01-27 18:41:26 -080019#include <grpc++/impl/grpc_library.h>
Julien Boeuf5be92a32015-08-28 16:28:18 -070020#include <grpc++/security/credentials.h>
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080021
22namespace grpc {
23
David Garcia Quintasd79ef3a2016-01-28 00:21:27 -080024static internal::GrpcLibraryInitializer g_gli_initializer;
25ChannelCredentials::ChannelCredentials() { g_gli_initializer.summon(); }
David Garcia Quintase1300de2016-01-27 18:41:26 -080026
Julien Boeuf54a902e2015-10-12 13:26:21 -070027ChannelCredentials::~ChannelCredentials() {}
28
David Garcia Quintasd79ef3a2016-01-28 00:21:27 -080029CallCredentials::CallCredentials() { g_gli_initializer.summon(); }
David Garcia Quintase1300de2016-01-27 18:41:26 -080030
Julien Boeuf54a902e2015-10-12 13:26:21 -070031CallCredentials::~CallCredentials() {}
Nicolas Nobleb7ebd3b2014-11-26 16:33:03 -080032
Craig Tiller190d3602015-02-18 09:23:38 -080033} // namespace grpc