#ifndef CAST_COMMON_CERTIFICATE_BORINGSSL_UTIL_H_
#define CAST_COMMON_CERTIFICATE_BORINGSSL_UTIL_H_
#include <openssl/evp.h>
#include <openssl/x509v3.h>
#include "cast/common/public/certificate_types.h"
#include "platform/base/error.h"
#include "platform/base/span.h"
namespace openscreen::cast {
bool VerifySignedData(const EVP_MD* digest,
EVP_PKEY* public_key,
const ByteView& data,
const ByteView& signature);
ErrorOr<DateTime> GetNotBeforeTime(X509* cert);
ErrorOr<DateTime> GetNotAfterTime(X509* cert);
}
#endif