23 lines
779 B
Diff
23 lines
779 B
Diff
--- src/libopensc/card-entersafe.c
|
|
+++ src/libopensc/card-entersafe.c
|
|
@@ -913,7 +913,7 @@
|
|
return entersafe_compute_with_prkey(card,crgram,crgram_len,out,outlen);
|
|
}
|
|
|
|
-static int entersafe_init_pin_info(struct sc_pin_cmd_pin *pin, unsigned int num)
|
|
+static void entersafe_init_pin_info(struct sc_pin_cmd_pin *pin, unsigned int num)
|
|
{
|
|
pin->encoding = SC_PIN_ENCODING_ASCII;
|
|
pin->min_length = 4;
|
|
--- src/libopensc/card-gemsafeV1.c
|
|
+++ src/libopensc/card-gemsafeV1.c
|
|
@@ -332,7 +332,7 @@
|
|
|
|
tag = sc_asn1_find_tag(ctx, p, len, 0x8C, &tlen);
|
|
if (tag) {
|
|
- r = gemsafe_setacl(card, file, tag, type == "DF" ? 1 : 0);
|
|
+ r = gemsafe_setacl(card, file, tag, strcmp(type, "DF") ? 0 : 1);
|
|
if (r < 0) {
|
|
sc_debug(ctx, "unable to set ACL\n");
|
|
return SC_ERROR_INTERNAL;
|