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
21b41ac1
Commit
21b41ac1
authored
Jul 24, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extern "C" used in skeletons
parent
72a0f5a1
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
392 additions
and
2 deletions
+392
-2
ChangeLog
ChangeLog
+4
-1
skeletons/ANY.h
skeletons/ANY.h
+8
-0
skeletons/BIT_STRING.h
skeletons/BIT_STRING.h
+8
-0
skeletons/BMPString.h
skeletons/BMPString.h
+8
-0
skeletons/BOOLEAN.h
skeletons/BOOLEAN.h
+8
-0
skeletons/ENUMERATED.h
skeletons/ENUMERATED.h
+8
-0
skeletons/GeneralString.h
skeletons/GeneralString.h
+8
-0
skeletons/GeneralizedTime.h
skeletons/GeneralizedTime.h
+8
-0
skeletons/GraphicString.h
skeletons/GraphicString.h
+8
-0
skeletons/IA5String.h
skeletons/IA5String.h
+8
-0
skeletons/INTEGER.h
skeletons/INTEGER.h
+8
-0
skeletons/ISO646String.h
skeletons/ISO646String.h
+8
-0
skeletons/NULL.h
skeletons/NULL.h
+8
-0
skeletons/NativeEnumerated.h
skeletons/NativeEnumerated.h
+8
-0
skeletons/NativeInteger.h
skeletons/NativeInteger.h
+8
-0
skeletons/NativeReal.h
skeletons/NativeReal.h
+8
-0
skeletons/NumericString.h
skeletons/NumericString.h
+8
-0
skeletons/OBJECT_IDENTIFIER.h
skeletons/OBJECT_IDENTIFIER.h
+8
-0
skeletons/OCTET_STRING.h
skeletons/OCTET_STRING.h
+8
-0
skeletons/ObjectDescriptor.h
skeletons/ObjectDescriptor.h
+8
-0
skeletons/PrintableString.h
skeletons/PrintableString.h
+8
-0
skeletons/REAL.h
skeletons/REAL.h
+8
-0
skeletons/RELATIVE-OID.h
skeletons/RELATIVE-OID.h
+8
-0
skeletons/T61String.h
skeletons/T61String.h
+8
-0
skeletons/TeletexString.h
skeletons/TeletexString.h
+8
-0
skeletons/UTCTime.h
skeletons/UTCTime.h
+8
-0
skeletons/UTF8String.h
skeletons/UTF8String.h
+8
-0
skeletons/UniversalString.h
skeletons/UniversalString.h
+8
-0
skeletons/VideotexString.h
skeletons/VideotexString.h
+8
-0
skeletons/VisibleString.h
skeletons/VisibleString.h
+8
-0
skeletons/asn_SEQUENCE_OF.h
skeletons/asn_SEQUENCE_OF.h
+8
-0
skeletons/asn_SET_OF.h
skeletons/asn_SET_OF.h
+8
-0
skeletons/asn_application.h
skeletons/asn_application.h
+8
-0
skeletons/asn_codecs.h
skeletons/asn_codecs.h
+12
-1
skeletons/asn_codecs_prim.h
skeletons/asn_codecs_prim.h
+8
-0
skeletons/ber_decoder.h
skeletons/ber_decoder.h
+8
-0
skeletons/ber_tlv_length.h
skeletons/ber_tlv_length.h
+8
-0
skeletons/ber_tlv_tag.h
skeletons/ber_tlv_tag.h
+8
-0
skeletons/constr_CHOICE.h
skeletons/constr_CHOICE.h
+8
-0
skeletons/constr_SEQUENCE.h
skeletons/constr_SEQUENCE.h
+8
-0
skeletons/constr_SEQUENCE_OF.h
skeletons/constr_SEQUENCE_OF.h
+8
-0
skeletons/constr_SET.h
skeletons/constr_SET.h
+8
-0
skeletons/constr_SET_OF.h
skeletons/constr_SET_OF.h
+8
-0
skeletons/constr_TYPE.h
skeletons/constr_TYPE.h
+8
-0
skeletons/constraints.h
skeletons/constraints.h
+8
-0
skeletons/der_encoder.h
skeletons/der_encoder.h
+8
-0
skeletons/xer_decoder.h
skeletons/xer_decoder.h
+8
-0
skeletons/xer_encoder.h
skeletons/xer_encoder.h
+8
-0
skeletons/xer_support.h
skeletons/xer_support.h
+8
-0
No files found.
ChangeLog
View file @
21b41ac1
0.9.17: 2005-July-2
0
0.9.17: 2005-July-2
4
* Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
* Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
(Test cases 55, 86).
(Test cases 55, 86).
* Started to use extern "C" {} in skeleton headers.
* Introduced -finline-choice command line option to fix
yet another class of circular references.
0.9.16: 2005-July-04
0.9.16: 2005-July-04
...
...
skeletons/ANY.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
/* Implemented via OCTET STRING type */
#include <OCTET_STRING.h>
/* Implemented via OCTET STRING type */
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
ANY
{
typedef
struct
ANY
{
uint8_t
*
buf
;
/* BER-encoded ANY contents */
uint8_t
*
buf
;
/* BER-encoded ANY contents */
int
size
;
/* Size of the above buffer */
int
size
;
/* Size of the above buffer */
...
@@ -36,4 +40,8 @@ int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
...
@@ -36,4 +40,8 @@ int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size))
#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size))
#define ANY_new_fromBuf(buf, size) OCTET_STRING_new_fromBuf((buf), (size))
#define ANY_new_fromBuf(buf, size) OCTET_STRING_new_fromBuf((buf), (size))
#ifdef __cplusplus
}
#endif
#endif
/* ASN_TYPE_ANY_H */
#endif
/* ASN_TYPE_ANY_H */
skeletons/BIT_STRING.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
/* Some help from OCTET STRING */
#include <OCTET_STRING.h>
/* Some help from OCTET STRING */
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
BIT_STRING_s
{
typedef
struct
BIT_STRING_s
{
uint8_t
*
buf
;
/* BIT STRING body */
uint8_t
*
buf
;
/* BIT STRING body */
int
size
;
/* Size of the above buffer */
int
size
;
/* Size of the above buffer */
...
@@ -22,4 +26,8 @@ asn_struct_print_f BIT_STRING_print; /* Human-readable output */
...
@@ -22,4 +26,8 @@ asn_struct_print_f BIT_STRING_print; /* Human-readable output */
asn_constr_check_f
BIT_STRING_constraint
;
asn_constr_check_f
BIT_STRING_constraint
;
xer_type_encoder_f
BIT_STRING_encode_xer
;
xer_type_encoder_f
BIT_STRING_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _BIT_STRING_H_ */
#endif
/* _BIT_STRING_H_ */
skeletons/BMPString.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
BMPString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
BMPString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_BMPString
;
extern
asn_TYPE_descriptor_t
asn_DEF_BMPString
;
...
@@ -15,4 +19,8 @@ asn_struct_print_f BMPString_print; /* Human-readable output */
...
@@ -15,4 +19,8 @@ asn_struct_print_f BMPString_print; /* Human-readable output */
xer_type_decoder_f
BMPString_decode_xer
;
xer_type_decoder_f
BMPString_decode_xer
;
xer_type_encoder_f
BMPString_encode_xer
;
xer_type_encoder_f
BMPString_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _BMPString_H_ */
#endif
/* _BMPString_H_ */
skeletons/BOOLEAN.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/*
/*
* The underlying integer may contain various values, but everything
* The underlying integer may contain various values, but everything
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
...
@@ -23,4 +27,8 @@ der_type_encoder_f BOOLEAN_encode_der;
...
@@ -23,4 +27,8 @@ der_type_encoder_f BOOLEAN_encode_der;
xer_type_decoder_f
BOOLEAN_decode_xer
;
xer_type_decoder_f
BOOLEAN_decode_xer
;
xer_type_encoder_f
BOOLEAN_encode_xer
;
xer_type_encoder_f
BOOLEAN_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _BOOLEAN_H_ */
#endif
/* _BOOLEAN_H_ */
skeletons/ENUMERATED.h
View file @
21b41ac1
...
@@ -7,8 +7,16 @@
...
@@ -7,8 +7,16 @@
#include <INTEGER.h>
#include <INTEGER.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
INTEGER_t
ENUMERATED_t
;
/* Implemented via INTEGER */
typedef
INTEGER_t
ENUMERATED_t
;
/* Implemented via INTEGER */
extern
asn_TYPE_descriptor_t
asn_DEF_ENUMERATED
;
extern
asn_TYPE_descriptor_t
asn_DEF_ENUMERATED
;
#ifdef __cplusplus
}
#endif
#endif
/* _ENUMERATED_H_ */
#endif
/* _ENUMERATED_H_ */
skeletons/GeneralString.h
View file @
21b41ac1
...
@@ -7,8 +7,16 @@
...
@@ -7,8 +7,16 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
GeneralString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
GeneralString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_GeneralString
;
extern
asn_TYPE_descriptor_t
asn_DEF_GeneralString
;
#ifdef __cplusplus
}
#endif
#endif
/* _GeneralString_H_ */
#endif
/* _GeneralString_H_ */
skeletons/GeneralizedTime.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
GeneralizedTime_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
GeneralizedTime_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_GeneralizedTime
;
extern
asn_TYPE_descriptor_t
asn_DEF_GeneralizedTime
;
...
@@ -58,4 +62,8 @@ GeneralizedTime_t *asn_time2GT(GeneralizedTime_t *_optional_gt,
...
@@ -58,4 +62,8 @@ GeneralizedTime_t *asn_time2GT(GeneralizedTime_t *_optional_gt,
GeneralizedTime_t
*
asn_time2GT_frac
(
GeneralizedTime_t
*
_optional_gt
,
GeneralizedTime_t
*
asn_time2GT_frac
(
GeneralizedTime_t
*
_optional_gt
,
const
struct
tm
*
,
int
frac_value
,
int
frac_digits
,
int
force_gmt
);
const
struct
tm
*
,
int
frac_value
,
int
frac_digits
,
int
force_gmt
);
#ifdef __cplusplus
}
#endif
#endif
/* _GeneralizedTime_H_ */
#endif
/* _GeneralizedTime_H_ */
skeletons/GraphicString.h
View file @
21b41ac1
...
@@ -7,8 +7,16 @@
...
@@ -7,8 +7,16 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
GraphicString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
GraphicString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_GraphicString
;
extern
asn_TYPE_descriptor_t
asn_DEF_GraphicString
;
#ifdef __cplusplus
}
#endif
#endif
/* _GraphicString_H_ */
#endif
/* _GraphicString_H_ */
skeletons/IA5String.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
IA5String_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
IA5String_t
;
/* Implemented via OCTET STRING */
/*
/*
...
@@ -16,4 +20,8 @@ extern asn_TYPE_descriptor_t asn_DEF_IA5String;
...
@@ -16,4 +20,8 @@ extern asn_TYPE_descriptor_t asn_DEF_IA5String;
asn_constr_check_f
IA5String_constraint
;
asn_constr_check_f
IA5String_constraint
;
#ifdef __cplusplus
}
#endif
#endif
/* _IA5String_H_ */
#endif
/* _IA5String_H_ */
skeletons/INTEGER.h
View file @
21b41ac1
...
@@ -8,6 +8,10 @@
...
@@ -8,6 +8,10 @@
#include <asn_application.h>
#include <asn_application.h>
#include <asn_codecs_prim.h>
#include <asn_codecs_prim.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
ASN__PRIMITIVE_TYPE_t
INTEGER_t
;
typedef
ASN__PRIMITIVE_TYPE_t
INTEGER_t
;
extern
asn_TYPE_descriptor_t
asn_DEF_INTEGER
;
extern
asn_TYPE_descriptor_t
asn_DEF_INTEGER
;
...
@@ -52,4 +56,8 @@ int asn_long2INTEGER(INTEGER_t *i, long l);
...
@@ -52,4 +56,8 @@ int asn_long2INTEGER(INTEGER_t *i, long l);
*/
*/
const
asn_INTEGER_enum_map_t
*
INTEGER_map_value2enum
(
asn_INTEGER_specifics_t
*
specs
,
long
value
);
const
asn_INTEGER_enum_map_t
*
INTEGER_map_value2enum
(
asn_INTEGER_specifics_t
*
specs
,
long
value
);
#ifdef __cplusplus
}
#endif
#endif
/* _INTEGER_H_ */
#endif
/* _INTEGER_H_ */
skeletons/ISO646String.h
View file @
21b41ac1
...
@@ -8,8 +8,16 @@
...
@@ -8,8 +8,16 @@
#include <asn_application.h>
#include <asn_application.h>
#include <VisibleString.h>
#include <VisibleString.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
VisibleString_t
ISO646String_t
;
/* Implemented using VisibleString */
typedef
VisibleString_t
ISO646String_t
;
/* Implemented using VisibleString */
extern
asn_TYPE_descriptor_t
asn_DEF_ISO646String
;
extern
asn_TYPE_descriptor_t
asn_DEF_ISO646String
;
#ifdef __cplusplus
}
#endif
#endif
/* _ISO646String_H_ */
#endif
/* _ISO646String_H_ */
skeletons/NULL.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/*
/*
* The value of the NULL type is meaningless: see BOOLEAN if you want to
* The value of the NULL type is meaningless: see BOOLEAN if you want to
* carry true/false semantics.
* carry true/false semantics.
...
@@ -20,4 +24,8 @@ der_type_encoder_f NULL_encode_der;
...
@@ -20,4 +24,8 @@ der_type_encoder_f NULL_encode_der;
xer_type_decoder_f
NULL_decode_xer
;
xer_type_decoder_f
NULL_decode_xer
;
xer_type_encoder_f
NULL_encode_xer
;
xer_type_encoder_f
NULL_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* NULL_H */
#endif
/* NULL_H */
skeletons/NativeEnumerated.h
View file @
21b41ac1
...
@@ -14,8 +14,16 @@
...
@@ -14,8 +14,16 @@
#include <NativeInteger.h>
#include <NativeInteger.h>
#ifdef __cplusplus
extern
"C"
{
#endif
extern
asn_TYPE_descriptor_t
asn_DEF_NativeEnumerated
;
extern
asn_TYPE_descriptor_t
asn_DEF_NativeEnumerated
;
xer_type_encoder_f
NativeEnumerated_encode_xer
;
xer_type_encoder_f
NativeEnumerated_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _NativeEnumerated_H_ */
#endif
/* _NativeEnumerated_H_ */
skeletons/NativeInteger.h
View file @
21b41ac1
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <asn_application.h>
#include <asn_application.h>
#include <INTEGER.h>
#include <INTEGER.h>
#ifdef __cplusplus
extern
"C"
{
#endif
extern
asn_TYPE_descriptor_t
asn_DEF_NativeInteger
;
extern
asn_TYPE_descriptor_t
asn_DEF_NativeInteger
;
asn_struct_free_f
NativeInteger_free
;
asn_struct_free_f
NativeInteger_free
;
...
@@ -24,4 +28,8 @@ der_type_encoder_f NativeInteger_encode_der;
...
@@ -24,4 +28,8 @@ der_type_encoder_f NativeInteger_encode_der;
xer_type_decoder_f
NativeInteger_decode_xer
;
xer_type_decoder_f
NativeInteger_decode_xer
;
xer_type_encoder_f
NativeInteger_encode_xer
;
xer_type_encoder_f
NativeInteger_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _NativeInteger_H_ */
#endif
/* _NativeInteger_H_ */
skeletons/NativeReal.h
View file @
21b41ac1
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
extern
asn_TYPE_descriptor_t
asn_DEF_NativeReal
;
extern
asn_TYPE_descriptor_t
asn_DEF_NativeReal
;
asn_struct_free_f
NativeReal_free
;
asn_struct_free_f
NativeReal_free
;
...
@@ -22,4 +26,8 @@ der_type_encoder_f NativeReal_encode_der;
...
@@ -22,4 +26,8 @@ der_type_encoder_f NativeReal_encode_der;
xer_type_decoder_f
NativeReal_decode_xer
;
xer_type_decoder_f
NativeReal_decode_xer
;
xer_type_encoder_f
NativeReal_encode_xer
;
xer_type_encoder_f
NativeReal_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* ASN_TYPE_NativeReal_H */
#endif
/* ASN_TYPE_NativeReal_H */
skeletons/NumericString.h
View file @
21b41ac1
...
@@ -7,10 +7,18 @@
...
@@ -7,10 +7,18 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
NumericString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
NumericString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_NumericString
;
extern
asn_TYPE_descriptor_t
asn_DEF_NumericString
;
asn_constr_check_f
NumericString_constraint
;
asn_constr_check_f
NumericString_constraint
;
#ifdef __cplusplus
}
#endif
#endif
/* _NumericString_H_ */
#endif
/* _NumericString_H_ */
skeletons/OBJECT_IDENTIFIER.h
View file @
21b41ac1
...
@@ -9,6 +9,10 @@
...
@@ -9,6 +9,10 @@
#include <asn_application.h>
#include <asn_application.h>
#include <asn_codecs_prim.h>
#include <asn_codecs_prim.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
ASN__PRIMITIVE_TYPE_t
OBJECT_IDENTIFIER_t
;
typedef
ASN__PRIMITIVE_TYPE_t
OBJECT_IDENTIFIER_t
;
extern
asn_TYPE_descriptor_t
asn_DEF_OBJECT_IDENTIFIER
;
extern
asn_TYPE_descriptor_t
asn_DEF_OBJECT_IDENTIFIER
;
...
@@ -128,4 +132,8 @@ int OBJECT_IDENTIFIER_get_single_arc(uint8_t *arcbuf, unsigned int arclen,
...
@@ -128,4 +132,8 @@ int OBJECT_IDENTIFIER_get_single_arc(uint8_t *arcbuf, unsigned int arclen,
int
OBJECT_IDENTIFIER_set_single_arc
(
uint8_t
*
arcbuf
,
int
OBJECT_IDENTIFIER_set_single_arc
(
uint8_t
*
arcbuf
,
void
*
arcval
,
unsigned
int
arcval_size
,
int
_prepared_order
);
void
*
arcval
,
unsigned
int
arcval_size
,
int
_prepared_order
);
#ifdef __cplusplus
}
#endif
#endif
/* _OBJECT_IDENTIFIER_H_ */
#endif
/* _OBJECT_IDENTIFIER_H_ */
skeletons/OCTET_STRING.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
OCTET_STRING
{
typedef
struct
OCTET_STRING
{
uint8_t
*
buf
;
/* Buffer with consecutive OCTET_STRING bits */
uint8_t
*
buf
;
/* Buffer with consecutive OCTET_STRING bits */
int
size
;
/* Size of the buffer */
int
size
;
/* Size of the buffer */
...
@@ -67,4 +71,8 @@ typedef struct asn_OCTET_STRING_specifics_s {
...
@@ -67,4 +71,8 @@ typedef struct asn_OCTET_STRING_specifics_s {
int
subvariant
;
/* {0,1,2} for O-S, BIT STRING or ANY */
int
subvariant
;
/* {0,1,2} for O-S, BIT STRING or ANY */
}
asn_OCTET_STRING_specifics_t
;
}
asn_OCTET_STRING_specifics_t
;
#ifdef __cplusplus
}
#endif
#endif
/* _OCTET_STRING_H_ */
#endif
/* _OCTET_STRING_H_ */
skeletons/ObjectDescriptor.h
View file @
21b41ac1
...
@@ -7,8 +7,16 @@
...
@@ -7,8 +7,16 @@
#include <GraphicString.h>
#include <GraphicString.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
GraphicString_t
ObjectDescriptor_t
;
/* Implemented via GraphicString */
typedef
GraphicString_t
ObjectDescriptor_t
;
/* Implemented via GraphicString */
extern
asn_TYPE_descriptor_t
asn_DEF_ObjectDescriptor
;
extern
asn_TYPE_descriptor_t
asn_DEF_ObjectDescriptor
;
#ifdef __cplusplus
}
#endif
#endif
/* _ObjectDescriptor_H_ */
#endif
/* _ObjectDescriptor_H_ */
skeletons/PrintableString.h
View file @
21b41ac1
...
@@ -7,10 +7,18 @@
...
@@ -7,10 +7,18 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
PrintableString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
PrintableString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_PrintableString
;
extern
asn_TYPE_descriptor_t
asn_DEF_PrintableString
;
asn_constr_check_f
PrintableString_constraint
;
asn_constr_check_f
PrintableString_constraint
;
#ifdef __cplusplus
}
#endif
#endif
/* _PrintableString_H_ */
#endif
/* _PrintableString_H_ */
skeletons/REAL.h
View file @
21b41ac1
...
@@ -8,6 +8,10 @@
...
@@ -8,6 +8,10 @@
#include <asn_application.h>
#include <asn_application.h>
#include <asn_codecs_prim.h>
#include <asn_codecs_prim.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
ASN__PRIMITIVE_TYPE_t
REAL_t
;
typedef
ASN__PRIMITIVE_TYPE_t
REAL_t
;
extern
asn_TYPE_descriptor_t
asn_DEF_REAL
;
extern
asn_TYPE_descriptor_t
asn_DEF_REAL
;
...
@@ -31,4 +35,8 @@ ssize_t REAL__dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *a
...
@@ -31,4 +35,8 @@ ssize_t REAL__dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *a
int
asn_REAL2double
(
const
REAL_t
*
real_ptr
,
double
*
d
);
int
asn_REAL2double
(
const
REAL_t
*
real_ptr
,
double
*
d
);
int
asn_double2REAL
(
REAL_t
*
real_ptr
,
double
d
);
int
asn_double2REAL
(
REAL_t
*
real_ptr
,
double
d
);
#ifdef __cplusplus
}
#endif
#endif
/* ASN_TYPE_REAL_H */
#endif
/* ASN_TYPE_REAL_H */
skeletons/RELATIVE-OID.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OBJECT_IDENTIFIER.h>
#include <OBJECT_IDENTIFIER.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* Implemented via OBJECT IDENTIFIER */
/* Implemented via OBJECT IDENTIFIER */
typedef
OBJECT_IDENTIFIER_t
RELATIVE_OID_t
;
typedef
OBJECT_IDENTIFIER_t
RELATIVE_OID_t
;
...
@@ -28,4 +32,8 @@ int RELATIVE_OID_get_arcs(RELATIVE_OID_t *_roid,
...
@@ -28,4 +32,8 @@ int RELATIVE_OID_get_arcs(RELATIVE_OID_t *_roid,
int
RELATIVE_OID_set_arcs
(
RELATIVE_OID_t
*
_roid
,
int
RELATIVE_OID_set_arcs
(
RELATIVE_OID_t
*
_roid
,
void
*
arcs
,
unsigned
int
arc_type_size
,
unsigned
int
arcs_slots
);
void
*
arcs
,
unsigned
int
arc_type_size
,
unsigned
int
arcs_slots
);
#ifdef __cplusplus
}
#endif
#endif
/* _RELATIVE_OID_H_ */
#endif
/* _RELATIVE_OID_H_ */
skeletons/T61String.h
View file @
21b41ac1
...
@@ -7,8 +7,16 @@
...
@@ -7,8 +7,16 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
T61String_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
T61String_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_T61String
;
extern
asn_TYPE_descriptor_t
asn_DEF_T61String
;
#ifdef __cplusplus
}
#endif
#endif
/* _T61String_H_ */
#endif
/* _T61String_H_ */
skeletons/TeletexString.h
View file @
21b41ac1
...
@@ -7,8 +7,16 @@
...
@@ -7,8 +7,16 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
TeletexString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
TeletexString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_TeletexString
;
extern
asn_TYPE_descriptor_t
asn_DEF_TeletexString
;
#ifdef __cplusplus
}
#endif
#endif
/* _TeletexString_H_ */
#endif
/* _TeletexString_H_ */
skeletons/UTCTime.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
UTCTime_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
UTCTime_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_UTCTime
;
extern
asn_TYPE_descriptor_t
asn_DEF_UTCTime
;
...
@@ -27,4 +31,8 @@ time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill, int as_gmt);
...
@@ -27,4 +31,8 @@ time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill, int as_gmt);
/* See asn_time2GT() in GeneralizedTime.h */
/* See asn_time2GT() in GeneralizedTime.h */
UTCTime_t
*
asn_time2UT
(
UTCTime_t
*
__opt_ut
,
const
struct
tm
*
,
int
force_gmt
);
UTCTime_t
*
asn_time2UT
(
UTCTime_t
*
__opt_ut
,
const
struct
tm
*
,
int
force_gmt
);
#ifdef __cplusplus
}
#endif
#endif
/* _UTCTime_H_ */
#endif
/* _UTCTime_H_ */
skeletons/UTF8String.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
UTF8String_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
UTF8String_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_UTF8String
;
extern
asn_TYPE_descriptor_t
asn_DEF_UTF8String
;
...
@@ -38,4 +42,8 @@ ssize_t UTF8String_length(const UTF8String_t *st);
...
@@ -38,4 +42,8 @@ ssize_t UTF8String_length(const UTF8String_t *st);
*/
*/
size_t
UTF8String_to_wcs
(
const
UTF8String_t
*
st
,
uint32_t
*
dst
,
size_t
dstlen
);
size_t
UTF8String_to_wcs
(
const
UTF8String_t
*
st
,
uint32_t
*
dst
,
size_t
dstlen
);
#ifdef __cplusplus
}
#endif
#endif
/* _UTF8String_H_ */
#endif
/* _UTF8String_H_ */
skeletons/UniversalString.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
UniversalString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
UniversalString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_UniversalString
;
extern
asn_TYPE_descriptor_t
asn_DEF_UniversalString
;
...
@@ -15,4 +19,8 @@ asn_struct_print_f UniversalString_print; /* Human-readable output */
...
@@ -15,4 +19,8 @@ asn_struct_print_f UniversalString_print; /* Human-readable output */
xer_type_decoder_f
UniversalString_decode_xer
;
xer_type_decoder_f
UniversalString_decode_xer
;
xer_type_encoder_f
UniversalString_encode_xer
;
xer_type_encoder_f
UniversalString_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _UniversalString_H_ */
#endif
/* _UniversalString_H_ */
skeletons/VideotexString.h
View file @
21b41ac1
...
@@ -7,8 +7,16 @@
...
@@ -7,8 +7,16 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
VideotexString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
VideotexString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_VideotexString
;
extern
asn_TYPE_descriptor_t
asn_DEF_VideotexString
;
#ifdef __cplusplus
}
#endif
#endif
/* _VideotexString_H_ */
#endif
/* _VideotexString_H_ */
skeletons/VisibleString.h
View file @
21b41ac1
...
@@ -7,10 +7,18 @@
...
@@ -7,10 +7,18 @@
#include <OCTET_STRING.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
OCTET_STRING_t
VisibleString_t
;
/* Implemented via OCTET STRING */
typedef
OCTET_STRING_t
VisibleString_t
;
/* Implemented via OCTET STRING */
extern
asn_TYPE_descriptor_t
asn_DEF_VisibleString
;
extern
asn_TYPE_descriptor_t
asn_DEF_VisibleString
;
asn_constr_check_f
VisibleString_constraint
;
asn_constr_check_f
VisibleString_constraint
;
#ifdef __cplusplus
}
#endif
#endif
/* _VisibleString_H_ */
#endif
/* _VisibleString_H_ */
skeletons/asn_SEQUENCE_OF.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_SET_OF.h>
#include <asn_SET_OF.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/*
/*
* SEQUENCE OF is the same as SET OF with a tiny difference:
* SEQUENCE OF is the same as SET OF with a tiny difference:
* the delete operation preserves the initial order of elements
* the delete operation preserves the initial order of elements
...
@@ -41,4 +45,8 @@ typedef A_SEQUENCE_OF(void) asn_anonymous_sequence_;
...
@@ -41,4 +45,8 @@ typedef A_SEQUENCE_OF(void) asn_anonymous_sequence_;
#define _A_SEQUENCE_FROM_VOID(ptr) ((asn_anonymous_sequence_ *)(ptr))
#define _A_SEQUENCE_FROM_VOID(ptr) ((asn_anonymous_sequence_ *)(ptr))
#define _A_CSEQUENCE_FROM_VOID(ptr) ((const asn_anonymous_sequence_ *)(ptr))
#define _A_CSEQUENCE_FROM_VOID(ptr) ((const asn_anonymous_sequence_ *)(ptr))
#ifdef __cplusplus
}
#endif
#endif
/* ASN_SEQUENCE_OF_H */
#endif
/* ASN_SEQUENCE_OF_H */
skeletons/asn_SET_OF.h
View file @
21b41ac1
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#ifndef ASN_SET_OF_H
#ifndef ASN_SET_OF_H
#define ASN_SET_OF_H
#define ASN_SET_OF_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define A_SET_OF(type) \
#define A_SET_OF(type) \
struct { \
struct { \
type **array; \
type **array; \
...
@@ -51,4 +55,8 @@ typedef A_SET_OF(void) asn_anonymous_set_;
...
@@ -51,4 +55,8 @@ typedef A_SET_OF(void) asn_anonymous_set_;
#define _A_SET_FROM_VOID(ptr) ((asn_anonymous_set_ *)(ptr))
#define _A_SET_FROM_VOID(ptr) ((asn_anonymous_set_ *)(ptr))
#define _A_CSET_FROM_VOID(ptr) ((const asn_anonymous_set_ *)(ptr))
#define _A_CSET_FROM_VOID(ptr) ((const asn_anonymous_set_ *)(ptr))
#ifdef __cplusplus
}
#endif
#endif
/* ASN_SET_OF_H */
#endif
/* ASN_SET_OF_H */
skeletons/asn_application.h
View file @
21b41ac1
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
#include <asn_system.h>
/* for platform-dependent types */
#include <asn_system.h>
/* for platform-dependent types */
#include <asn_codecs.h>
/* for ASN.1 codecs specifics */
#include <asn_codecs.h>
/* for ASN.1 codecs specifics */
#ifdef __cplusplus
extern
"C"
{
#endif
/*
/*
* Generic type of an application-defined callback to return various
* Generic type of an application-defined callback to return various
* types of data to the application.
* types of data to the application.
...
@@ -23,4 +27,8 @@ typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
...
@@ -23,4 +27,8 @@ typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
#include <constr_TYPE.h>
/* for asn_TYPE_descriptor_t */
#include <constr_TYPE.h>
/* for asn_TYPE_descriptor_t */
#ifdef __cplusplus
}
#endif
#endif
/* _ASN_APPLICATION_H_ */
#endif
/* _ASN_APPLICATION_H_ */
skeletons/asn_codecs.h
View file @
21b41ac1
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#ifndef _ASN_CODECS_H_
#ifndef _ASN_CODECS_H_
#define _ASN_CODECS_H_
#define _ASN_CODECS_H_
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
/*
/*
...
@@ -51,7 +55,10 @@ typedef struct asn_enc_rval_s {
...
@@ -51,7 +55,10 @@ typedef struct asn_enc_rval_s {
void
*
structure_ptr
;
void
*
structure_ptr
;
}
asn_enc_rval_t
;
}
asn_enc_rval_t
;
#define _ASN_ENCODE_FAILED do { \
#define _ASN_ENCODE_FAILED do { \
asn_enc_rval_t tmp_error = { -1, td, sptr }; \
asn_enc_rval_t tmp_error; \
tmp_error.encoded = -1; \
tmp_error.failed_type = td; \
tmp_error.structure_ptr = sptr; \
return tmp_error; \
return tmp_error; \
} while(0)
} while(0)
...
@@ -73,4 +80,8 @@ typedef struct asn_dec_rval_s {
...
@@ -73,4 +80,8 @@ typedef struct asn_dec_rval_s {
size_t
consumed
;
/* Number of bytes consumed */
size_t
consumed
;
/* Number of bytes consumed */
}
asn_dec_rval_t
;
}
asn_dec_rval_t
;
#ifdef __cplusplus
}
#endif
#endif
/* _ASN_CODECS_H_ */
#endif
/* _ASN_CODECS_H_ */
skeletons/asn_codecs_prim.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
ASN__PRIMITIVE_TYPE_s
{
typedef
struct
ASN__PRIMITIVE_TYPE_s
{
uint8_t
*
buf
;
/* Buffer with consecutive primitive encoding bytes */
uint8_t
*
buf
;
/* Buffer with consecutive primitive encoding bytes */
int
size
;
/* Size of the buffer */
int
size
;
/* Size of the buffer */
...
@@ -42,4 +46,8 @@ asn_dec_rval_t xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
...
@@ -42,4 +46,8 @@ asn_dec_rval_t xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
xer_primitive_body_decoder_f
*
prim_body_decoder
xer_primitive_body_decoder_f
*
prim_body_decoder
);
);
#ifdef __cplusplus
}
#endif
#endif
/* ASN_CODECS_PRIM_H */
#endif
/* ASN_CODECS_PRIM_H */
skeletons/ber_decoder.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_codec_ctx_s
;
/* Forward declaration */
struct
asn_codec_ctx_s
;
/* Forward declaration */
...
@@ -52,4 +56,8 @@ asn_dec_rval_t ber_check_tags(
...
@@ -52,4 +56,8 @@ asn_dec_rval_t ber_check_tags(
int
*
opt_tlv_form
/* optional tag form */
int
*
opt_tlv_form
/* optional tag form */
);
);
#ifdef __cplusplus
}
#endif
#endif
/* _BER_DECODER_H_ */
#endif
/* _BER_DECODER_H_ */
skeletons/ber_tlv_length.h
View file @
21b41ac1
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#ifndef _BER_TLV_LENGTH_H_
#ifndef _BER_TLV_LENGTH_H_
#define _BER_TLV_LENGTH_H_
#define _BER_TLV_LENGTH_H_
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
ssize_t
ber_tlv_len_t
;
typedef
ssize_t
ber_tlv_len_t
;
/*
/*
...
@@ -40,4 +44,8 @@ ssize_t ber_skip_length(
...
@@ -40,4 +44,8 @@ ssize_t ber_skip_length(
*/
*/
size_t
der_tlv_length_serialize
(
ber_tlv_len_t
len
,
void
*
bufptr
,
size_t
size
);
size_t
der_tlv_length_serialize
(
ber_tlv_len_t
len
,
void
*
bufptr
,
size_t
size
);
#ifdef __cplusplus
}
#endif
#endif
/* _BER_TLV_LENGTH_H_ */
#endif
/* _BER_TLV_LENGTH_H_ */
skeletons/ber_tlv_tag.h
View file @
21b41ac1
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#ifndef _BER_TLV_TAG_H_
#ifndef _BER_TLV_TAG_H_
#define _BER_TLV_TAG_H_
#define _BER_TLV_TAG_H_
#ifdef __cplusplus
extern
"C"
{
#endif
enum
asn_tag_class
{
enum
asn_tag_class
{
ASN_TAG_CLASS_UNIVERSAL
=
0
,
/* 0b00 */
ASN_TAG_CLASS_UNIVERSAL
=
0
,
/* 0b00 */
ASN_TAG_CLASS_APPLICATION
=
1
,
/* 0b01 */
ASN_TAG_CLASS_APPLICATION
=
1
,
/* 0b01 */
...
@@ -49,4 +53,8 @@ ssize_t ber_fetch_tag(const void *bufptr, size_t size, ber_tlv_tag_t *tag_r);
...
@@ -49,4 +53,8 @@ ssize_t ber_fetch_tag(const void *bufptr, size_t size, ber_tlv_tag_t *tag_r);
*/
*/
size_t
ber_tlv_tag_serialize
(
ber_tlv_tag_t
tag
,
void
*
bufptr
,
size_t
size
);
size_t
ber_tlv_tag_serialize
(
ber_tlv_tag_t
tag
,
void
*
bufptr
,
size_t
size
);
#ifdef __cplusplus
}
#endif
#endif
/* _BER_TLV_TAG_H_ */
#endif
/* _BER_TLV_TAG_H_ */
skeletons/constr_CHOICE.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
asn_CHOICE_specifics_s
{
typedef
struct
asn_CHOICE_specifics_s
{
/*
/*
* Target structure description.
* Target structure description.
...
@@ -40,4 +44,8 @@ xer_type_decoder_f CHOICE_decode_xer;
...
@@ -40,4 +44,8 @@ xer_type_decoder_f CHOICE_decode_xer;
xer_type_encoder_f
CHOICE_encode_xer
;
xer_type_encoder_f
CHOICE_encode_xer
;
asn_outmost_tag_f
CHOICE_outmost_tag
;
asn_outmost_tag_f
CHOICE_outmost_tag
;
#ifdef __cplusplus
}
#endif
#endif
/* _CONSTR_CHOICE_H_ */
#endif
/* _CONSTR_CHOICE_H_ */
skeletons/constr_SEQUENCE.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
asn_SEQUENCE_specifics_s
{
typedef
struct
asn_SEQUENCE_specifics_s
{
/*
/*
* Target structure description.
* Target structure description.
...
@@ -39,4 +43,8 @@ der_type_encoder_f SEQUENCE_encode_der;
...
@@ -39,4 +43,8 @@ der_type_encoder_f SEQUENCE_encode_der;
xer_type_decoder_f
SEQUENCE_decode_xer
;
xer_type_decoder_f
SEQUENCE_decode_xer
;
xer_type_encoder_f
SEQUENCE_encode_xer
;
xer_type_encoder_f
SEQUENCE_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _CONSTR_SEQUENCE_H_ */
#endif
/* _CONSTR_SEQUENCE_H_ */
skeletons/constr_SEQUENCE_OF.h
View file @
21b41ac1
...
@@ -8,6 +8,10 @@
...
@@ -8,6 +8,10 @@
#include <asn_application.h>
#include <asn_application.h>
#include <constr_SET_OF.h>
/* Implemented using SET OF */
#include <constr_SET_OF.h>
/* Implemented using SET OF */
#ifdef __cplusplus
extern
"C"
{
#endif
/*
/*
* A set specialized functions dealing with the SEQUENCE OF type.
* A set specialized functions dealing with the SEQUENCE OF type.
* Generally implemented using SET OF.
* Generally implemented using SET OF.
...
@@ -20,4 +24,8 @@
...
@@ -20,4 +24,8 @@
der_type_encoder_f
SEQUENCE_OF_encode_der
;
der_type_encoder_f
SEQUENCE_OF_encode_der
;
xer_type_encoder_f
SEQUENCE_OF_encode_xer
;
xer_type_encoder_f
SEQUENCE_OF_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _CONSTR_SET_OF_H_ */
#endif
/* _CONSTR_SET_OF_H_ */
skeletons/constr_SET.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
asn_SET_specifics_s
{
typedef
struct
asn_SET_specifics_s
{
/*
/*
...
@@ -71,4 +75,8 @@ xer_type_encoder_f SET_encode_xer;
...
@@ -71,4 +75,8 @@ xer_type_encoder_f SET_encode_xer;
|= (1 << ((8 * sizeof(unsigned int)) - 1 \
|= (1 << ((8 * sizeof(unsigned int)) - 1 \
- ((PR_x) % (8 * sizeof(unsigned int))))))
- ((PR_x) % (8 * sizeof(unsigned int))))))
#ifdef __cplusplus
}
#endif
#endif
/* _CONSTR_SET_H_ */
#endif
/* _CONSTR_SET_H_ */
skeletons/constr_SET_OF.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
asn_SET_OF_specifics_s
{
typedef
struct
asn_SET_OF_specifics_s
{
/*
/*
* Target structure description.
* Target structure description.
...
@@ -29,4 +33,8 @@ der_type_encoder_f SET_OF_encode_der;
...
@@ -29,4 +33,8 @@ der_type_encoder_f SET_OF_encode_der;
xer_type_decoder_f
SET_OF_decode_xer
;
xer_type_decoder_f
SET_OF_decode_xer
;
xer_type_encoder_f
SET_OF_encode_xer
;
xer_type_encoder_f
SET_OF_encode_xer
;
#ifdef __cplusplus
}
#endif
#endif
/* _CONSTR_SET_OF_H_ */
#endif
/* _CONSTR_SET_OF_H_ */
skeletons/constr_TYPE.h
View file @
21b41ac1
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <ber_tlv_length.h>
#include <ber_tlv_length.h>
#include <ber_tlv_tag.h>
#include <ber_tlv_tag.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_member_s
;
/* Forward declaration */
struct
asn_TYPE_member_s
;
/* Forward declaration */
...
@@ -157,4 +161,8 @@ int asn_fprint(FILE *stream, /* Destination stream descriptor */
...
@@ -157,4 +161,8 @@ int asn_fprint(FILE *stream, /* Destination stream descriptor */
asn_TYPE_descriptor_t
*
td
,
/* ASN.1 type descriptor */
asn_TYPE_descriptor_t
*
td
,
/* ASN.1 type descriptor */
const
void
*
struct_ptr
);
/* Structure to be printed */
const
void
*
struct_ptr
);
/* Structure to be printed */
#ifdef __cplusplus
}
#endif
#endif
/* _CONSTR_TYPE_H_ */
#endif
/* _CONSTR_TYPE_H_ */
skeletons/constraints.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_system.h>
/* Platform-dependent types */
#include <asn_system.h>
/* Platform-dependent types */
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
/*
/*
...
@@ -51,4 +55,8 @@ asn_constr_check_f asn_generic_unknown_constraint; /* Not fully supported */
...
@@ -51,4 +55,8 @@ asn_constr_check_f asn_generic_unknown_constraint; /* Not fully supported */
void
_asn_i_log_error
(
asn_app_consume_bytes_f
*
,
void
*
key
,
void
_asn_i_log_error
(
asn_app_consume_bytes_f
*
,
void
*
key
,
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
3
,
4
)));
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
3
,
4
)));
#ifdef __cplusplus
}
#endif
#endif
/* _ASN1_CONSTRAINTS_VALIDATOR_H_ */
#endif
/* _ASN1_CONSTRAINTS_VALIDATOR_H_ */
skeletons/der_encoder.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
/*
/*
...
@@ -56,4 +60,8 @@ ssize_t der_write_tags(
...
@@ -56,4 +60,8 @@ ssize_t der_write_tags(
void
*
app_key
void
*
app_key
);
);
#ifdef __cplusplus
}
#endif
#endif
/* _DER_ENCODER_H_ */
#endif
/* _DER_ENCODER_H_ */
skeletons/xer_decoder.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
/*
/*
...
@@ -95,4 +99,8 @@ int xer_is_whitespace(const void *chunk_buf, size_t chunk_size);
...
@@ -95,4 +99,8 @@ int xer_is_whitespace(const void *chunk_buf, size_t chunk_size);
*/
*/
int
xer_skip_unknown
(
xer_check_tag_e
tcv
,
ber_tlv_len_t
*
depth
);
int
xer_skip_unknown
(
xer_check_tag_e
tcv
,
ber_tlv_len_t
*
depth
);
#ifdef __cplusplus
}
#endif
#endif
/* _XER_DECODER_H_ */
#endif
/* _XER_DECODER_H_ */
skeletons/xer_encoder.h
View file @
21b41ac1
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
#include <asn_application.h>
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
/* Flags used by the xer_encode() and (*xer_type_encoder_f), defined below */
/* Flags used by the xer_encode() and (*xer_type_encoder_f), defined below */
...
@@ -48,4 +52,8 @@ typedef asn_enc_rval_t (xer_type_encoder_f)(
...
@@ -48,4 +52,8 @@ typedef asn_enc_rval_t (xer_type_encoder_f)(
void
*
app_key
/* Arbitrary callback argument */
void
*
app_key
/* Arbitrary callback argument */
);
);
#ifdef __cplusplus
}
#endif
#endif
/* _XER_ENCODER_H_ */
#endif
/* _XER_ENCODER_H_ */
skeletons/xer_support.h
View file @
21b41ac1
...
@@ -8,6 +8,10 @@
...
@@ -8,6 +8,10 @@
#include <asn_system.h>
/* Platform-specific types */
#include <asn_system.h>
/* Platform-specific types */
#ifdef __cplusplus
extern
"C"
{
#endif
/*
/*
* Types of data transferred to the application.
* Types of data transferred to the application.
*/
*/
...
@@ -44,4 +48,8 @@ typedef int (pxml_callback_f)(pxml_chunk_type_e _type,
...
@@ -44,4 +48,8 @@ typedef int (pxml_callback_f)(pxml_chunk_type_e _type,
ssize_t
pxml_parse
(
int
*
_stateContext
,
const
void
*
_buf
,
size_t
_size
,
ssize_t
pxml_parse
(
int
*
_stateContext
,
const
void
*
_buf
,
size_t
_size
,
pxml_callback_f
*
cb
,
void
*
_key
);
pxml_callback_f
*
cb
,
void
*
_key
);
#ifdef __cplusplus
}
#endif
#endif
/* _XER_SUPPORT_H_ */
#endif
/* _XER_SUPPORT_H_ */
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