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
d7703cf7
Commit
d7703cf7
authored
Sep 03, 2012
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove warnings
parent
27126181
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
asn1c/unber.c
asn1c/unber.c
+4
-1
skeletons/INTEGER.c
skeletons/INTEGER.c
+9
-0
No files found.
asn1c/unber.c
View file @
d7703cf7
...
...
@@ -27,12 +27,15 @@
*/
#include "sys-common.h"
#define ASN_DISABLE_PER_SUPPORT 1
#include <asn1parser.h>
/* For static string tables */
#include <asn_application.h>
#include <constraints.c>
#include <ber_tlv_tag.c>
#include <ber_tlv_length.c>
#include <INTEGER.c>
#include <OBJECT_IDENTIFIER.c>
#include <RELATIVE-OID.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
return
;
}
while
(
level
--
>
0
)
printf
(
indent_bytes
);
/* Print indent */
while
(
level
--
>
0
)
fputs
(
indent_bytes
,
stdout
);
/* Print indent */
printf
(
fin
?
"</"
:
"<"
);
printf
(
constr
?
((
tlv_len
==
-
1
)
?
"I"
:
"C"
)
:
"P"
);
...
...
skeletons/INTEGER.c
View file @
d7703cf7
...
...
@@ -24,8 +24,13 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = {
INTEGER_encode_der
,
INTEGER_decode_xer
,
INTEGER_encode_xer
,
#ifdef ASN_DISABLE_PER_SUPPORT
0
,
0
,
#else
INTEGER_decode_uper
,
/* Unaligned PER decoder */
INTEGER_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_INTEGER_tags
,
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,
_ASN_ENCODED_OK
(
er
);
}
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t
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
)
{
...
...
@@ -765,6 +772,8 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
_ASN_ENCODED_OK
(
er
);
}
#endif
/* ASN_DISABLE_PER_SUPPORT */
int
asn_INTEGER2long
(
const
INTEGER_t
*
iptr
,
long
*
lptr
)
{
uint8_t
*
b
,
*
end
;
...
...
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