If opensc is configured without OpenSSL then the compilation fails with:
cardos-tool.c:621: error: label ‘erase_state’ used but not defined

This is because cardos-tool.c is using "goto erase_state;" but the
erase_state label is defined in a #ifdef ENABLE_OPENSSL piece of code.

A possible fix is to also define a erase_state label even if
ENABLE_OPENSSL is not defined:
Index: src/tools/cardos-tool.c
===================================================================
--- src/tools/cardos-tool.c     (révision 3686)
+++ src/tools/cardos-tool.c     (copie de travail)
@@ -831,6 +831,7 @@ erase_state:
        }
        return 0;
 # else
+erase_state:
        printf("this code needs to be compiled with openssl support 
enabled.\n");
        printf("aborting\n");
        return 1;

But I have no idea if this fix is correct.

Bye

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to