Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
qwebaby3
asn1c
Commits
21420334
Commit
21420334
authored
11 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
removed useless clyx2asn1 conversion
parent
101c26db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
examples/Makefile.am
+1
-1
1 addition, 1 deletion
examples/Makefile.am
examples/Makefile.in
+1
-1
1 addition, 1 deletion
examples/Makefile.in
examples/README
+0
-2
0 additions, 2 deletions
examples/README
examples/clyx2asn1.pl
+0
-51
0 additions, 51 deletions
examples/clyx2asn1.pl
with
2 additions
and
55 deletions
examples/Makefile.am
+
1
−
1
View file @
21420334
dist_bin_SCRIPTS
=
crfc2asn1.pl
clyx2asn1.pl
dist_bin_SCRIPTS
=
crfc2asn1.pl
ASN1_SOURCE_1
=
rfc3280.txt
ASN1_SOURCE_1
=
rfc3280.txt
ASN1_FILES_1
=
\
ASN1_FILES_1
=
\
...
...
This diff is collapsed.
Click to expand it.
examples/Makefile.in
+
1
−
1
View file @
21420334
...
@@ -189,7 +189,7 @@ target_alias = @target_alias@
...
@@ -189,7 +189,7 @@ target_alias = @target_alias@
top_build_prefix
=
@top_build_prefix@
top_build_prefix
=
@top_build_prefix@
top_builddir
=
@top_builddir@
top_builddir
=
@top_builddir@
top_srcdir
=
@top_srcdir@
top_srcdir
=
@top_srcdir@
dist_bin_SCRIPTS
=
crfc2asn1.pl
clyx2asn1.pl
dist_bin_SCRIPTS
=
crfc2asn1.pl
ASN1_SOURCE_1
=
rfc3280.txt
ASN1_SOURCE_1
=
rfc3280.txt
ASN1_FILES_1
=
\
ASN1_FILES_1
=
\
rfc3280-PKIX1Explicit88.asn1
\
rfc3280-PKIX1Explicit88.asn1
\
...
...
This diff is collapsed.
Click to expand it.
examples/README
+
0
−
2
View file @
21420334
...
@@ -25,8 +25,6 @@ This directory contains a few examples.
...
@@ -25,8 +25,6 @@ This directory contains a few examples.
UserPlane Location Protocol decoder. Before trying to compile, read the
UserPlane Location Protocol decoder. Before trying to compile, read the
README file in that directory.
README file in that directory.
The clyx2asn1.pl script can be used to extract ASN.1 data from LyX editor files.
The crfc2asn1.pl script can be used to extract ASN.1 data from RFC texts.
The crfc2asn1.pl script can be used to extract ASN.1 data from RFC texts.
For instance, it is used to extract X.509, MEGACO, and LDAPv3 ASN.1 modules
For instance, it is used to extract X.509, MEGACO, and LDAPv3 ASN.1 modules
from the corresponding RFC texts (rfc3280.txt, rfc3525.txt, rfc4211.txt).
from the corresponding RFC texts (rfc3280.txt, rfc3525.txt, rfc4211.txt).
...
...
This diff is collapsed.
Click to expand it.
examples/clyx2asn1.pl
deleted
100755 → 0
+
0
−
51
View file @
101c26db
#!/usr/bin/env perl
#
# $Id$
# $Author$
#
# Simple tool to extract known ASN.1 modules from the stream of LyX data.
#
if
(
$#ARGV
==
-
1
)
{
print
STDERR
"
Extract known modules from LyX data
\n
";
print
STDERR
"
Usage: cat *.lyx | $0 <ASN-Module-Name> ...
\n
";
exit
64
;
}
# Convert arguments into a hash for quicker search.
for
(
my
$i
;
$i
<=
$#ARGV
;
$i
++
)
{
$modules
{
$ARGV
[
$i
]}
=
$ARGV
[
$i
]
.
"
.asn1
";
}
# Process incoming stream in search for ASN.1 modules.
while
(
<
STDIN
>
)
{
chop
;
if
(
$inmodule
)
{
next
if
(
/^$/
);
if
(
/^\\layout /
)
{
print
O
"
\n
";
next
;
}
if
(
/^\\begin_inset Quotes/
)
{
print
O
'
"
';
next
;
}
next
if
(
/^\\/
);
print
O
;
if
(
/^END$/
)
{
$inmodule
=
0
;
print
O
"
\n
";
}
}
else
{
/^([A-Za-z0-9-]+)(\s*{.*)?$/
;
next
unless
$modules
{
$
1
};
open
(
O
,
'
>
'
.
$modules
{
$
1
});
print
O
;
$inmodule
=
1
;
delete
$modules
{
$
1
};
}
}
# Make sure noone's missing.
die
"
Modules not found:
"
.
join
("
,
",
keys
%modules
)
.
"
\n
"
if
keys
%modules
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment