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
6cf7f32a
Commit
6cf7f32a
authored
Dec 04, 2023
by
v0-e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jer: BMPString add quotes
parent
f766a858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
skeletons/BMPString_jer.c
skeletons/BMPString_jer.c
+9
-2
No files found.
skeletons/BMPString_jer.c
View file @
6cf7f32a
...
...
@@ -79,6 +79,7 @@ BMPString_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_consume_bytes_f
*
cb
,
void
*
app_key
)
{
const
BMPString_t
*
st
=
(
const
BMPString_t
*
)
sptr
;
asn_enc_rval_t
er
=
{
0
,
0
,
0
};
ssize_t
ro_encoded
=
0
;
(
void
)
ilevel
;
(
void
)
flags
;
...
...
@@ -86,8 +87,14 @@ BMPString_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
if
(
!
st
||
!
st
->
buf
)
ASN__ENCODE_FAILED
;
er
.
encoded
=
BMPString__dump
(
st
,
cb
,
app_key
);
if
(
er
.
encoded
<
0
)
ASN__ENCODE_FAILED
;
ASN__CALLBACK
(
"
\"
"
,
1
);
ro_encoded
=
BMPString__dump
(
st
,
cb
,
app_key
);
if
(
ro_encoded
<
0
)
goto
cb_failed
;
er
.
encoded
+=
ro_encoded
;
ASN__CALLBACK
(
"
\"
"
,
1
);
ASN__ENCODED_OK
(
er
);
cb_failed:
ASN__ENCODE_FAILED
;
}
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