File tree 1 file changed +1
-12
lines changed
SoundSwitch/Framework/Updater
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 12
12
* GNU General Public License for more details.
13
13
********************************************************************/
14
14
15
- using System ;
16
- using System . Linq ;
17
- using System . Security . Cryptography . X509Certificates ;
18
15
using AuthenticodeExaminer ;
19
16
20
17
namespace SoundSwitch . Framework . Updater
21
18
{
22
19
public static class SignatureChecker
23
20
{
24
- private static readonly string _certumSubject = "[email protected] , CN=\" Open Source Developer, Antoine Aflalo\" , O=Open Source Developer, S=Quebec, C=CA" ;
25
-
26
21
/// <summary>
27
22
/// Does the given file have the right signature
28
23
/// </summary>
29
24
/// <param name="filename"></param>
30
25
/// <returns></returns>
31
26
public static bool IsValid ( string filename )
32
- {
33
- return IsCertumSigned ( filename ) ;
34
- }
35
-
36
- private static bool IsCertumSigned ( string filename )
37
27
{
38
28
var inspector = new FileInspector ( filename ) ;
39
- return inspector . Validate ( ) == SignatureCheckResult . Valid
40
- && inspector . GetSignatures ( ) . FirstOrDefault ( signature => signature . SigningCertificate . Subject == _certumSubject ) != null ;
29
+ return inspector . Validate ( ) == SignatureCheckResult . Valid ;
41
30
}
42
31
}
43
32
}
You can’t perform that action at this time.
0 commit comments