Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
21420334
Commit
21420334
authored
Apr 07, 2013
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed useless clyx2asn1 conversion
parent
101c26db
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
55 deletions
+2
-55
examples/Makefile.am
examples/Makefile.am
+1
-1
examples/Makefile.in
examples/Makefile.in
+1
-1
examples/README
examples/README
+0
-2
examples/clyx2asn1.pl
examples/clyx2asn1.pl
+0
-51
No files found.
examples/Makefile.am
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
=
\
...
...
examples/Makefile.in
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
\
...
...
examples/README
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).
...
...
examples/clyx2asn1.pl
deleted
100755 → 0
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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment