summaryrefslogtreecommitdiff
path: root/postprocess/signing/signing.pl
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-12-07 09:18:42 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-12-07 09:18:54 +0100
commit549b5d030ab60dbf6d0279634b22702e70078dd8 (patch)
treee028af6c0139c9c1797763e0c2e83ce13202e432 /postprocess/signing/signing.pl
parentb66e034904c7d5b0aa60170240deebc84811aa16 (diff)
Allow signing of dlls and exes with default certificate without password
Change-Id: Ic39276df49cb317936baf7956dd74a1a7f42cbff
Diffstat (limited to 'postprocess/signing/signing.pl')
-rw-r--r--postprocess/signing/signing.pl14
1 files changed, 5 insertions, 9 deletions
diff --git a/postprocess/signing/signing.pl b/postprocess/signing/signing.pl
index 846ac0075793..6f8b26aee2cd 100644
--- a/postprocess/signing/signing.pl
+++ b/postprocess/signing/signing.pl
@@ -47,7 +47,7 @@ if ( $#ARGV < 2 ) {
exit(1);
}
@args = parse_options();
-get_exclude_files();
+get_exclude_files() if ($opt_exclude != "");
@files_to_sign = get_files(\@args);
if ( $opt_log ) { # logging
open(LOG,">$opt_log") || die "Can't open log file $opt_log\n";
@@ -78,11 +78,6 @@ sub parse_options #09.07.2007 08:13
usage();
exit(1);
}
- if ( !$opt_exclude || !$opt_pfxfile || !$opt_pass || !$opt_timestamp_url) {
- print "ERROR: Parameter missing!\n!";
- usage();
- exit(1);
- }
return @ARGV;
} ##parse_options
@@ -142,8 +137,6 @@ sub sign_files #09.07.2007 10:36
my $file = "";
my $result = "";
- print_error("Can't open PFX file: $opt_pfxfile\n") if ( ! -e $opt_pfxfile );
- print_error("Password is empty\n") if ( !$opt_pass );
if ( $opt_pass =~ /\.exe$/ ) {
# get password by tool
open(PIPE, "$opt_pass 2>&1 |") || die "Can't open PIPE!\n";
@@ -153,7 +146,10 @@ sub sign_files #09.07.2007 10:36
$opt_pass = $pass;
}
$signtool .= " -v" if ($opt_verbose);
- $commandline_base = $signtool . " " . "-f $opt_pfxfile -p $opt_pass -t $opt_timestamp_url";
+ $commandline_base = $signtool;
+ $commandline_base .= " -f $opt_pfxfile" if ($opt_pfxfile != "");
+ $commandline_base .= " -p $opt_pass" if ($opt_pass != "");
+ $commandline_base .= " -t $opt_timestamp_url" if ($opt_timestamp_url != "");
# Here switch between:
# one command line for muliple files (all doesn't work, too much) / for each file one command line