Added Device Address Binding property to Device Object, a required property.

This commit is contained in:
skarg
2006-02-09 17:31:27 +00:00
parent f68780ea5e
commit 09dc4d1f04
+6 -2
View File
@@ -447,12 +447,11 @@ int Device_Encode_Property_APDU(
//case PROP_LOCAL_DATE: //case PROP_LOCAL_DATE:
//t = time(NULL); //t = time(NULL);
//my_tm = localtime(&t); //my_tm = localtime(&t);
// year = years since 1900
// month 1=Jan // month 1=Jan
// day = day of month // day = day of month
// wday 1=Monday...7=Sunday // wday 1=Monday...7=Sunday
//apdu_len = encode_tagged_date(&apdu[0], //apdu_len = encode_tagged_date(&apdu[0],
// my_tm->tm_year, // my_tm->tm_year+1900,
// my_tm->tm_mon + 1, // my_tm->tm_mon + 1,
// my_tm->tm_mday, ((my_tm->tm_wday == 0) ? 7 : my_tm->tm_wday)); // my_tm->tm_mday, ((my_tm->tm_wday == 0) ? 7 : my_tm->tm_wday));
//break; //break;
@@ -554,6 +553,11 @@ int Device_Encode_Property_APDU(
case PROP_NUMBER_OF_APDU_RETRIES: case PROP_NUMBER_OF_APDU_RETRIES:
apdu_len = encode_tagged_unsigned(&apdu[0], Number_Of_APDU_Retries); apdu_len = encode_tagged_unsigned(&apdu[0], Number_Of_APDU_Retries);
break; break;
case PROP_DEVICE_ADDRESS_BINDING:
apdu_len += encode_opening_tag(&apdu[0], 3);
/* put the list here, if it exists */
apdu_len += encode_closing_tag(&apdu[apdu_len], 3);
break;
default: default:
*error_class = ERROR_CLASS_PROPERTY; *error_class = ERROR_CLASS_PROPERTY;
*error_code = ERROR_CODE_UNKNOWN_PROPERTY; *error_code = ERROR_CODE_UNKNOWN_PROPERTY;