2025-01-29 01:13:02 +00:00
|
|
|
/*
|
|
|
|
|
* 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>
|
2025-01-29 01:13:02 +00:00
|
|
|
#include <string>
|
2025-01-29 02:15:50 +00:00
|
|
|
#include <vector>
|
2025-01-29 01:13:02 +00:00
|
|
|
|
|
|
|
|
namespace deskflow {
|
|
|
|
|
|
2025-01-29 02:15:50 +00:00
|
|
|
/**
|
2025-01-29 01:13:02 +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);
|
2025-01-29 01:13:02 +00:00
|
|
|
|
|
|
|
|
} // namespace deskflow
|