Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
asn1c
Commits
d7703cf7
Commit
d7703cf7
authored
12 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
remove warnings
parent
27126181
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
asn1c/unber.c
+4
-1
4 additions, 1 deletion
asn1c/unber.c
skeletons/INTEGER.c
+9
-0
9 additions, 0 deletions
skeletons/INTEGER.c
with
13 additions
and
1 deletion
asn1c/unber.c
+
4
−
1
View file @
d7703cf7
...
@@ -27,12 +27,15 @@
...
@@ -27,12 +27,15 @@
*/
*/
#include
"sys-common.h"
#include
"sys-common.h"
#define ASN_DISABLE_PER_SUPPORT 1
#include
<asn1parser.h>
/* For static string tables */
#include
<asn1parser.h>
/* For static string tables */
#include
<asn_application.h>
#include
<asn_application.h>
#include
<constraints.c>
#include
<constraints.c>
#include
<ber_tlv_tag.c>
#include
<ber_tlv_tag.c>
#include
<ber_tlv_length.c>
#include
<ber_tlv_length.c>
#include
<INTEGER.c>
#include
<OBJECT_IDENTIFIER.c>
#include
<OBJECT_IDENTIFIER.c>
#include
<RELATIVE-OID.c>
#include
<RELATIVE-OID.c>
#include
<asn_codecs_prim.c>
#include
<asn_codecs_prim.c>
...
@@ -392,7 +395,7 @@ print_TL(int fin, asn1c_integer_t offset, int level, int constr, ssize_t tlen, b
...
@@ -392,7 +395,7 @@ print_TL(int fin, asn1c_integer_t offset, int level, int constr, ssize_t tlen, b
return
;
return
;
}
}
while
(
level
--
>
0
)
printf
(
indent_bytes
);
/* Print indent */
while
(
level
--
>
0
)
fputs
(
indent_bytes
,
stdout
);
/* Print indent */
printf
(
fin
?
"</"
:
"<"
);
printf
(
fin
?
"</"
:
"<"
);
printf
(
constr
?
((
tlv_len
==
-
1
)
?
"I"
:
"C"
)
:
"P"
);
printf
(
constr
?
((
tlv_len
==
-
1
)
?
"I"
:
"C"
)
:
"P"
);
...
...
This diff is collapsed.
Click to expand it.
skeletons/INTEGER.c
+
9
−
0
View file @
d7703cf7
...
@@ -24,8 +24,13 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = {
...
@@ -24,8 +24,13 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = {
INTEGER_encode_der
,
INTEGER_encode_der
,
INTEGER_decode_xer
,
INTEGER_decode_xer
,
INTEGER_encode_xer
,
INTEGER_encode_xer
,
#ifdef ASN_DISABLE_PER_SUPPORT
0
,
0
,
#else
INTEGER_decode_uper
,
/* Unaligned PER decoder */
INTEGER_decode_uper
,
/* Unaligned PER decoder */
INTEGER_encode_uper
,
/* Unaligned PER encoder */
INTEGER_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_INTEGER_tags
,
asn_DEF_INTEGER_tags
,
sizeof
(
asn_DEF_INTEGER_tags
)
/
sizeof
(
asn_DEF_INTEGER_tags
[
0
]),
sizeof
(
asn_DEF_INTEGER_tags
)
/
sizeof
(
asn_DEF_INTEGER_tags
[
0
]),
...
@@ -557,6 +562,8 @@ INTEGER_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
...
@@ -557,6 +562,8 @@ INTEGER_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
_ASN_ENCODED_OK
(
er
);
_ASN_ENCODED_OK
(
er
);
}
}
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t
asn_dec_rval_t
INTEGER_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
INTEGER_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
asn_per_data_t
*
pd
)
{
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
asn_per_data_t
*
pd
)
{
...
@@ -765,6 +772,8 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
...
@@ -765,6 +772,8 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
_ASN_ENCODED_OK
(
er
);
_ASN_ENCODED_OK
(
er
);
}
}
#endif
/* ASN_DISABLE_PER_SUPPORT */
int
int
asn_INTEGER2long
(
const
INTEGER_t
*
iptr
,
long
*
lptr
)
{
asn_INTEGER2long
(
const
INTEGER_t
*
iptr
,
long
*
lptr
)
{
uint8_t
*
b
,
*
end
;
uint8_t
*
b
,
*
end
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment