upgrade
diff --git a/libasn1parser/asn1p_y.y b/libasn1parser/asn1p_y.y
index 812b2d8..b070f2a 100644
--- a/libasn1parser/asn1p_y.y
+++ b/libasn1parser/asn1p_y.y
@@ -575,9 +575,8 @@
*/
| BasicString {
return yyerror(
- "Attempt to redefine a standard basic type, "
- "use -ftypesXY to switch back "
- "to older version of ASN.1 standard");
+ "Attempt to redefine a standard basic string type, "
+ "please comment out or remove this type redefinition.");
}
;
@@ -1944,7 +1943,7 @@
Marker:
TOK_OPTIONAL {
- $$.flags = EM_OPTIONAL;
+ $$.flags = EM_OPTIONAL | EM_INDIRECT;
$$.default_value = 0;
}
| TOK_DEFAULT Value {