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
d7d3ed8a
Commit
d7d3ed8a
authored
Dec 01, 2023
by
v0-e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jer: OCTET STRING allow empty
parent
d57abfb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
skeletons/OCTET_STRING_jer.c
skeletons/OCTET_STRING_jer.c
+6
-7
No files found.
skeletons/OCTET_STRING_jer.c
View file @
d7d3ed8a
...
@@ -200,19 +200,18 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_b
...
@@ -200,19 +200,18 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_b
int
half
=
0
;
/* Half bit */
int
half
=
0
;
/* Half bit */
uint8_t
*
buf
;
uint8_t
*
buf
;
/* Strip quotes */
for
(;
p
<
pend
;
++
p
)
{
for
(;
p
<
pend
;
++
p
)
{
if
(
*
p
==
CQUOTE
)
if
(
*
p
==
CQUOTE
)
{
++
p
;
break
;
break
;
}
}
}
++
p
;
for
(;
pend
>=
p
;
--
pend
)
{
for
(;
pend
>
p
;
--
pend
)
{
if
(
*
pend
==
CQUOTE
)
if
(
*
pend
==
CQUOTE
)
break
;
break
;
}
}
if
(
pend
-
p
<
0
)
return
-
1
;
if
(
pend
-
p
<
2
)
return
-
1
;
chunk_size
=
pend
-
p
;
chunk_size
=
pend
-
p
;
/* Reallocate buffer according to high cap estimation */
/* Reallocate buffer according to high cap estimation */
...
...
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