NO_SUCH_CARD retcode

master
Tomek Dubrownik 2012-05-01 06:17:38 +02:00
parent d5ad446682
commit 657398da2f
3 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,8 @@
#include <openssl/sha.h>
#include "config.h"
const int NO_SUCH_CARD = LDAP_NO_SUCH_OBJECT;
static char* ldap_attrs_hashes[] = {
"uid",
"mifareIDHash",

View File

@ -2,5 +2,6 @@
#define __LDAP_H__
int ldap_dn_by_mifare(char *MifareID, char *DNOut, int *DNLength);
const int NO_SUCH_CARD;
#endif

View File

@ -45,7 +45,7 @@ void nfc_poll(void)
if (LDAPResult > 0)
{
if (LDAPResult == 1)
if (LDAPResult == NO_SUCH_CARD)
{
tts_speak("Nieznana karta.");
sleep(5);