1 // Copyright 2017 Google Inc. 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 // 15 /////////////////////////////////////////////////////////////////////////////// 16 // This code was unceremoniously lifted from the version at 17 // github.com/google/lmctfy with a few minor modifications mainly to reduce the 18 // dependencies. 19 20 #ifndef TINK_UTIL_STATUS_H_ 21 #define TINK_UTIL_STATUS_H_ 22 23 #include "absl/status/status.h" 24 25 #define TINK_USE_ABSL_STATUS 26 27 namespace crypto { 28 namespace tink { 29 namespace util { 30 31 using Status = absl::Status; 32 33 // Returns an OK status, equivalent to a default constructed instance. OkStatus()34inline Status OkStatus() { return Status(); } 35 36 } // namespace util 37 } // namespace tink 38 } // namespace crypto 39 40 #endif // TINK_UTIL_STATUS_H_ 41