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
b798215c
Commit
b798215c
authored
Aug 07, 2024
by
Mouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow LF,CF,FF,Space in JER JSON Hex OCTET STRING
parent
8168ad41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
skeletons/OCTET_STRING_jer.c
skeletons/OCTET_STRING_jer.c
+2
-6
tests/tests-skeletons/check-OCTET_STRING.c
tests/tests-skeletons/check-OCTET_STRING.c
+2
-1
No files found.
skeletons/OCTET_STRING_jer.c
View file @
b798215c
...
...
@@ -252,12 +252,8 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_b
for
(;
p
<
pend
;
p
++
)
{
int
ch
=
*
(
const
unsigned
char
*
)
p
;
switch
(
ch
)
{
/* don't allow tab
case 0x09:
*/
case
0x20
:
/* allow space */
/* allow LF, FF, CR */
case
0x0a
:
case
0x0c
:
case
0x0d
:
/* allow LF, FF, CR, space */
case
0x0a
:
case
0x0c
:
case
0x0d
:
case
0x20
:
continue
;
case
0x30
:
case
0x31
:
case
0x32
:
case
0x33
:
case
0x34
:
/*01234*/
case
0x35
:
case
0x36
:
case
0x37
:
case
0x38
:
case
0x39
:
/*56789*/
...
...
tests/tests-skeletons/check-OCTET_STRING.c
View file @
b798215c
...
...
@@ -178,7 +178,8 @@ main() {
check_jer
(
HEX
,
"
\"
"
,
0
);
check_jer
(
HEX
,
""
,
0
);
check_jer
(
HEX
,
"
\"
6869
\"
"
,
"hi"
);
check_jer
(
HEX
,
"
\"
68 69
\"
"
,
0
);
//check_jer(HEX, "\"68 69\"", 0); /* we want to allow space */
check_jer
(
HEX
,
"
\"
68 69
\"
"
,
"hi"
);
check_jer
(
UTF8
,
"
\"\"
"
,
""
);
check_jer
(
UTF8
,
"
\"
"
,
0
);
...
...
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