henryk/libopenkey

Compilation fails due to undeclared identifier DESFIRE

Opened this issue · 0 comments

When running make (after adding CFLAGS=-Wno-deprecated-declarations) I got this error:

make_card.c:74:41: error: ‘DESFIRE’ undeclared (first use in this function)
    if(freefare_get_tag_type(tags[i]) != DESFIRE)
                                         ^
make_card.c:74:41: note: each undeclared identifier is reported only once for each function it appears in

It seems that libfreefare now uses MIFARE_DESFIRE and after replacing that in the following files, at leas they were compiled, but I can't verify if they work because I need a new reader.

examples/authenticate_card.c:                   if(freefare_get_tag_type(tags[i]) != DESFIRE)
examples/make_card.c:                   if(freefare_get_tag_type(tags[i]) != DESFIRE)
examples/own_card.c:                    if(freefare_get_tag_type(tags[i]) != DESFIRE)
pam/pam_openkey.c:                      if(freefare_get_tag_type(tag) != DESFIRE) {
tools/openkey-authenticator.c:                          if(freefare_get_tag_type(tag) != DESFIRE) {
tools/openkey-manager.c:                        if(freefare_get_tag_type(tag) != DESFIRE) {
tools/openkey-producer.c:                       if(freefare_get_tag_type(tag) != DESFIRE) {