Skip to content

Commit

Permalink
Various Windows Build Fixes
Browse files Browse the repository at this point in the history
* Fix keepassxreboot#1846, kdbx is registered to KeePassXC with
an icon (locked database icon)
* Fix keepassxreboot#2489, OpenSSL and Crypto libraries are packaged
to support https connections
* Fix minor typo in KeeShare (missing "?")
  • Loading branch information
droidmonkey authored and Jean-Christophe Vassort committed Feb 20, 2019
1 parent 2d183ed commit 6801c15
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions share/windows/icon.rc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
IDI_ICON1 ICON DISCARDABLE "keepassxc.ico"
IDI_KDBX ICON DISCARDABLE "keepassxc-kdbx.ico"
Binary file added share/windows/keepassxc-kdbx.ico
Binary file not shown.
7 changes: 7 additions & 0 deletions share/windows/wix-patch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
Name="KeePassXC" Icon="ProductIcon.ico"
WorkingDirectory="INSTALL_ROOT" Advertise="yes" />
</CPackWiXFragment>
<CPackWiXFragment Id="CM_CP_KeePassXC.exe">
<ProgId Id="KeePassXC.kdbx" Description="KeePass Password Database" Icon="CM_FP_KeePassXC.exe" IconIndex="1">
<Extension Id="kdbx" ContentType="application/x-keepass2">
<Verb Id="open" Command="open" TargetFile="CM_FP_KeePassXC.exe" Argument="&quot;%1&quot;"/>
</Extension>
</ProgId>
</CPackWiXFragment>
</CPackWiXPatch>
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,10 @@ if(MINGW)

# install CA cert chains
install(FILES ${Qt5_PREFIX}/ssl/certs/ca-bundle.crt DESTINATION "ssl/certs")
# install OpenSSL library
if(WITH_XC_NETWORKING)
find_library(OPENSSL_DLL NAMES libssl-1_1.dll libssl-1_1-x64.dll PATH_SUFFIXES bin)
find_library(CRYPTO_DLL NAMES libcrypto-1_1.dll libcrypto-1_1-x64.dll PATH_SUFFIXES bin)
install(FILES ${OPENSSL_DLL} ${CRYPTO_DLL} DESTINATION ".")
endif()
endif()
2 changes: 1 addition & 1 deletion src/keeshare/ShareObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ namespace
} else {
warning.setIcon(QMessageBox::Question);
warning.setWindowTitle(ShareObserver::tr("Import from container with certificate"));
warning.setText(ShareObserver::tr("Do you want to trust %1 with the fingerprint of %2 from %3")
warning.setText(ShareObserver::tr("Do you want to trust %1 with the fingerprint of %2 from %3?")
.arg(certificate.signer, certificate.fingerprint(), reference.path));
}
auto untrustedOnce = warning.addButton(ShareObserver::tr("Not this time"), QMessageBox::ButtonRole::NoRole);
Expand Down

0 comments on commit 6801c15

Please sign in to comment.