/*
* NULL basic type description.
*/
-static ber_tlv_tag_t asn_DEF_NULL_tags[] = {
+static const ber_tlv_tag_t asn_DEF_NULL_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (5 << 2))
};
asn_TYPE_descriptor_t asn_DEF_NULL = {
erval.structure_ptr = ptr;
}
- _ASN_ENCODED_OK(erval);
+ ASN__ENCODED_OK(erval);
}
asn_enc_rval_t
/* XMLNullValue is empty */
er.encoded = 0;
- _ASN_ENCODED_OK(er);
+ ASN__ENCODED_OK(er);
}
NULL__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, size_t chunk_size) {
(void)td;
(void)sptr;
+ (void)chunk_buf; /* Going to be empty according to the rules below. */
- if(xer_is_whitespace(chunk_buf, chunk_size))
- return XPBD_BODY_CONSUMED;
- else
+ /*
+ * There must be no content in self-terminating <NULL/> tag.
+ */
+ if(chunk_size)
return XPBD_BROKEN_ENCODING;
+ else
+ return XPBD_BODY_CONSUMED;
}
asn_dec_rval_t
if(*sptr) {
*(NULL_t *)*sptr = 0;
} else {
- _ASN_DECODE_FAILED;
+ ASN__DECODE_FAILED;
}
}
(void)po;
er.encoded = 0;
- _ASN_ENCODED_OK(er);
+ ASN__ENCODED_OK(er);
}