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
cc159474
Commit
cc159474
authored
Jul 06, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add skeleton OER stubs
parent
ba68c91b
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
304 additions
and
2 deletions
+304
-2
skeletons/ANY.c
skeletons/ANY.c
+11
-0
skeletons/BIT_STRING.c
skeletons/BIT_STRING.c
+7
-0
skeletons/BMPString.c
skeletons/BMPString.c
+7
-0
skeletons/BOOLEAN.c
skeletons/BOOLEAN.c
+7
-0
skeletons/ENUMERATED.c
skeletons/ENUMERATED.c
+7
-0
skeletons/GeneralString.c
skeletons/GeneralString.c
+7
-0
skeletons/GeneralizedTime.c
skeletons/GeneralizedTime.c
+7
-0
skeletons/GraphicString.c
skeletons/GraphicString.c
+7
-0
skeletons/IA5String.c
skeletons/IA5String.c
+7
-0
skeletons/INTEGER.c
skeletons/INTEGER.c
+8
-0
skeletons/INTEGER.h
skeletons/INTEGER.h
+2
-2
skeletons/ISO646String.c
skeletons/ISO646String.c
+7
-0
skeletons/NULL.c
skeletons/NULL.c
+7
-0
skeletons/NativeEnumerated.c
skeletons/NativeEnumerated.c
+7
-0
skeletons/NativeInteger.c
skeletons/NativeInteger.c
+7
-0
skeletons/NativeReal.c
skeletons/NativeReal.c
+7
-0
skeletons/NumericString.c
skeletons/NumericString.c
+7
-0
skeletons/OBJECT_IDENTIFIER.c
skeletons/OBJECT_IDENTIFIER.c
+7
-0
skeletons/OCTET_STRING.c
skeletons/OCTET_STRING.c
+7
-0
skeletons/ObjectDescriptor.c
skeletons/ObjectDescriptor.c
+7
-0
skeletons/PrintableString.c
skeletons/PrintableString.c
+7
-0
skeletons/REAL.c
skeletons/REAL.c
+7
-0
skeletons/RELATIVE-OID.c
skeletons/RELATIVE-OID.c
+7
-0
skeletons/T61String.c
skeletons/T61String.c
+7
-0
skeletons/TeletexString.c
skeletons/TeletexString.c
+7
-0
skeletons/UTCTime.c
skeletons/UTCTime.c
+7
-0
skeletons/UTF8String.c
skeletons/UTF8String.c
+7
-0
skeletons/UniversalString.c
skeletons/UniversalString.c
+7
-0
skeletons/VideotexString.c
skeletons/VideotexString.c
+7
-0
skeletons/VisibleString.c
skeletons/VisibleString.c
+7
-0
skeletons/constr_TYPE.h
skeletons/constr_TYPE.h
+4
-0
skeletons/oer_decoder.h
skeletons/oer_decoder.h
+41
-0
skeletons/oer_encoder.h
skeletons/oer_encoder.h
+49
-0
No files found.
skeletons/ANY.c
View file @
cc159474
...
...
@@ -21,7 +21,18 @@ asn_TYPE_descriptor_t asn_DEF_ANY = {
OCTET_STRING_encode_der
,
OCTET_STRING_decode_xer_hex
,
ANY_encode_xer
,
#ifdef ASN_DISABLE_PER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
0
,
0
,
0
,
0
,
0
,
/* No PER visible constraints */
...
...
skeletons/BIT_STRING.c
View file @
cc159474
...
...
@@ -34,6 +34,13 @@ asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
OCTET_STRING_decode_uper
,
/* Unaligned PER decoder */
OCTET_STRING_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_BIT_STRING_tags
,
sizeof
(
asn_DEF_BIT_STRING_tags
)
...
...
skeletons/BMPString.c
View file @
cc159474
...
...
@@ -40,6 +40,13 @@ asn_TYPE_descriptor_t asn_DEF_BMPString = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_BMPString_tags
,
sizeof
(
asn_DEF_BMPString_tags
)
...
...
skeletons/BOOLEAN.c
View file @
cc159474
...
...
@@ -29,6 +29,13 @@ asn_TYPE_descriptor_t asn_DEF_BOOLEAN = {
BOOLEAN_decode_uper
,
/* Unaligned PER decoder */
BOOLEAN_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_BOOLEAN_tags
,
sizeof
(
asn_DEF_BOOLEAN_tags
)
/
sizeof
(
asn_DEF_BOOLEAN_tags
[
0
]),
...
...
skeletons/ENUMERATED.c
View file @
cc159474
...
...
@@ -31,6 +31,13 @@ asn_TYPE_descriptor_t asn_DEF_ENUMERATED = {
ENUMERATED_decode_uper
,
/* Unaligned PER decoder */
ENUMERATED_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_ENUMERATED_tags
,
sizeof
(
asn_DEF_ENUMERATED_tags
)
/
sizeof
(
asn_DEF_ENUMERATED_tags
[
0
]),
...
...
skeletons/GeneralString.c
View file @
cc159474
...
...
@@ -29,6 +29,13 @@ asn_TYPE_descriptor_t asn_DEF_GeneralString = {
OCTET_STRING_decode_uper
,
/* Implemented in terms of OCTET STRING */
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_GeneralString_tags
,
sizeof
(
asn_DEF_GeneralString_tags
)
...
...
skeletons/GeneralizedTime.c
View file @
cc159474
...
...
@@ -188,6 +188,13 @@ asn_TYPE_descriptor_t asn_DEF_GeneralizedTime = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_GeneralizedTime_tags
,
sizeof
(
asn_DEF_GeneralizedTime_tags
)
...
...
skeletons/GraphicString.c
View file @
cc159474
...
...
@@ -29,6 +29,13 @@ asn_TYPE_descriptor_t asn_DEF_GraphicString = {
OCTET_STRING_decode_uper
,
/* Implemented in terms of OCTET STRING */
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_GraphicString_tags
,
sizeof
(
asn_DEF_GraphicString_tags
)
...
...
skeletons/IA5String.c
View file @
cc159474
...
...
@@ -34,6 +34,13 @@ asn_TYPE_descriptor_t asn_DEF_IA5String = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_IA5String_tags
,
sizeof
(
asn_DEF_IA5String_tags
)
...
...
skeletons/INTEGER.c
View file @
cc159474
...
...
@@ -31,6 +31,14 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = {
INTEGER_decode_uper
,
/* Unaligned PER decoder */
INTEGER_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
//INTEGER_decode_oer, /* OER decoder */
//INTEGER_encode_oer, /* Canonical OER encoder */
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_INTEGER_tags
,
sizeof
(
asn_DEF_INTEGER_tags
)
/
sizeof
(
asn_DEF_INTEGER_tags
[
0
]),
...
...
skeletons/INTEGER.h
View file @
cc159474
...
...
@@ -41,8 +41,8 @@ xer_type_decoder_f INTEGER_decode_xer;
xer_type_encoder_f
INTEGER_encode_xer
;
per_type_decoder_f
INTEGER_decode_uper
;
per_type_encoder_f
INTEGER_encode_uper
;
per_type_decoder_f
INTEGER_decode_ap
er
;
per_type_encoder_f
INTEGER_encode_ap
er
;
oer_type_decoder_f
INTEGER_decode_o
er
;
oer_type_encoder_f
INTEGER_encode_o
er
;
/***********************************
* Some handy conversion routines. *
...
...
skeletons/ISO646String.c
View file @
cc159474
...
...
@@ -34,6 +34,13 @@ asn_TYPE_descriptor_t asn_DEF_ISO646String = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_ISO646String_tags
,
sizeof
(
asn_DEF_ISO646String_tags
)
...
...
skeletons/NULL.c
View file @
cc159474
...
...
@@ -30,6 +30,13 @@ asn_TYPE_descriptor_t asn_DEF_NULL = {
NULL_decode_uper
,
/* Unaligned PER decoder */
NULL_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_NULL_tags
,
sizeof
(
asn_DEF_NULL_tags
)
/
sizeof
(
asn_DEF_NULL_tags
[
0
]),
...
...
skeletons/NativeEnumerated.c
View file @
cc159474
...
...
@@ -35,6 +35,13 @@ asn_TYPE_descriptor_t asn_DEF_NativeEnumerated = {
NativeEnumerated_decode_uper
,
NativeEnumerated_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_NativeEnumerated_tags
,
sizeof
(
asn_DEF_NativeEnumerated_tags
)
/
sizeof
(
asn_DEF_NativeEnumerated_tags
[
0
]),
...
...
skeletons/NativeInteger.c
View file @
cc159474
...
...
@@ -36,6 +36,13 @@ asn_TYPE_descriptor_t asn_DEF_NativeInteger = {
NativeInteger_decode_uper
,
/* Unaligned PER decoder */
NativeInteger_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_NativeInteger_tags
,
sizeof
(
asn_DEF_NativeInteger_tags
)
/
sizeof
(
asn_DEF_NativeInteger_tags
[
0
]),
...
...
skeletons/NativeReal.c
View file @
cc159474
...
...
@@ -37,6 +37,13 @@ asn_TYPE_descriptor_t asn_DEF_NativeReal = {
NativeReal_decode_uper
,
NativeReal_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_NativeReal_tags
,
sizeof
(
asn_DEF_NativeReal_tags
)
/
sizeof
(
asn_DEF_NativeReal_tags
[
0
]),
...
...
skeletons/NumericString.c
View file @
cc159474
...
...
@@ -54,6 +54,13 @@ asn_TYPE_descriptor_t asn_DEF_NumericString = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_NumericString_tags
,
sizeof
(
asn_DEF_NumericString_tags
)
...
...
skeletons/OBJECT_IDENTIFIER.c
View file @
cc159474
...
...
@@ -32,6 +32,13 @@ asn_TYPE_descriptor_t asn_DEF_OBJECT_IDENTIFIER = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_OBJECT_IDENTIFIER_tags
,
sizeof
(
asn_DEF_OBJECT_IDENTIFIER_tags
)
...
...
skeletons/OCTET_STRING.c
View file @
cc159474
...
...
@@ -41,6 +41,13 @@ asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = {
OCTET_STRING_decode_uper
,
/* Unaligned PER decoder */
OCTET_STRING_encode_uper
,
/* Unaligned PER encoder */
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_OCTET_STRING_tags
,
sizeof
(
asn_DEF_OCTET_STRING_tags
)
...
...
skeletons/ObjectDescriptor.c
View file @
cc159474
...
...
@@ -29,6 +29,13 @@ asn_TYPE_descriptor_t asn_DEF_ObjectDescriptor = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_ObjectDescriptor_tags
,
sizeof
(
asn_DEF_ObjectDescriptor_tags
)
...
...
skeletons/PrintableString.c
View file @
cc159474
...
...
@@ -64,6 +64,13 @@ asn_TYPE_descriptor_t asn_DEF_PrintableString = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_PrintableString_tags
,
sizeof
(
asn_DEF_PrintableString_tags
)
...
...
skeletons/REAL.c
View file @
cc159474
...
...
@@ -58,6 +58,13 @@ asn_TYPE_descriptor_t asn_DEF_REAL = {
REAL_decode_uper
,
REAL_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_REAL_tags
,
sizeof
(
asn_DEF_REAL_tags
)
/
sizeof
(
asn_DEF_REAL_tags
[
0
]),
...
...
skeletons/RELATIVE-OID.c
View file @
cc159474
...
...
@@ -33,6 +33,13 @@ asn_TYPE_descriptor_t asn_DEF_RELATIVE_OID = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_RELATIVE_OID_tags
,
sizeof
(
asn_DEF_RELATIVE_OID_tags
)
...
...
skeletons/T61String.c
View file @
cc159474
...
...
@@ -29,6 +29,13 @@ asn_TYPE_descriptor_t asn_DEF_T61String = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_T61String_tags
,
sizeof
(
asn_DEF_T61String_tags
)
...
...
skeletons/TeletexString.c
View file @
cc159474
...
...
@@ -29,6 +29,13 @@ asn_TYPE_descriptor_t asn_DEF_TeletexString = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_TeletexString_tags
,
sizeof
(
asn_DEF_TeletexString_tags
)
...
...
skeletons/UTCTime.c
View file @
cc159474
...
...
@@ -45,6 +45,13 @@ asn_TYPE_descriptor_t asn_DEF_UTCTime = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_UTCTime_tags
,
sizeof
(
asn_DEF_UTCTime_tags
)
...
...
skeletons/UTF8String.c
View file @
cc159474
...
...
@@ -30,6 +30,13 @@ asn_TYPE_descriptor_t asn_DEF_UTF8String = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_UTF8String_tags
,
sizeof
(
asn_DEF_UTF8String_tags
)
...
...
skeletons/UniversalString.c
View file @
cc159474
...
...
@@ -40,6 +40,13 @@ asn_TYPE_descriptor_t asn_DEF_UniversalString = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_UniversalString_tags
,
sizeof
(
asn_DEF_UniversalString_tags
)
...
...
skeletons/VideotexString.c
View file @
cc159474
...
...
@@ -29,6 +29,13 @@ asn_TYPE_descriptor_t asn_DEF_VideotexString = {
OCTET_STRING_decode_uper
,
/* Implemented in terms of OCTET STRING */
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_VideotexString_tags
,
sizeof
(
asn_DEF_VideotexString_tags
)
...
...
skeletons/VisibleString.c
View file @
cc159474
...
...
@@ -34,6 +34,13 @@ asn_TYPE_descriptor_t asn_DEF_VisibleString = {
OCTET_STRING_decode_uper
,
OCTET_STRING_encode_uper
,
#endif
/* ASN_DISABLE_PER_SUPPORT */
#ifdef ASN_DISABLE_OER_SUPPORT
0
,
0
,
#else
0
,
0
,
#endif
/* ASN_DISABLE_OER_SUPPORT */
0
,
/* Use generic outmost tag fetcher */
asn_DEF_VisibleString_tags
,
sizeof
(
asn_DEF_VisibleString_tags
)
...
...
skeletons/constr_TYPE.h
View file @
cc159474
...
...
@@ -41,6 +41,8 @@ typedef struct asn_struct_ctx_s {
#include <xer_encoder.h>
/* Encoder into XER (XML, text) */
#include <per_decoder.h>
/* Packet Encoding Rules decoder */
#include <per_encoder.h>
/* Packet Encoding Rules encoder */
#include <oer_decoder.h>
/* Octet Encoding Rules encoder */
#include <oer_encoder.h>
/* Octet Encoding Rules encoder */
#include <constraints.h>
/* Subtype constraints support */
/*
...
...
@@ -99,6 +101,8 @@ typedef struct asn_TYPE_descriptor_s {
xer_type_encoder_f
*
xer_encoder
;
/* [Canonical] XER encoder */
per_type_decoder_f
*
uper_decoder
;
/* Unaligned PER decoder */
per_type_encoder_f
*
uper_encoder
;
/* Unaligned PER encoder */
oer_type_decoder_f
*
oer_decoder
;
/* Generic OER decoder */
oer_type_encoder_f
*
oer_encoder
;
/* Canonical OER encoder */
/***********************************************************************
* Internally useful members. Not to be used by applications directly. *
...
...
skeletons/oer_decoder.h
0 → 100644
View file @
cc159474
/*
* Copyright (c) 2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _OER_DECODER_H_
#define _OER_DECODER_H_
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
struct
asn_codec_ctx_s
;
/* Forward declaration */
/*
* The Octet Encoding Rules (OER, X.696 08/2015) decoder for any given type.
* This function may be invoked directly by the application.
*/
asn_dec_rval_t
oer_decode
(
struct
asn_codec_ctx_s
*
opt_codec_ctx
,
struct
asn_TYPE_descriptor_s
*
type_descriptor
,
void
**
struct_ptr
,
/* Pointer to a target structure's pointer */
const
void
*
buffer
,
/* Data to be decoded */
size_t
size
/* Size of that buffer */
);
/*
* Type of generic function which decodes the byte stream into the structure.
*/
typedef
asn_dec_rval_t
(
oer_type_decoder_f
)(
struct
asn_codec_ctx_s
*
opt_codec_ctx
,
struct
asn_TYPE_descriptor_s
*
type_descriptor
,
void
**
struct_ptr
,
const
void
*
buf_ptr
,
size_t
size
,
int
tag_mode
);
#ifdef __cplusplus
}
#endif
#endif
/* _OER_DECODER_H_ */
skeletons/oer_encoder.h
0 → 100644
View file @
cc159474
/*
* Copyright (c) 2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _OER_ENCODER_H_
#define _OER_ENCODER_H_
#include <asn_application.h>
#ifdef __cplusplus
extern
"C"
{
#endif
struct
asn_TYPE_descriptor_s
;
/* Forward declaration */
/*
* The Octet Encoding Rules (OER, X.696 08/2015) encoder for any type.
* This function may be invoked directly by the application.
*/
asn_enc_rval_t
oer_encode
(
struct
asn_TYPE_descriptor_s
*
type_descriptor
,
void
*
struct_ptr
,
/* Structure to be encoded */
asn_app_consume_bytes_f
*
consume_bytes_cb
,
void
*
app_key
/* Arbitrary callback argument */
);
/* A variant of oer_encode() which encodes data into the pre-allocated buffer */
asn_enc_rval_t
oer_encode_to_buffer
(
struct
asn_TYPE_descriptor_s
*
type_descriptor
,
void
*
struct_ptr
,
/* Structure to be encoded */
void
*
buffer
,
/* Pre-allocated buffer */
size_t
buffer_size
/* Initial buffer size (maximum) */
);
/*
* Type of the generic OER encoder.
*/
typedef
asn_enc_rval_t
(
oer_type_encoder_f
)(
struct
asn_TYPE_descriptor_s
*
type_descriptor
,
void
*
struct_ptr
,
/* Structure to be encoded */
asn_app_consume_bytes_f
*
consume_bytes_cb
,
/* Callback */
void
*
app_key
/* Arbitrary callback argument */
);
#ifdef __cplusplus
}
#endif
#endif
/* _OER_ENCODER_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