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
75b6fe4c
Commit
75b6fe4c
authored
Aug 27, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make junking check work
parent
4ccce3da
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
8 deletions
+35
-8
skeletons/OPEN_TYPE.c
skeletons/OPEN_TYPE.c
+21
-3
skeletons/OPEN_TYPE_oer.c
skeletons/OPEN_TYPE_oer.c
+8
-1
skeletons/constr_SEQUENCE.c
skeletons/constr_SEQUENCE.c
+3
-3
skeletons/per_opentype.c
skeletons/per_opentype.c
+3
-1
No files found.
skeletons/OPEN_TYPE.c
View file @
75b6fe4c
...
@@ -43,7 +43,13 @@ OPEN_TYPE_ber_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -43,7 +43,13 @@ OPEN_TYPE_ber_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void
*
inner_value
;
void
*
inner_value
;
asn_dec_rval_t
rv
;
asn_dec_rval_t
rv
;
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
)
||
!
elm
->
type_selector
)
{
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
))
{
ASN__DECODE_FAILED
;
}
if
(
!
elm
->
type_selector
)
{
ASN_DEBUG
(
"Type selector is not defined for Open Type %s->%s->%s"
,
td
->
name
,
elm
->
name
,
elm
->
type
->
name
);
ASN__DECODE_FAILED
;
ASN__DECODE_FAILED
;
}
}
...
@@ -126,7 +132,13 @@ OPEN_TYPE_xer_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -126,7 +132,13 @@ OPEN_TYPE_xer_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
ssize_t
ch_size
;
ssize_t
ch_size
;
pxer_chunk_type_e
ch_type
;
pxer_chunk_type_e
ch_type
;
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
)
||
!
elm
->
type_selector
)
{
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
))
{
ASN__DECODE_FAILED
;
}
if
(
!
elm
->
type_selector
)
{
ASN_DEBUG
(
"Type selector is not defined for Open Type %s->%s->%s"
,
td
->
name
,
elm
->
name
,
elm
->
type
->
name
);
ASN__DECODE_FAILED
;
ASN__DECODE_FAILED
;
}
}
...
@@ -278,7 +290,13 @@ OPEN_TYPE_uper_get(asn_codec_ctx_t *opt_codec_ctx,
...
@@ -278,7 +290,13 @@ OPEN_TYPE_uper_get(asn_codec_ctx_t *opt_codec_ctx,
void
*
inner_value
;
void
*
inner_value
;
asn_dec_rval_t
rv
;
asn_dec_rval_t
rv
;
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
)
||
!
elm
->
type_selector
)
{
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
))
{
ASN__DECODE_FAILED
;
}
if
(
!
elm
->
type_selector
)
{
ASN_DEBUG
(
"Type selector is not defined for Open Type %s->%s->%s"
,
td
->
name
,
elm
->
name
,
elm
->
type
->
name
);
ASN__DECODE_FAILED
;
ASN__DECODE_FAILED
;
}
}
...
...
skeletons/OPEN_TYPE_oer.c
View file @
75b6fe4c
...
@@ -18,7 +18,14 @@ OPEN_TYPE_oer_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -18,7 +18,14 @@ OPEN_TYPE_oer_get(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
asn_dec_rval_t
rv
;
asn_dec_rval_t
rv
;
size_t
ot_ret
;
size_t
ot_ret
;
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
)
||
!
elm
->
type_selector
)
{
if
(
!
(
elm
->
flags
&
ATF_OPEN_TYPE
))
{
ASN__DECODE_FAILED
;
}
if
(
!
elm
->
type_selector
)
{
ASN_DEBUG
(
"Type selector is not defined for Open Type %s->%s->%s"
,
td
->
name
,
elm
->
name
,
elm
->
type
->
name
);
ASN__DECODE_FAILED
;
ASN__DECODE_FAILED
;
}
}
...
...
skeletons/constr_SEQUENCE.c
View file @
75b6fe4c
...
@@ -410,7 +410,7 @@ SEQUENCE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -410,7 +410,7 @@ SEQUENCE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
/*
/*
* Invoke the member fetch routine according to member's type
* Invoke the member fetch routine according to member's type
*/
*/
if
(
(
elements
[
edx
].
flags
&
ATF_OPEN_TYPE
)
&&
elements
[
edx
].
type_selector
)
{
if
(
elements
[
edx
].
flags
&
ATF_OPEN_TYPE
)
{
rval
=
OPEN_TYPE_ber_get
(
opt_codec_ctx
,
td
,
st
,
&
elements
[
edx
],
ptr
,
LEFT
);
rval
=
OPEN_TYPE_ber_get
(
opt_codec_ctx
,
td
,
st
,
&
elements
[
edx
],
ptr
,
LEFT
);
}
else
{
}
else
{
rval
=
elements
[
edx
].
type
->
op
->
ber_decoder
(
opt_codec_ctx
,
rval
=
elements
[
edx
].
type
->
op
->
ber_decoder
(
opt_codec_ctx
,
...
@@ -677,7 +677,7 @@ SEQUENCE_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -677,7 +677,7 @@ SEQUENCE_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
memb_ptr2
=
&
memb_ptr
;
memb_ptr2
=
&
memb_ptr
;
}
}
if
(
(
elm
->
flags
&
ATF_OPEN_TYPE
)
&&
elm
->
type_selector
)
{
if
(
elm
->
flags
&
ATF_OPEN_TYPE
)
{
tmprval
=
OPEN_TYPE_xer_get
(
opt_codec_ctx
,
td
,
st
,
elm
,
ptr
,
size
);
tmprval
=
OPEN_TYPE_xer_get
(
opt_codec_ctx
,
td
,
st
,
elm
,
ptr
,
size
);
}
else
{
}
else
{
/* Invoke the inner type decoder, m.b. multiple times */
/* Invoke the inner type decoder, m.b. multiple times */
...
@@ -1140,7 +1140,7 @@ SEQUENCE_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -1140,7 +1140,7 @@ SEQUENCE_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
/* Fetch the member from the stream */
/* Fetch the member from the stream */
ASN_DEBUG
(
"Decoding member
\"
%s
\"
in %s"
,
elm
->
name
,
td
->
name
);
ASN_DEBUG
(
"Decoding member
\"
%s
\"
in %s"
,
elm
->
name
,
td
->
name
);
if
(
(
elm
->
flags
&
ATF_OPEN_TYPE
)
&&
elm
->
type_selector
)
{
if
(
elm
->
flags
&
ATF_OPEN_TYPE
)
{
rv
=
OPEN_TYPE_uper_get
(
opt_codec_ctx
,
td
,
st
,
elm
,
pd
);
rv
=
OPEN_TYPE_uper_get
(
opt_codec_ctx
,
td
,
st
,
elm
,
pd
);
}
else
{
}
else
{
rv
=
elm
->
type
->
op
->
uper_decoder
(
opt_codec_ctx
,
elm
->
type
,
rv
=
elm
->
type
->
op
->
uper_decoder
(
opt_codec_ctx
,
elm
->
type
,
...
...
skeletons/per_opentype.c
View file @
75b6fe4c
...
@@ -254,10 +254,12 @@ uper_open_type_get(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
...
@@ -254,10 +254,12 @@ uper_open_type_get(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
int
int
uper_open_type_skip
(
asn_codec_ctx_t
*
ctx
,
asn_per_data_t
*
pd
)
{
uper_open_type_skip
(
asn_codec_ctx_t
*
ctx
,
asn_per_data_t
*
pd
)
{
asn_TYPE_descriptor_t
s_td
;
asn_TYPE_descriptor_t
s_td
;
asn_TYPE_operation_t
s_op
;
asn_dec_rval_t
rv
;
asn_dec_rval_t
rv
;
s_td
.
name
=
"<unknown extension>"
;
s_td
.
name
=
"<unknown extension>"
;
s_td
.
op
->
uper_decoder
=
uper_sot_suck
;
s_td
.
op
=
&
s_op
;
s_op
.
uper_decoder
=
uper_sot_suck
;
rv
=
uper_open_type_get
(
ctx
,
&
s_td
,
0
,
0
,
pd
);
rv
=
uper_open_type_get
(
ctx
,
&
s_td
,
0
,
0
,
pd
);
if
(
rv
.
code
!=
RC_OK
)
if
(
rv
.
code
!=
RC_OK
)
...
...
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