Modified WriteProperty handler to handle context-specific, application, and constructed data. Fixed up all the demos to use new API.

This commit is contained in:
skarg
2007-01-18 21:22:40 +00:00
parent 69e9cf4ee1
commit c9e1382044
10 changed files with 132 additions and 75 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ int bacapp_decode_application_data(uint8_t * apdu,
/* FIXME: use max_apdu_len! */
(void) max_apdu_len;
if (apdu) {
if (apdu && !decode_is_context_specific(apdu)) {
tag_len = decode_tag_number_and_value(&apdu[0],
&tag_number, &len_value_type);
if (tag_len) {
@@ -215,7 +215,7 @@ int bacapp_decode_context_data(uint8_t * apdu,
/* FIXME: use max_apdu_len! */
(void) max_apdu_len;
if (apdu) {
if (apdu && decode_is_context_specific(apdu)) {
tag_len = decode_tag_number_and_value(&apdu[0],
&tag_number, &len_value_type);
if (tag_len) {