From ecc469d570e88833c44aae2bc04dd25e1a08cdb1 Mon Sep 17 00:00:00 2001 From: okir Date: Mon, 13 Oct 2003 14:34:52 +0000 Subject: [PATCH] - added some more errors git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1505 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/errors.c | 4 ++++ src/libopensc/errors.h | 4 ++++ 2 files changed, 8 insertions(+) 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