relaxed XER processing rules for whitespace
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@769 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/NULL.c b/skeletons/NULL.c
index 6a813fc..d5d98d9 100644
--- a/skeletons/NULL.c
+++ b/skeletons/NULL.c
@@ -67,13 +67,15 @@
}
-static ssize_t
-NULL__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, void *chunk_buf, size_t chunk_size) {
+static enum xer_pbd_rval
+NULL__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, size_t chunk_size) {
(void)td;
(void)sptr;
+
if(xer_is_whitespace(chunk_buf, chunk_size))
- return chunk_size;
- return -1;
+ return XPBD_BODY_CONSUMED;
+ else
+ return XPBD_BROKEN_ENCODING;
}
asn_dec_rval_t