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
aa7c5a63
Commit
aa7c5a63
authored
Aug 30, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NULL OER encode/decode
parent
c6bd359a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
skeletons/NULL.c
skeletons/NULL.c
+37
-2
skeletons/NULL.h
skeletons/NULL.h
+2
-0
No files found.
skeletons/NULL.c
View file @
aa7c5a63
...
...
@@ -26,8 +26,8 @@ asn_TYPE_operation_t asn_OP_NULL = {
0
,
0
,
#else
0
,
0
,
NULL_decode_oer
,
NULL_encode_oer
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
#ifdef ASN_DISABLE_PER_SUPPORT
0
,
...
...
@@ -134,6 +134,39 @@ NULL_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
}
}
#ifndef ASN_DISABLE_OER_SUPPORT
asn_dec_rval_t
NULL_decode_oer
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
const
asn_oer_constraints_t
*
constraints
,
void
**
struct_ptr
,
const
void
*
ptr
,
size_t
size
)
{
asn_dec_rval_t
rv
=
{
RC_OK
,
0
};
(
void
)
opt_codec_ctx
;
(
void
)
td
;
(
void
)
constraints
;
(
void
)
struct_ptr
;
(
void
)
ptr
;
(
void
)
size
;
return
rv
;
}
asn_enc_rval_t
NULL_encode_oer
(
asn_TYPE_descriptor_t
*
td
,
const
asn_oer_constraints_t
*
constraints
,
void
*
sptr
,
asn_app_consume_bytes_f
*
cb
,
void
*
app_key
)
{
asn_enc_rval_t
er
=
{
0
,
td
,
sptr
};
(
void
)
constraints
;
(
void
)
cb
;
(
void
)
app_key
;
return
er
;
}
#endif
/* ASN_DISABLE_OER_SUPPORT */
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t
NULL_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
...
...
@@ -177,3 +210,5 @@ NULL_encode_uper(asn_TYPE_descriptor_t *td,
er
.
encoded
=
0
;
ASN__ENCODED_OK
(
er
);
}
#endif
/* ASN_DISABLE_PER_SUPPORT */
skeletons/NULL.h
View file @
aa7c5a63
...
...
@@ -26,6 +26,8 @@ asn_struct_compare_f NULL_compare;
der_type_encoder_f
NULL_encode_der
;
xer_type_decoder_f
NULL_decode_xer
;
xer_type_encoder_f
NULL_encode_xer
;
oer_type_decoder_f
NULL_decode_oer
;
oer_type_encoder_f
NULL_encode_oer
;
per_type_decoder_f
NULL_decode_uper
;
per_type_encoder_f
NULL_encode_uper
;
...
...
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