- added some more errors

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1505 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-10-13 14:34:52 +00:00
parent efb19cafe6
commit ecc469d570
2 changed files with 8 additions and 0 deletions

View File

@ -96,6 +96,10 @@ const char *sc_strerror(int error)
"No default (transport) key available",
"The PKCS#15 Key/certificate ID specified is not unique",
"Unable to load key and certificate(s) from file",
"Object is not compatible with intended use",
"File template not found",
"Invalid PIN reference",
"File too small",
};
const int p15i_base = -SC_ERROR_PKCS15INIT;
const char *misc_errors[] = {

View File

@ -95,6 +95,10 @@ extern "C" {
#define SC_ERROR_NO_DEFAULT_KEY -1504
#define SC_ERROR_ID_NOT_UNIQUE -1505
#define SC_ERROR_CANNOT_LOAD_KEY -1006
#define SC_ERROR_INCOMPATIBLE_OBJECT -1007
#define SC_ERROR_TEMPLATE_NOT_FOUND -1008
#define SC_ERROR_INVALID_PIN_REFERENCE -1009
#define SC_ERROR_FILE_TOO_SMALL -1010
/* Errors that do not fit the categories above */
#define SC_ERROR_UNKNOWN -1900