blob: cf75c439f077703ae62b9e2e305b5bc813eac3fd [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COBALT_SRC_LIB_CRYPTO_UTIL_ERRORS_H_
#define COBALT_SRC_LIB_CRYPTO_UTIL_ERRORS_H_
#include <string>
namespace cobalt {
namespace crypto {
// Returns the error message corresponding to the last error from the
// this crypto library that occurred on this thread. After
// each call to a method from this library the result code should be
// checked. A result of one indicates success and zero indicates failure.
// When a zero is returned this function may be invoked to obtain a
// human-readable description of the error.
std::string GetLastErrorMessage();
} // namespace crypto
} // namespace cobalt
#endif // COBALT_SRC_LIB_CRYPTO_UTIL_ERRORS_H_