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
584d86e2
Commit
584d86e2
authored
Oct 10, 2023
by
v0-e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Continuous OCTET STRING JER string
parent
989bb0ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
skeletons/OCTET_STRING_jer.c
skeletons/OCTET_STRING_jer.c
+3
-6
No files found.
skeletons/OCTET_STRING_jer.c
View file @
584d86e2
...
@@ -30,22 +30,19 @@ OCTET_STRING_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -30,22 +30,19 @@ OCTET_STRING_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
*/
*/
buf
=
st
->
buf
;
buf
=
st
->
buf
;
end
=
buf
+
st
->
size
;
end
=
buf
+
st
->
size
;
ASN__CALLBACK
(
"
\"
"
,
1
);
for
(
i
=
0
;
buf
<
end
;
buf
++
,
i
++
)
{
for
(
i
=
0
;
buf
<
end
;
buf
++
,
i
++
)
{
if
(
!
(
i
%
16
)
&&
(
i
||
st
->
size
>
16
))
{
if
(
!
(
i
%
16
)
&&
(
i
||
st
->
size
>
16
))
{
ASN__CALLBACK
(
scratch
,
p
-
scratch
);
ASN__CALLBACK
(
scratch
,
p
-
scratch
);
p
=
scratch
;
p
=
scratch
;
ASN__TEXT_INDENT
(
1
,
ilevel
);
}
}
*
p
++
=
h2c
[(
*
buf
>>
4
)
&
0x0F
];
*
p
++
=
h2c
[(
*
buf
>>
4
)
&
0x0F
];
*
p
++
=
h2c
[
*
buf
&
0x0F
];
*
p
++
=
h2c
[
*
buf
&
0x0F
];
*
p
++
=
0x20
;
}
}
if
(
p
-
scratch
)
{
if
(
p
-
scratch
)
{
p
--
;
/* Remove the tail space */
ASN__CALLBACK
(
scratch
,
p
-
scratch
);
/* Dump the rest */
ASN__CALLBACK3
(
"
\"
"
,
1
,
scratch
,
p
-
scratch
,
"
\"
"
,
1
);
/* Dump the rest */
if
(
st
->
size
>
16
)
ASN__TEXT_INDENT
(
1
,
ilevel
-
1
);
}
}
ASN__CALLBACK
(
"
\"
"
,
1
);
ASN__ENCODED_OK
(
er
);
ASN__ENCODED_OK
(
er
);
cb_failed:
cb_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