fixed a weird escaping bug in sc_read_binary(). this could affect other
functions too. needs more research. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@8 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9476addfa0
commit
4636ef6516
|
@ -50,6 +50,14 @@ int main(int argc, char **argv) {
|
|||
fprintf(stderr, "PKCS#15 card init failed: %s\n", sc_strerror(i));
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
i = sc_pkcs15_read_certificate(p15_card, 0);
|
||||
if (i) {
|
||||
fprintf(stderr, "Certificate read failed with %d\n", i);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
printf("Searching for PIN codes...\n");
|
||||
|
||||
|
@ -91,10 +99,5 @@ int main(int argc, char **argv) {
|
|||
|
||||
return 0;
|
||||
|
||||
i = sc_pkcs15_read_certificate(p15_card, 0);
|
||||
if (i) {
|
||||
fprintf(stderr, "Certificate read failed with %d\n", i);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue