deskflow/src/lib/net/SecureUtils.h

25 lines
677 B
C
Raw Normal View History

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
* SPDX-FileCopyrightText: (C) 2021 Barrier Contributors
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
2025-01-29 02:15:50 +00:00
#include <stdint.h>
#include <string>
2025-01-29 02:15:50 +00:00
#include <vector>
namespace deskflow {
2025-01-29 02:15:50 +00:00
/**
* @brief formatSSLFingerprint Format an ssl Fingerprint
* @param fingerprint input string
* @param enableSeparators insert : seperator every byte when true
* @return a Formated Fingerprint String
*/
2025-01-29 02:15:50 +00:00
std::string formatSSLFingerprint(const std::vector<uint8_t> &fingerprint, bool enableSeparators = true);
} // namespace deskflow