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
c2487f5e
Commit
c2487f5e
authored
Mar 02, 2018
by
Mouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for
https://github.com/vlm/asn1c/issues/261
as per @velichkov
parent
924dd15c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
tests/tests-skeletons/check-OIDs.c
tests/tests-skeletons/check-OIDs.c
+11
-2
No files found.
tests/tests-skeletons/check-OIDs.c
View file @
c2487f5e
...
...
@@ -17,7 +17,7 @@ static void
check_OID
(
int
lineno
,
uint8_t
*
buf
,
size_t
len
,
unsigned
*
ck_buf
,
int
ck_len
)
{
OBJECT_IDENTIFIER_t
*
oid
;
asn_dec_rval_t
rval
;
uint32_t
arcs
[
1
0
];
uint32_t
arcs
[
1
1
];
int
alen
;
int
i
;
...
...
@@ -265,7 +265,15 @@ check_binary_parsing() {
};
uint32_t
buf5_check
[]
=
{
2
,
2
,
1
,
0
,
1
};
/* {0 0} */
/* {joint-iso-itu-t 25957 } */
uint8_t
buf6
[]
=
{
0x06
,
/* OBJECT IDENTIFIER */
0x0c
,
/* Length */
0x2a
,
0x03
,
0x01
,
0x01
,
0x01
,
0x81
,
0xaa
,
0x11
,
0x03
,
0x05
,
0x01
,
0x01
};
uint32_t
buf6_check
[]
=
{
1
,
2
,
3
,
1
,
1
,
1
,
21777
,
3
,
5
,
1
,
1
};
/* {0 0} */
uint8_t
buf10
[]
=
{
0x0D
,
/* RELATIVE-OID */
0x01
,
/* Length */
...
...
@@ -295,6 +303,7 @@ check_binary_parsing() {
CHECK_OID
(
3
);
CHECK_OID
(
4
);
CHECK_OID
(
5
);
CHECK_OID
(
6
);
CHECK_ROID
(
10
);
CHECK_ROID
(
11
);
...
...
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