blob: f193a5187b54ca4fcb6ae2dc04315301d5855941 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BSSL_FILLINS_OPENSSL_UTIL_H
#define BSSL_FILLINS_OPENSSL_UTIL_H
#include <openssl/base.h>
#include <string>
namespace bssl {
namespace fillins {
// Place an instance of this class on the call stack to automatically clear
// the OpenSSL error stack on function exit.
class OPENSSL_EXPORT OpenSSLErrStackTracer {
public:
OpenSSLErrStackTracer();
~OpenSSLErrStackTracer();
};
} // namespace fillins
} // namespace bssl
#endif // BSSL_FILLINS_OPENSSL_UTIL_H