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
62d7687e
Commit
62d7687e
authored
Aug 05, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not add unnecessary symbols
parent
a4f3d467
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
12 deletions
+38
-12
examples/sample.source.LDAP3/Makefile
examples/sample.source.LDAP3/Makefile
+10
-4
examples/sample.source.MEGACO/Makefile
examples/sample.source.MEGACO/Makefile
+10
-4
examples/sample.source.RRC/Makefile
examples/sample.source.RRC/Makefile
+10
-4
skeletons/NativeInteger.c
skeletons/NativeInteger.c
+4
-0
skeletons/OCTET_STRING.c
skeletons/OCTET_STRING.c
+4
-0
No files found.
examples/sample.source.LDAP3/Makefile
View file @
62d7687e
...
@@ -146,6 +146,12 @@ ASN_MODULE_HEADERS+=xer_decoder.h
...
@@ -146,6 +146,12 @@ ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES
+=
xer_decoder.c
ASN_MODULE_SOURCES
+=
xer_decoder.c
ASN_MODULE_HEADERS
+=
xer_encoder.h
ASN_MODULE_HEADERS
+=
xer_encoder.h
ASN_MODULE_SOURCES
+=
xer_encoder.c
ASN_MODULE_SOURCES
+=
xer_encoder.c
ASN_MODULE_HEADERS
+=
oer_decoder.h
ASN_MODULE_SOURCES
+=
oer_decoder.c
ASN_MODULE_HEADERS
+=
oer_encoder.h
ASN_MODULE_SOURCES
+=
oer_encoder.c
ASN_MODULE_HEADERS
+=
oer_support.h
ASN_MODULE_SOURCES
+=
oer_support.c
ASN_MODULE_HEADERS
+=
per_support.h
ASN_MODULE_HEADERS
+=
per_support.h
ASN_MODULE_SOURCES
+=
per_support.c
ASN_MODULE_SOURCES
+=
per_support.c
ASN_MODULE_HEADERS
+=
per_decoder.h
ASN_MODULE_HEADERS
+=
per_decoder.h
...
@@ -163,19 +169,19 @@ libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
...
@@ -163,19 +169,19 @@ libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
# Remove the lines below to convert it into a pure .am file
TARGET
=
ldap3dump
TARGET
=
ldap3dump
C
FLAGS
+=
-DASN_CONVERTER_TITLE
=
"Lightweight Directory Access Protocol V3 decoder"
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
-DPDU
=
LDAPMessage
-I
.
C
PPFLAGS
+=
-DASN_CONVERTER_TITLE
=
"Lightweight Directory Access Protocol V3 decoder"
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
-DASN_DISABLE_OER_SUPPORT
-DASN_DISABLE_PER_SUPPORT
-DPDU
=
LDAPMessage
-I
.
OBJS
=
${ASN_MODULE_SOURCES:.c=.o}
${ASN_CONVERTER_SOURCES:.c=.o}
OBJS
=
${ASN_MODULE_SOURCES:.c=.o}
${ASN_CONVERTER_SOURCES:.c=.o}
all
:
LDAPMessage.c $(TARGET)
all
:
LDAPMessage.c $(TARGET)
$(TARGET)
:
${OBJS}
$(TARGET)
:
${OBJS}
$(CC)
$(CFLAGS)
-o
$(TARGET)
${OBJS}
$(LDFLAGS)
$(LIBS)
$(CC)
$(C
PP
FLAGS)
-o
$(TARGET)
${OBJS}
$(LDFLAGS)
$(LIBS)
.SUFFIXES
:
.SUFFIXES
:
.SUFFIXES
:
.c .o
.SUFFIXES
:
.c .o
.c.o
:
.c.o
:
$(CC)
$(CFLAGS)
-o
$@
-c
$<
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-o
$@
-c
$<
clean
:
clean
:
rm
-f
$(TARGET)
rm
-f
$(TARGET)
...
@@ -198,7 +204,7 @@ regen-makefile:
...
@@ -198,7 +204,7 @@ regen-makefile:
ASN1MODULES
=
"../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1"
\
ASN1MODULES
=
"../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1"
\
ASN1PDU
=
LDAPMessage
\
ASN1PDU
=
LDAPMessage
\
PROGNAME
=
ldap3dump
\
PROGNAME
=
ldap3dump
\
CFLAGS
=
""
\
C
PP
FLAGS
=
""
\
../sample.makefile.regen
../sample.makefile.regen
check
:
${TARGET} check-ber check-xer check-per
check
:
${TARGET} check-ber check-xer check-per
...
...
examples/sample.source.MEGACO/Makefile
View file @
62d7687e
...
@@ -268,6 +268,12 @@ ASN_MODULE_HEADERS+=xer_decoder.h
...
@@ -268,6 +268,12 @@ ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES
+=
xer_decoder.c
ASN_MODULE_SOURCES
+=
xer_decoder.c
ASN_MODULE_HEADERS
+=
xer_encoder.h
ASN_MODULE_HEADERS
+=
xer_encoder.h
ASN_MODULE_SOURCES
+=
xer_encoder.c
ASN_MODULE_SOURCES
+=
xer_encoder.c
ASN_MODULE_HEADERS
+=
oer_decoder.h
ASN_MODULE_SOURCES
+=
oer_decoder.c
ASN_MODULE_HEADERS
+=
oer_encoder.h
ASN_MODULE_SOURCES
+=
oer_encoder.c
ASN_MODULE_HEADERS
+=
oer_support.h
ASN_MODULE_SOURCES
+=
oer_support.c
ASN_MODULE_HEADERS
+=
per_support.h
ASN_MODULE_HEADERS
+=
per_support.h
ASN_MODULE_SOURCES
+=
per_support.c
ASN_MODULE_SOURCES
+=
per_support.c
ASN_MODULE_HEADERS
+=
per_decoder.h
ASN_MODULE_HEADERS
+=
per_decoder.h
...
@@ -285,19 +291,19 @@ libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
...
@@ -285,19 +291,19 @@ libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
# Remove the lines below to convert it into a pure .am file
TARGET
=
megaco-dump
TARGET
=
megaco-dump
C
FLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
-DPDU
=
MegacoMessage
-I
.
C
PPFLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
-DASN_DISABLE_OER_SUPPORT
-DASN_DISABLE_PER_SUPPORT
-DPDU
=
MegacoMessage
-I
.
OBJS
=
${ASN_MODULE_SOURCES:.c=.o}
${ASN_CONVERTER_SOURCES:.c=.o}
OBJS
=
${ASN_MODULE_SOURCES:.c=.o}
${ASN_CONVERTER_SOURCES:.c=.o}
all
:
MegacoMessage.c $(TARGET)
all
:
MegacoMessage.c $(TARGET)
$(TARGET)
:
${OBJS}
$(TARGET)
:
${OBJS}
$(CC)
$(CFLAGS)
-o
$(TARGET)
${OBJS}
$(LDFLAGS)
$(LIBS)
$(CC)
$(C
PP
FLAGS)
-o
$(TARGET)
${OBJS}
$(LDFLAGS)
$(LIBS)
.SUFFIXES
:
.SUFFIXES
:
.SUFFIXES
:
.c .o
.SUFFIXES
:
.c .o
.c.o
:
.c.o
:
$(CC)
$(CFLAGS)
-o
$@
-c
$<
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-o
$@
-c
$<
clean
:
clean
:
rm
-f
$(TARGET)
rm
-f
$(TARGET)
...
@@ -319,7 +325,7 @@ regen-makefile:
...
@@ -319,7 +325,7 @@ regen-makefile:
ASN1MODULES
=
"../rfc3525-MEDIA-GATEWAY-CONTROL.asn1"
\
ASN1MODULES
=
"../rfc3525-MEDIA-GATEWAY-CONTROL.asn1"
\
ASN1PDU
=
MegacoMessage
\
ASN1PDU
=
MegacoMessage
\
PROGNAME
=
megaco-dump
\
PROGNAME
=
megaco-dump
\
CFLAGS
=
""
\
C
PP
FLAGS
=
""
\
../sample.makefile.regen
../sample.makefile.regen
check
:
${TARGET} check-ber check-xer check-per
check
:
${TARGET} check-ber check-xer check-per
...
...
examples/sample.source.RRC/Makefile
View file @
62d7687e
...
@@ -4722,6 +4722,12 @@ ASN_MODULE_HEADERS+=xer_decoder.h
...
@@ -4722,6 +4722,12 @@ ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES
+=
xer_decoder.c
ASN_MODULE_SOURCES
+=
xer_decoder.c
ASN_MODULE_HEADERS
+=
xer_encoder.h
ASN_MODULE_HEADERS
+=
xer_encoder.h
ASN_MODULE_SOURCES
+=
xer_encoder.c
ASN_MODULE_SOURCES
+=
xer_encoder.c
ASN_MODULE_HEADERS
+=
oer_decoder.h
ASN_MODULE_SOURCES
+=
oer_decoder.c
ASN_MODULE_HEADERS
+=
oer_encoder.h
ASN_MODULE_SOURCES
+=
oer_encoder.c
ASN_MODULE_HEADERS
+=
oer_support.h
ASN_MODULE_SOURCES
+=
oer_support.c
ASN_MODULE_HEADERS
+=
per_support.h
ASN_MODULE_HEADERS
+=
per_support.h
ASN_MODULE_SOURCES
+=
per_support.c
ASN_MODULE_SOURCES
+=
per_support.c
ASN_MODULE_HEADERS
+=
per_decoder.h
ASN_MODULE_HEADERS
+=
per_decoder.h
...
@@ -4740,19 +4746,19 @@ libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
...
@@ -4740,19 +4746,19 @@ libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
# Remove the lines below to convert it into a pure .am file
TARGET
=
rrc-dump
TARGET
=
rrc-dump
C
FLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
-DPDU
=
DL_DCCH_Message
-DASN_PDU_COLLECTION
-I
.
C
PPFLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
-DASN_DISABLE_OER_SUPPORT
-DPDU
=
DL_DCCH_Message
-DASN_PDU_COLLECTION
-I
.
OBJS
=
${ASN_MODULE_SOURCES:.c=.o}
${ASN_CONVERTER_SOURCES:.c=.o}
OBJS
=
${ASN_MODULE_SOURCES:.c=.o}
${ASN_CONVERTER_SOURCES:.c=.o}
all
:
DL-DCCH-Message.c $(TARGET)
all
:
DL-DCCH-Message.c $(TARGET)
$(TARGET)
:
${OBJS}
$(TARGET)
:
${OBJS}
$(CC)
$(CFLAGS)
-o
$(TARGET)
${OBJS}
$(LDFLAGS)
$(LIBS)
$(CC)
$(C
PP
FLAGS)
-o
$(TARGET)
${OBJS}
$(LDFLAGS)
$(LIBS)
.SUFFIXES
:
.SUFFIXES
:
.SUFFIXES
:
.c .o
.SUFFIXES
:
.c .o
.c.o
:
.c.o
:
$(CC)
$(CFLAGS)
-o
$@
-c
$<
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-o
$@
-c
$<
clean
:
clean
:
rm
-f
$(TARGET)
rm
-f
$(TARGET)
...
@@ -4774,7 +4780,7 @@ regen-makefile:
...
@@ -4774,7 +4780,7 @@ regen-makefile:
ASN1MODULES
=
"../rrc-7.1.0.asn1"
\
ASN1MODULES
=
"../rrc-7.1.0.asn1"
\
ASN1PDU
=
DL-DCCH-Message
\
ASN1PDU
=
DL-DCCH-Message
\
PROGNAME
=
rrc-dump
\
PROGNAME
=
rrc-dump
\
CFLAGS
=
""
\
C
PP
FLAGS
=
""
\
../sample.makefile.regen
../sample.makefile.regen
check
:
${TARGET} check-ber check-xer check-per
check
:
${TARGET} check-ber check-xer check-per
...
...
skeletons/NativeInteger.c
View file @
62d7687e
...
@@ -244,6 +244,8 @@ NativeInteger_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
...
@@ -244,6 +244,8 @@ NativeInteger_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
NativeInteger_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
NativeInteger_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
asn_TYPE_descriptor_t
*
td
,
...
@@ -304,6 +306,8 @@ NativeInteger_encode_uper(asn_TYPE_descriptor_t *td,
...
@@ -304,6 +306,8 @@ NativeInteger_encode_uper(asn_TYPE_descriptor_t *td,
return
er
;
return
er
;
}
}
#endif
/* ASN_DISABLE_PER_SUPPORT */
/*
/*
* INTEGER specific human-readable output.
* INTEGER specific human-readable output.
*/
*/
...
...
skeletons/OCTET_STRING.c
View file @
62d7687e
...
@@ -1331,6 +1331,8 @@ OCTET_STRING_per_put_characters(asn_per_outp_t *po, const uint8_t *buf,
...
@@ -1331,6 +1331,8 @@ OCTET_STRING_per_put_characters(asn_per_outp_t *po, const uint8_t *buf,
return
0
;
return
0
;
}
}
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t
asn_dec_rval_t
OCTET_STRING_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
OCTET_STRING_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
asn_per_constraints_t
*
constraints
,
asn_TYPE_descriptor_t
*
td
,
asn_per_constraints_t
*
constraints
,
...
@@ -1663,6 +1665,8 @@ OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td,
...
@@ -1663,6 +1665,8 @@ OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td,
ASN__ENCODED_OK
(
er
);
ASN__ENCODED_OK
(
er
);
}
}
#endif
/* ASN_DISABLE_PER_SUPPORT */
int
int
OCTET_STRING_print
(
asn_TYPE_descriptor_t
*
td
,
const
void
*
sptr
,
int
ilevel
,
OCTET_STRING_print
(
asn_TYPE_descriptor_t
*
td
,
const
void
*
sptr
,
int
ilevel
,
asn_app_consume_bytes_f
*
cb
,
void
*
app_key
)
{
asn_app_consume_bytes_f
*
cb
,
void
*
app_key
)
{
...
...
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