diff --git a/src/libopensc/errors.c b/src/libopensc/errors.c index f4a82de1..83a9968c 100644 --- a/src/libopensc/errors.c +++ b/src/libopensc/errors.c @@ -79,6 +79,9 @@ const char *sc_strerror(int error) "Generic PKCS #15 initialization error", "Syntax error", "Inconsistent or incomplete pkcs15 profile", + "Key length/algorithm not supported by card", + "No default (transport) key available", + "The PKCS#15 Key/certificate ID specified is not unique", }; const int p15i_base = -SC_ERROR_PKCS15INIT; const char *misc_errors[] = { diff --git a/src/libopensc/errors.h b/src/libopensc/errors.h index b8b21b59..2b9f5647 100644 --- a/src/libopensc/errors.h +++ b/src/libopensc/errors.h @@ -83,6 +83,7 @@ extern "C" { #define SC_ERROR_INCONSISTENT_PROFILE -1502 #define SC_ERROR_INCOMPATIBLE_KEY -1503 #define SC_ERROR_NO_DEFAULT_KEY -1504 +#define SC_ERROR_ID_NOT_UNIQUE -1505 /* Errors that do not fit the categories above */ #define SC_ERROR_UNKNOWN -1900