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
fe4e047e
Commit
fe4e047e
authored
Sep 04, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Ieee1609Dot2Data example
parent
c280c804
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
examples/sample.makefile.regen
examples/sample.makefile.regen
+5
-5
examples/sample.source.1609.2/Makefile
examples/sample.source.1609.2/Makefile
+7
-7
examples/sample.source.1609.2/sample-Ieee1609Dot2Data-1.coer
examples/sample.source.1609.2/sample-Ieee1609Dot2Data-1.coer
+0
-0
No files found.
examples/sample.makefile.regen
View file @
fe4e047e
...
@@ -73,7 +73,7 @@ set +x
...
@@ -73,7 +73,7 @@ set +x
echo
'check-ber:'
echo
'check-ber:'
echo
" @if test -f sample-
${
ASN1PDU
}
-1.[db]er ; then
\\
"
echo
" @if test -f sample-
${
ASN1PDU
}
-1.[db]er ; then
\\
"
echo
" for f in sample-*-*.[db]er; do
\\
"
echo
" for f in sample-*-*.[db]er; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z
0-9
-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \'
echo
' echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \'
echo
' ./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \'
...
@@ -88,7 +88,7 @@ set +x
...
@@ -88,7 +88,7 @@ set +x
echo
'check-xer:'
echo
'check-xer:'
echo
" @if test -f sample-
${
ASN1PDU
}
-1.xer ; then
\\
"
echo
" @if test -f sample-
${
ASN1PDU
}
-1.xer ; then
\\
"
echo
" for f in sample-*-*.xer; do
\\
"
echo
" for f in sample-*-*.xer; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z
0-9
-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \'
echo
' echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \'
echo
' ./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
...
@@ -103,7 +103,7 @@ set +x
...
@@ -103,7 +103,7 @@ set +x
echo
'check-oer:'
echo
'check-oer:'
echo
" @if test -f sample-
${
ASN1PDU
}
-1.*oer ; then
\\
"
echo
" @if test -f sample-
${
ASN1PDU
}
-1.*oer ; then
\\
"
echo
" for f in sample-*-*.*oer; do
\\
"
echo
" for f in sample-*-*.*oer; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z
0-9
-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \'
echo
' echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \'
echo
' ./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \'
...
@@ -118,7 +118,7 @@ set +x
...
@@ -118,7 +118,7 @@ set +x
echo
'check-per:'
echo
'check-per:'
echo
" @if test -f sample-
${
ASN1PDU
}
-1-nopad.per ; then
\\
"
echo
" @if test -f sample-
${
ASN1PDU
}
-1-nopad.per ; then
\\
"
echo
" for f in sample-*-[1-9]-nopad.per; do
\\
"
echo
" for f in sample-*-[1-9]-nopad.per; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z
0-9
-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \'
echo
' echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \'
echo
' ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
echo
' ./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
...
@@ -132,7 +132,7 @@ set +x
...
@@ -132,7 +132,7 @@ set +x
echo
' done; done; fi'
echo
' done; done; fi'
echo
" @if test -f sample-
${
ASN1PDU
}
-1.per ; then
\\
"
echo
" @if test -f sample-
${
ASN1PDU
}
-1.per ; then
\\
"
echo
" for f in sample-*-[1-9].per; do
\\
"
echo
" for f in sample-*-[1-9].per; do
\\
"
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\\1/"`; \'
echo
' pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z
0-9
-]+)-[0-9].*/\\1/"`; \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' for b in 1 17 33 980 8192; do \'
echo
' echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \'
echo
' echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \'
echo
' ./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \'
echo
' ./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \'
...
...
examples/sample.source.1609.2/Makefile
View file @
fe4e047e
...
@@ -319,7 +319,7 @@ clean:
...
@@ -319,7 +319,7 @@ clean:
regen
:
regenerate-from-asn1-source
regen
:
regenerate-from-asn1-source
regenerate-from-asn1-source
:
regenerate-from-asn1-source
:
../../asn1c/asn1c
-S
../../skeletons
-pdu
=
Certificate
-pdu
=
auto
-fcompound-names
-gen-OER
../IEEE-1609.2-2016.asn1
../../asn1c/asn1c
-S
../../skeletons
-pdu
=
Certificate
-pdu
=
auto
-
pdu
=
Ieee1609Dot2Data
-
fcompound-names
-gen-OER
../IEEE-1609.2-2016.asn1
Certificate.c
:
../sample.makefile.regen ../IEEE-1609.2-2016.asn1
Certificate.c
:
../sample.makefile.regen ../IEEE-1609.2-2016.asn1
...
@@ -329,7 +329,7 @@ Certificate.c: ../sample.makefile.regen ../IEEE-1609.2-2016.asn1
...
@@ -329,7 +329,7 @@ Certificate.c: ../sample.makefile.regen ../IEEE-1609.2-2016.asn1
regen-makefile
:
regen-makefile
:
TITLE
=
"IEEE 1609.2-2016 decoder"
\
TITLE
=
"IEEE 1609.2-2016 decoder"
\
ASN1CMDOPTS
=
"-pdu=auto -fcompound-names -gen-OER"
\
ASN1CMDOPTS
=
"-pdu=auto -
pdu=Ieee1609Dot2Data -
fcompound-names -gen-OER"
\
ASN1MODULES
=
"../IEEE-1609.2-2016.asn1"
\
ASN1MODULES
=
"../IEEE-1609.2-2016.asn1"
\
ASN1PDU
=
Certificate
\
ASN1PDU
=
Certificate
\
PROGNAME
=
1609-2-dump
\
PROGNAME
=
1609-2-dump
\
...
@@ -344,7 +344,7 @@ check: ${TARGET} check-ber check-xer check-oer check-per
...
@@ -344,7 +344,7 @@ check: ${TARGET} check-ber check-xer check-oer check-per
check-ber
:
check-ber
:
@
if
test
-f
sample-Certificate-1.[db]er
;
then
\
@
if
test
-f
sample-Certificate-1.[db]er
;
then
\
for
f
in
sample-
*
-
*
.[db]er
;
do
\
for
f
in
sample-
*
-
*
.[db]er
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z
0-9
-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
...
@@ -359,7 +359,7 @@ check-ber:
...
@@ -359,7 +359,7 @@ check-ber:
check-xer
:
check-xer
:
@
if
test
-f
sample-Certificate-1.xer
;
then
\
@
if
test
-f
sample-Certificate-1.xer
;
then
\
for
f
in
sample-
*
-
*
.xer
;
do
\
for
f
in
sample-
*
-
*
.xer
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z
0-9
-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER and back (
$$
b)..."
;
\
echo
"Recoding
$$
f (
$$
pdu) into DER and back (
$$
b)..."
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
...
@@ -374,7 +374,7 @@ check-xer:
...
@@ -374,7 +374,7 @@ check-xer:
check-oer
:
check-oer
:
@
if
test
-f
sample-Certificate-1.
*
oer
;
then
\
@
if
test
-f
sample-Certificate-1.
*
oer
;
then
\
for
f
in
sample-
*
-
*
.
*
oer
;
do
\
for
f
in
sample-
*
-
*
.
*
oer
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z
0-9
-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
...
@@ -389,7 +389,7 @@ check-oer:
...
@@ -389,7 +389,7 @@ check-oer:
check-per
:
check-per
:
@
if
test
-f
sample-Certificate-1-nopad.per
;
then
\
@
if
test
-f
sample-Certificate-1-nopad.per
;
then
\
for
f
in
sample-
*
-[1-9]-nopad.per
;
do
\
for
f
in
sample-
*
-[1-9]-nopad.per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z
0-9
-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
echo
"Recoding non-padded
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
...
@@ -403,7 +403,7 @@ check-per:
...
@@ -403,7 +403,7 @@ check-per:
done
;
done
;
fi
done
;
done
;
fi
@
if
test
-f
sample-Certificate-1.per
;
then
\
@
if
test
-f
sample-Certificate-1.per
;
then
\
for
f
in
sample-
*
-[1-9].per
;
do
\
for
f
in
sample-
*
-[1-9].per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z-]+)-[0-9].*/
\1
/"
`
;
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z
0-9
-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
echo
"Recoding
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${TARGET}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
...
...
examples/sample.source.1609.2/sample-Ieee1609Dot2Data-1.coer
0 → 100644
View file @
fe4e047e
File added
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