mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[PR #1343] [MERGED] Add support for SHA256 fingerprints #1782
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1782
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/debauchee/barrier/pull/1343
Author: @p12tic
Created: 11/1/2021
Status: ✅ Merged
Merged: 11/1/2021
Merged by: @p12tic
Base:
master← Head:sha256-fingerprints📝 Commits (10+)
0e406d4lib/net: Extract fingerprint formatting out of SecureSocket7f71924lib/net: Make format_ssl_fingerprint() easier to use96e0021lib/base: Make to_hex() easier to use9d8e1fatest: Add test for format_ssl_fingerprint()767f3d3test: Extract common test utilities to separate filea9b3095lib: Add utility function to convert from hex to binaryb793675lib/net: Put secure utils into barrier namespaceef08470src/lib: Use standard std::vsnprintf() instead of hacking our owncd7e731lib: Switch to std::vectorstd::uint8_t for fingerprint data8548692lib/base: Implement pattern to execute something at function exit📊 Changes
41 files changed (+1329 additions, -602 deletions)
View changed files
📝
CMakeLists.txt(+0 -1)➕
doc/newsfragments/dont-use-openssl-cli.bugfix(+1 -0)➕
doc/newsfragments/fingerprint-randomart.feature(+3 -0)➕
doc/newsfragments/sha256-fingerprints.bugfix(+4 -0)📝
res/config.h.in(+0 -3)➖
res/openssl/barrier.conf(+0 -65)📝
src/gui/CMakeLists.txt(+1 -3)➖
src/gui/src/Fingerprint.cpp(+0 -147)➖
src/gui/src/Fingerprint.h(+0 -42)📝
src/gui/src/MainWindow.cpp(+94 -12)📝
src/gui/src/MainWindow.h(+3 -0)📝
src/gui/src/MainWindowBase.ui(+83 -17)📝
src/gui/src/SslCertificate.cpp(+31 -137)📝
src/gui/src/SslCertificate.h(+2 -2)📝
src/lib/arch/IArchString.h(+0 -10)📝
src/lib/arch/unix/ArchStringUnix.cpp(+0 -1)➖
src/lib/arch/vsnprintf.h(+0 -67)📝
src/lib/arch/win32/ArchStringWindows.cpp(+0 -5)📝
src/lib/base/Log.cpp(+1 -1)📝
src/lib/base/String.cpp(+68 -6)...and 21 more files
📄 Description
SHA1 fingerprints are no longer state of the art, switch to verifying SHA256 fingerprints.
For the time being both SHA1 and SHA256 fingerprints are shown in the UI. This allows users to verify new connections between old and new versions of Barrier. After the verification is done we store SHA256 fingerprint in our internal fingerprint database and use only that for identifying all future connections from that client.
The issue has been reported by Matthias Gerstner mgerstner@suse.de @mgerstner.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.