mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-06-03 08:38:57 -04:00
Fix code signing identity retrieval bug
This commit is contained in:
parent
c435d5ab50
commit
c6d22eff5c
2 changed files with 4 additions and 2 deletions
|
@ -72,7 +72,8 @@ struct SettingsDiskImagesView: View {
|
||||||
status == noErr,
|
status == noErr,
|
||||||
let certificate: SecCertificate = certificate,
|
let certificate: SecCertificate = certificate,
|
||||||
let subject: String = SecCertificateCopySubjectSummary(certificate) as? String,
|
let subject: String = SecCertificateCopySubjectSummary(certificate) as? String,
|
||||||
subject.hasPrefix("Developer ID Application") else {
|
subject.hasPrefix("Developer ID Application"),
|
||||||
|
!codesigningIdentities.contains(subject) else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,8 @@ struct SettingsPackagesView: View {
|
||||||
status == noErr,
|
status == noErr,
|
||||||
let certificate: SecCertificate = certificate,
|
let certificate: SecCertificate = certificate,
|
||||||
let subject: String = SecCertificateCopySubjectSummary(certificate) as? String,
|
let subject: String = SecCertificateCopySubjectSummary(certificate) as? String,
|
||||||
subject.hasPrefix("Developer ID Installer") else {
|
subject.hasPrefix("Developer ID Installer"),
|
||||||
|
!codesigningIdentities.contains(subject) else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue