aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-07-01 00:51:31 +0000
committerLev Walkin <vlm@lionet.info>2004-07-01 00:51:31 +0000
commit7ccf2a44bcac5b32750b83f78968e1a78ceb2450 (patch)
tree781a2391f959adb05d11614a136b90f4fa41369f /libasn1fix
parentd64497cf36b0eb5be5485e6d863d89a72163658d (diff)
proper logging
Diffstat (limited to 'libasn1fix')
-rw-r--r--libasn1fix/asn1fix_constr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libasn1fix/asn1fix_constr.c b/libasn1fix/asn1fix_constr.c
index 2aa79827..4db233f6 100644
--- a/libasn1fix/asn1fix_constr.c
+++ b/libasn1fix/asn1fix_constr.c
@@ -71,6 +71,7 @@ asn1f_fix_constr_ext(arg_t *arg) {
v->Identifier = strdup("...");
v->expr_type = A1TC_EXTENSIBLE;
v->meta_type = AMT_TYPE;
+ v->_lineno = expr->_lineno; /* The best we can do */
if(v->Identifier == NULL) {
asn1p_expr_free(v);
r_value = -1;
@@ -302,6 +303,15 @@ _asn1f_compare_tags(arg_t *arg, asn1p_expr_t *a, asn1p_expr_t *b) {
b->Identifier,
b->_lineno
);
+ if((arg->mod->module_flags & MSF_EXTENSIBILITY_IMPLIED)
+ && (a->expr_type == A1TC_EXTENSIBLE)
+ && (b->expr_type == A1TC_EXTENSIBLE)) {
+ FATAL("The previous error is due to "
+ "improper use of "
+ "EXTENSIBILITY IMPLIED flag "
+ "of module %s",
+ arg->mod->Identifier);
+ }
return -1;
} else {
/* Tags are distinct */