#include "cast/receiver/channel/device_auth_namespace_handler.h"
#include <openssl/evp.h>
#include <memory>
#include <utility>
#include "cast/common/certificate/cast_cert_validator.h"
#include "cast/common/channel/message_util.h"
#include "cast/common/channel/proto/cast_channel.pb.h"
#include "cast/common/channel/virtual_connection.h"
#include "cast/common/channel/virtual_connection_router.h"
#include "platform/base/tls_credentials.h"
#include "util/crypto/digest_sign.h"
namespace openscreen::cast {
AuthChallenge;
AuthError;
AuthResponse;
CastMessage;
DeviceAuthMessage;
HashAlgorithm;
SignatureAlgorithm;
namespace {
CastMessage GenerateErrorMessage(AuthError::ErrorType error_type) { … }
}
DeviceAuthNamespaceHandler::CredentialsProvider::~CredentialsProvider() =
default;
DeviceAuthNamespaceHandler::DeviceAuthNamespaceHandler(
CredentialsProvider& creds_provider)
: … { … }
DeviceAuthNamespaceHandler::~DeviceAuthNamespaceHandler() = default;
void DeviceAuthNamespaceHandler::OnMessage(VirtualConnectionRouter* router,
CastSocket* socket,
CastMessage message) { … }
}