diff --git a/src/libopensc/errors.c b/src/libopensc/errors.c index b48cc203..5d9fd8d8 100644 --- a/src/libopensc/errors.c +++ b/src/libopensc/errors.c @@ -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[] = { diff --git a/src/libopensc/errors.h b/src/libopensc/errors.h index 07136c20..620775df 100644 --- a/src/libopensc/errors.h +++ b/src/libopensc/errors.h @@ -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