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
649e70e1
Commit
649e70e1
authored
Nov 30, 2023
by
v0-e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jer: Fix NULL
parent
37514256
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
skeletons/NULL_jer.c
skeletons/NULL_jer.c
+11
-11
No files found.
skeletons/NULL_jer.c
View file @
649e70e1
...
...
@@ -17,29 +17,29 @@ NULL_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
(
void
)
sptr
;
(
void
)
ilevel
;
(
void
)
flags
;
(
void
)
cb
;
(
void
)
app_key
;
/* XMLNullValue is empty */
er
.
encoded
=
0
;
ASN__CALLBACK
(
"null"
,
4
);
ASN__ENCODED_OK
(
er
);
cb_failed:
ASN__ENCODE_FAILED
;
}
static
enum
jer_pbd_rval
NULL__jer_body_decode
(
const
asn_TYPE_descriptor_t
*
td
,
void
*
sptr
,
const
void
*
chunk_buf
,
size_t
chunk_size
)
{
(
void
)
td
;
(
void
)
sptr
;
(
void
)
chunk_buf
;
/* Going to be empty according to the rules below. */
/*
* There must be no content in self-terminating <NULL/> tag.
*/
if
(
chunk_size
)
return
JPBD_BROKEN_ENCODING
;
else
const
char
*
p
=
(
const
char
*
)
chunk_buf
;
if
(
chunk_size
&&
p
[
0
]
==
'n'
/* 'null' */
)
{
return
JPBD_BODY_CONSUMED
;
}
else
{
return
JPBD_BROKEN_ENCODING
;
}
}
asn_dec_rval_t
...
...
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