Jordan Rose
3e000a897f
Test post-validation of code-signed binaries
...
This gets more complicated, since binaries can be just code-signed, or
use both code signing and DSA keys, or be rotating keys for one or the
other.
The code signing test cases emulate certificate rotation by changing
the "identifier" for the bundle; the script used to sign each bundle
(with ad hoc signing) is included to support future expansion of
testing.
2020-06-16 21:13:39 +01:00
Jordan Rose
b969c31f07
Test SUUpdateValidator's post-validation logic
...
The actual tests here are the same as pre-validation; things only get
complicated when validating with code signing. The setup's a little
more involved though, since we need a supposedly-downloaded bundle to
do anything.
Also test invalid signatures, which are not always the same as absent
signatures.
2020-06-16 21:13:39 +01:00
Jordan Rose
299157c3e7
Start SUUpdateValidatorTest with prevalidation testing
2020-06-16 21:13:39 +01:00
Philippe Casgrain
3a8040ae2e
Fixed typo in sign_update usage
2020-06-16 13:19:43 +01:00
Philippe Casgrain
9a74b23f7f
Replaced deprecated method
...
-initWithBase64Encoding has been deprecated since OS X 10.9, and that
is our deployment target.
2020-06-16 13:19:43 +01:00
Kornel
0900d09ab3
Run swiftlint
2020-06-10 12:19:02 +01:00
Rajiv Shah
1755a3da05
Silence two warnings
2020-06-10 12:17:38 +01:00
Rajiv Shah
bb56b5b259
Run SwifLint autocorrect
2020-06-10 12:15:34 +01:00
Rajiv Shah
5df208336a
Copy SwiftLint config from master
2020-06-10 12:15:34 +01:00
Jordan Rose
50f754c21d
Don't treat a download prevalidation failure as a regular validation failure
...
You have to remember to invoke prevalidation anyway, so it doesn't
gain much for post-validation to check whether prevalidation failed.
Also, remove a no-longer correct comment from the corresponding
header.
2020-06-10 12:14:30 +01:00
Jordan Rose
8455216a58
Don't complain about pre-validated package installs
...
That's the normal way packages get installed in 2.x.
2020-06-10 12:14:30 +01:00
Jordan Rose
524761c50f
Remove -[SUPublicKeys isEqualToKey:]
...
It's been broken since 2018, and we suspect no one's using it anyway.
2020-06-10 12:14:30 +01:00
Jordan Rose
626ccc79c6
Update missing key messages to refer to EdDSA rather than DSA
2020-06-10 12:14:30 +01:00
Jordan Rose
a9ba760d6e
Rename generate_appcast briding header to match standard naming
2020-06-10 12:14:30 +01:00
Jordan Rose
9561b365af
Update signing self-check to look for EdDSA (like 14f1d352 on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
723e5d11be
Statically link libed25519.a everywhere that needs it.
2020-06-10 12:14:30 +01:00
Jordan Rose
19ef31b681
Use EdDSA keys in test app (like 9c4729ed on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
50d321a1a9
Now that we're close enough to 1.x, steal its implementation of SUSignatureVerifier.m and SUUpdateValidator.m wholesale.
2020-06-10 12:14:30 +01:00
Jordan Rose
55e0dc508c
Rename -[SUSignatureVerifier verifyStream:signatures:] to -verifyDSASignatureOfStream:signatures: (like b9150d2 on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
f6f4ac6925
Make SecKeyRef as needed (like 1006326 on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
2ace19e72b
Read SUPublicEDKey from plist (like 68856e0 in 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
cb12461be1
Separate prevalidation out of constructor (like 92e00ba on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
e7c828b332
Rename SUDSAVerifier to SUSignatureVerifier (like 98ea3e3 on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
5dbc53a8b8
Adopt SUPublicKeys (like c094a38 on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
5dc407ddc5
Switch the signature verifier to use SUSignatures (like 6df898f on 1.x)
2020-06-10 12:14:30 +01:00
Jordan Rose
261f5dc797
Push SUSignature through SUAppcastItem (like 8ad1f57 on 1.x)
2020-06-10 12:14:30 +01:00
Tony Arnold
25d394acda
Update the code signing verifier tests to match what is on master
2020-06-10 12:14:30 +01:00
Tony Arnold
401cd5f628
Add Xcode group for the command line tools
...
# Conflicts:
# Sparkle.xcodeproj/project.pbxproj
2020-06-10 12:14:30 +01:00
Tony Arnold
ddc8fac6c6
Add sign_update command line tool
...
This code has been ported directly from `master`.
Co-authored-by: Kornel Lesiński <github@pornel.net >
# Conflicts:
# Sparkle.xcodeproj/project.pbxproj
2020-06-10 12:14:30 +01:00
Tony Arnold
da573aa9ab
Add generate_keys command line tool
...
This code has been ported directly from `master`.
Co-authored-by: Kornel Lesiński <github@pornel.net >
# Conflicts:
# Sparkle.xcodeproj/project.pbxproj
2020-06-10 12:14:30 +01:00
Tony Arnold
8b40e22432
Update generate_appcast command line tool to support ed25519 signatures
...
This code has been ported directly from `master`.
Co-authored-by: Kornel Lesiński <github@pornel.net >
# Conflicts:
# Sparkle.xcodeproj/project.pbxproj
2020-06-10 12:14:30 +01:00
Tony Arnold
93a8aca7fd
Add ed25519 as a static library to the project
...
# Conflicts:
# Sparkle.xcodeproj/project.pbxproj
2020-06-10 12:14:30 +01:00
Tony Arnold
63aa96a076
Look up the path for the System Applications directory, as it is not a single directory on macOS Catalina
2020-06-10 12:14:29 +01:00
Kornel
7b13157dce
Merge pull request #1598 from rajivshah3/fix/2.x/ci
...
2.x: Fix CI tests
2020-05-27 11:44:59 +01:00
Rajiv Shah
aa9e05958d
Fix SUCodeSigningVerifierTest on macOS 10.15
...
Pre-installed apps, such as Calculator, are now installed under the System folder
2020-05-26 17:36:42 -04:00
Rajiv Shah
58fff9732e
Copy new Travis CI config from master
2020-05-26 17:31:02 -04:00
Kornel
9c8fef56e3
Merge pull request #1592 from R4N/fullscreen-alert-fix-v2
2020-05-15 20:39:17 +01:00
Micah Moore
0e0b87afd4
Sets UpdateAlert and UpdatePermissionPrompt window's fullscreen collectionBehavior to NSWindowCollectionBehaviorFullScreenAuxiliary to allow them to present on top of the Main App's window if it's fullscreen.
2020-05-15 14:15:11 -04:00
Kornel
b8f87f1702
Merge pull request #1584 from ksuther/fix-warnings
2020-05-05 14:14:33 +01:00
Kent Sutherland
32db72a2fc
Fix format warning
2020-05-04 19:03:07 -05:00
Kent Sutherland
f83f29193b
Remove __attribute__((noreturn)) since these methods no longer abort
2020-05-04 19:02:56 -05:00
Kent Sutherland
93cff25e6f
Remove @import from framework headers
...
Xcode 11.4 turns on -Watimport-in-framework-header by default which causes this to warn
2020-05-04 19:02:41 -05:00
Kornel
f886459367
Merge pull request #1567 from panicinc/merge/app-translocation
...
Adding support for detecting App Translocation and showing an error
2020-03-27 14:33:41 +00:00
Logan Collins
54e663085b
Adding support for detecting App Translocation and showing an error, originally from #1392 .
2020-03-26 14:58:59 -07:00
Kornel
80627a4946
Merge pull request #1566 from bdkjones/2.x
...
Better Appcast Errors
2020-03-26 12:20:41 +00:00
Bryan Jones
ba8dd4d010
Better Appcast Errors
...
Removes extra layer of UserInfo dictionary, exposing underlying errors to implementors.
2020-03-25 23:21:05 -07:00
Kornel
5270fe0f51
Merge pull request #1557 from martinsp/fix-2.x-build
...
Fixes `make release` for 2.x
2020-03-07 01:21:10 +00:00
Martins Polakovs
03ab0b72a6
Fixes make release
2020-03-06 22:22:55 +02:00
Kornel
931f7855f7
Merge pull request #1554 from philippec/fix-build-2.x
...
Fixed build issue
2020-02-21 10:35:35 +00:00
Philippe Casgrain
a10a99ce1a
Fixed build issue
...
Added missing semi-colon that prevented a `make release` build.
2020-02-20 22:59:44 -05:00