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
a7cca246
Commit
a7cca246
authored
Sep 29, 2021
by
Senthil Prabakaran
Committed by
Mouse
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only do encode of JER
parent
6a8ac437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
skeletons/asn_application.c
skeletons/asn_application.c
+17
-7
No files found.
skeletons/asn_application.c
View file @
a7cca246
...
...
@@ -431,6 +431,23 @@ asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx,
break
;
#endif
/* !defined(ASN_DISABLE_XER_SUPPORT) */
#if !defined(ASN_DISABLE_JER_SUPPORT)
case
ATS_BASIC_JER
:
if
(
td
->
op
->
jer_encoder
)
{
er
=
jer_encode
(
td
,
sptr
,
0
,
callback
,
callback_key
);
if
(
er
.
encoded
==
-
1
)
{
if
(
er
.
failed_type
&&
er
.
failed_type
->
op
->
jer_encoder
)
{
errno
=
EBADF
;
/* Structure has incorrect form. */
}
else
{
errno
=
ENOENT
;
/* XER is not defined for this type. */
}
}
}
else
{
errno
=
ENOENT
;
/* Transfer syntax is not defined for this type. */
ASN__ENCODE_FAILED
;
}
break
;
#endif
/* !defined(ASN_DISABLE_JER_SUPPORT) */
default:
errno
=
ENOENT
;
ASN__ENCODE_FAILED
;
...
...
@@ -516,13 +533,6 @@ asn_decode(const asn_codec_ctx_t *opt_codec_ctx,
errno
=
ENOENT
;
ASN__DECODE_FAILED
;
#endif
/* !defined(ASN_DISABLE_XER_SUPPORT) */
case
ATS_BASIC_JER
:
#if !defined(ASN_DISABLE_JER_SUPPORT)
return
jer_decode
(
opt_codec_ctx
,
td
,
sptr
,
buffer
,
size
);
#else
errno
=
ENOENT
;
ASN__DECODE_FAILED
;
#endif
/* !defined(ASN_DISABLE_JER_SUPPORT) */
}
}
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