Commit e3ec3b27 authored by axel.maurer's avatar axel.maurer
Browse files

chenged to bwCard keys

parent 9713cc4d
......@@ -44,7 +44,7 @@
#include <twn4.sys.h>
#include <apptools.h>
#include "../KIT-Card_Keys/keys_KIT.h"
#include "../KIT-Card_Keys/keys_bwCard.h"
#define MAXIDBYTES 16
#define MAXIDBITS (MAXIDBYTES * 8)
......@@ -1077,21 +1077,22 @@ int DoDesFireCardAction(int action, char *parmStr, char *resultStr)
PrintLnDebug(mBuffer);
//File 1 lesen, wenn er existiert und in outBufferStr speichern
if (CheckForAppFile(appId, 1)){
if (!ReadDesFireCardAppFile(appId,1,byteBuffer,&bufferLen,0x40,0,AUTH_KEY_READ,resultStr)){
sprintf(mBuffer,"291,Error reading file1 of bwcard");
if (appId == BWCARD_OLD_APP){
if (CheckForAppFile(appId, 1)){
if (!ReadDesFireCardAppFile(appId,1,byteBuffer,&bufferLen,0x40,0,AUTH_KEY_READ,resultStr)){
sprintf(mBuffer,"291,Error reading file1 of bwcard");
PrintLnDebug(mBuffer);
sprintf(resultStr,"%s",mBuffer);
return(false);
}
sprintf(mBuffer,"File read:%s",(cha61r *) byteBuffer);
PrintLnDebug(mBuffer);
sprintf(outBufferStr,"%s",(char *) byteBuffer);
} else {
sprintf(mBuffer,"No Appfile 1 for 0x%x found",appId);
PrintLnDebug(mBuffer);
sprintf(resultStr,"%s",mBuffer);
return(false);
}
sprintf(mBuffer,"File read:%s",(char *) byteBuffer);
PrintLnDebug(mBuffer);
sprintf(outBufferStr,"%s",(char *) byteBuffer);
} else {
sprintf(mBuffer,"No Appfile 1 for 0x%x found",appId);
PrintLnDebug(mBuffer);
}
// Kartennummer verschlüsslen und in bwCardEnc speichern
bufferLen = sizeof(bwCardNumberEnc);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment