aboutsummaryrefslogtreecommitdiffstats
path: root/examples/crfc2asn1.pl
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2014-09-11 01:28:57 -0700
committerLev Walkin <vlm@lionet.info>2014-09-11 01:28:57 -0700
commite0d321a6502c3a3f567f16430bfa94cdefc63a53 (patch)
tree3e34ef803f182f5a1a3b8ca0469e4bce4e7a7552 /examples/crfc2asn1.pl
parent5809ec65dd1b76b4f7bbd1c08ba93665a7a3b847 (diff)
version 0.9.26
Diffstat (limited to 'examples/crfc2asn1.pl')
-rwxr-xr-xexamples/crfc2asn1.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/crfc2asn1.pl b/examples/crfc2asn1.pl
index d9c8c861..aaf09200 100755
--- a/examples/crfc2asn1.pl
+++ b/examples/crfc2asn1.pl
@@ -36,7 +36,7 @@ while(<>) {
my $modName = ''; # ASN.1 module name
my $rfcid = '';
- $rfcid = $1 . '-' if($ARGV =~ /([a-z0-9]+)/i);
+ $rfcid = $1 . '-' if($ARGV =~ /([a-z0-9]+)\.[^.]+$/i);
if(/^[ \t]*([A-Z][A-Za-z0-9-]*).*DEFINITIONS.*::=/) {
$modName = $1;
@@ -100,10 +100,10 @@ while(<>) {
}
#
- # The following clauses are primarily designed to make
- # asn1c command-line easier (i.e., to avoid "-ftypes88").
+ # The following clauses are primarily designed to simplify
+ # asn1c tool behavior.
# You may want to get rid of them if you're doing generic
- # ASN.1 extraction and do not want to alter the ASN.1 specs.
+ # ASN.1 extraction and do not want to alter the ASN.1 specs at all.
#
if(
/^([ \t]*)((UniversalString|BMPString|UTF8String)\s+::=\s+\[[A-Z]+\s\d+\]\sIMPLICIT\sOCTET\sSTRING)(.*)$/ms
@@ -113,7 +113,7 @@ while(<>) {
next;
} elsif(/delete following line if \"new\" types are supported/) {
print;
- print "/* Legacy stuff deleted by $0:\n";
+ print "/* Legacy constructs deleted by $0:\n";
$_ = <>;
print;
print " */\n";