Moved apdu decode into unit test where it was being used since it is being decoded in apdu.c in normal usage.

This commit is contained in:
skarg
2006-08-10 20:14:32 +00:00
parent e5239e3e73
commit 6230600eeb
8 changed files with 31 additions and 31 deletions
+5 -5
View File
@@ -68,6 +68,11 @@ int reject_decode_service_request(uint8_t * apdu,
return len;
}
#ifdef TEST
#include <assert.h>
#include <string.h>
#include "ctest.h"
/* decode the whole APDU - mainly used for unit testing */
int reject_decode_apdu(uint8_t * apdu,
unsigned apdu_len, uint8_t * invoke_id, uint8_t * reject_reason)
@@ -89,11 +94,6 @@ int reject_decode_apdu(uint8_t * apdu,
return len;
}
#ifdef TEST
#include <assert.h>
#include <string.h>
#include "ctest.h"
void testReject(Test * pTest)
{
uint8_t apdu[480] = { 0 };