2004-06-03 03:38:44 +00:00
|
|
|
/*-
|
2017-10-18 04:27:33 +00:00
|
|
|
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
|
2004-06-03 03:38:44 +00:00
|
|
|
* Redistribution and modifications are permitted subject to BSD license.
|
|
|
|
*/
|
|
|
|
#ifndef _PrintableString_H_
|
|
|
|
#define _PrintableString_H_
|
|
|
|
|
|
|
|
#include <OCTET_STRING.h>
|
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-09-24 21:00:50 +00:00
|
|
|
typedef OCTET_STRING_t PrintableString_t; /* Implemented via OCTET STRING */
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-09-29 13:26:15 +00:00
|
|
|
extern asn_TYPE_descriptor_t asn_DEF_PrintableString;
|
Move type operations to another structure
Every type has free, print, check_constraints, ber_decoder, der_encoder,
xer_decoder, xer_encoder, uper_decoder, uper_encoder and outmost_tag
operations. We move them out to a separate structure asn_TYPE_operation_t.
Combined with previous logic simplification, these operations are based
on ASN.1 basic types, constructed types and string types. So we can
reduce the space occupied by asn_TYPE_descriptor_t variables.
2017-08-19 17:25:45 +00:00
|
|
|
extern asn_TYPE_operation_t asn_OP_PrintableString;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
|
|
|
asn_constr_check_f PrintableString_constraint;
|
|
|
|
|
2017-08-10 09:14:59 +00:00
|
|
|
#define PrintableString_free OCTET_STRING_free
|
|
|
|
#define PrintableString_print OCTET_STRING_print_utf8
|
|
|
|
#define PrintableString_compare OCTET_STRING_compare
|
|
|
|
#define PrintableString_decode_ber OCTET_STRING_decode_ber
|
|
|
|
#define PrintableString_encode_der OCTET_STRING_encode_der
|
|
|
|
#define PrintableString_decode_xer OCTET_STRING_decode_xer_utf8
|
|
|
|
#define PrintableString_encode_xer OCTET_STRING_encode_xer_utf8
|
|
|
|
#define PrintableString_decode_uper OCTET_STRING_decode_uper
|
|
|
|
#define PrintableString_encode_uper OCTET_STRING_encode_uper
|
2016-05-16 05:50:09 +00:00
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
#endif /* _PrintableString_H_ */
|