diff --git a/src/libopensc/errors.c b/src/libopensc/errors.c index eb41ec56..e83f623e 100644 --- a/src/libopensc/errors.c +++ b/src/libopensc/errors.c @@ -90,6 +90,7 @@ const char *sc_strerror(int error) "Key length/algorithm not supported by card", "No default (transport) key available", "The PKCS#15 Key/certificate ID specified is not unique", + "Unable to load key and certificate(s) from file", }; const int p15i_base = -SC_ERROR_PKCS15INIT; const char *misc_errors[] = { diff --git a/src/libopensc/errors.h b/src/libopensc/errors.h index 474d6fad..c3aa158b 100644 --- a/src/libopensc/errors.h +++ b/src/libopensc/errors.h @@ -92,6 +92,7 @@ extern "C" { #define SC_ERROR_INCOMPATIBLE_KEY -1503 #define SC_ERROR_NO_DEFAULT_KEY -1504 #define SC_ERROR_ID_NOT_UNIQUE -1505 +#define SC_ERROR_CANNOT_LOAD_KEY -1006 /* Errors that do not fit the categories above */ #define SC_ERROR_UNKNOWN -1900