projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
489ec32
)
Allow the special ECMA key when parsing assembly names (bug#660570).
author
Paolo Molaro
<lupus@oddwiz.org>
Mon, 3 Jan 2011 14:35:48 +0000
(15:35 +0100)
committer
Paolo Molaro
<lupus@oddwiz.org>
Mon, 3 Jan 2011 15:01:09 +0000
(16:01 +0100)
mono/metadata/assembly.c
patch
|
blob
|
history
diff --git
a/mono/metadata/assembly.c
b/mono/metadata/assembly.c
index 9474f0d0f1b2115ba4d80b826a7be837105819aa..de79611af8d680f0e70e1a3119259063d6dda512 100644
(file)
--- a/
mono/metadata/assembly.c
+++ b/
mono/metadata/assembly.c
@@
-1647,7
+1647,15
@@
parse_public_key (const gchar *key, gchar** pubkey)
keylen = strlen (key) >> 1;
if (keylen < 1)
return FALSE;
-
+
+ /* allow the ECMA standard key */
+ if (strcmp (key, "00000000000000000400000000000000") == 0) {
+ if (pubkey) {
+ arr = g_strdup ("b77a5c561934e089");
+ *pubkey = arr;
+ }
+ return TRUE;
+ }
val = g_ascii_xdigit_value (key [0]) << 4;
val |= g_ascii_xdigit_value (key [1]);
switch (val) {