projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[System] Fixes failing tests on mobile
[mono.git]
/
mcs
/
tools
/
security
/
sn.cs
diff --git
a/mcs/tools/security/sn.cs
b/mcs/tools/security/sn.cs
index c84505d30ab9a745dd37c4971c575e1698974969..8dac86944b2232d8a52fc137077813b46b8d7d38 100644
(file)
--- a/
mcs/tools/security/sn.cs
+++ b/
mcs/tools/security/sn.cs
@@
-126,7
+126,7
@@
namespace Mono.Tools {
return new StrongName (data).RSA;
}
catch {
return new StrongName (data).RSA;
}
catch {
- if (data [0] != 0x30)
+ if (data
.Length == 0 || data
[0] != 0x30)
throw;
// this could be a PFX file
Console.Write ("Enter password for private key (will be visible when typed): ");
throw;
// this could be a PFX file
Console.Write ("Enter password for private key (will be visible when typed): ");
@@
-195,7
+195,7
@@
namespace Mono.Tools {
return signed;
}
return signed;
}
- Console.WriteLine ("Couldn't sign the assembly {0} with this key pair.", assemblyName);
+ Console.WriteLine ("Couldn't sign the assembly {0} with this key pair.
Public key of assembly did not match signing public key.
", assemblyName);
return false;
}
return false;
}