From 90598ef590e86ec2ef3831dbd374789959abe3e4 Mon Sep 17 00:00:00 2001 From: okir Date: Wed, 16 Apr 2003 10:20:22 +0000 Subject: [PATCH] - new error code SC_ERROR_CANNOT_LOAD_KEY git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1016 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/errors.c | 1 + src/libopensc/errors.h | 1 + 2 files changed, 2 insertions(+) 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