On blank, but otherwise perfectly supported card, we get an error here

(with "Unsupported card"). This needs to be improved.

This patch changes the "initialization" to "binding", so we at least
can tell people: you need to initialized an empty card first.
Needs to be improved of course.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4117 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aj 2010-03-15 10:34:18 +00:00
parent da9aa435c4
commit 0fdb4478bc
3 changed files with 3 additions and 3 deletions

View File

@ -579,7 +579,7 @@ int main(int argc, char * const argv[])
fprintf(stderr, "Trying to find a PKCS #15 compatible card...\n");
r = sc_pkcs15_bind(card, &p15card);
if (r) {
fprintf(stderr, "PKCS #15 initialization failed: %s\n", sc_strerror(r));
fprintf(stderr, "PKCS #15 binding failed: %s\n", sc_strerror(r));
err = 1;
goto end;
}

View File

@ -449,7 +449,7 @@ main(int argc, char **argv)
r = sc_pkcs15_bind(card, &p15card);
if (r) {
fprintf(stderr,
"PKCS#15 initialization failed: %s\n",
"PKCS#15 binding failed: %s\n",
sc_strerror(r));
break;
}

View File

@ -1633,7 +1633,7 @@ int main(int argc, char * const argv[])
fprintf(stderr, "Trying to find a PKCS#15 compatible card...\n");
r = sc_pkcs15_bind(card, &p15card);
if (r) {
fprintf(stderr, "PKCS#15 initialization failed: %s\n", sc_strerror(r));
fprintf(stderr, "PKCS#15 binding failed: %s\n", sc_strerror(r));
err = 1;
goto end;
}