update error codes

This closes #180
This commit is contained in:
Steffen Jaeckel 2017-03-31 15:12:12 +02:00
parent 1f0daf1eff
commit 08503a02f5
2 changed files with 12 additions and 6 deletions

View File

@ -55,9 +55,12 @@ enum {
CRYPT_FILE_NOTFOUND, /* File Not Found */
CRYPT_PK_INVALID_TYPE, /* Invalid type of PK key */
CRYPT_OVERFLOW, /* An overflow of a value was prevented */
CRYPT_PK_DUP, /* Duplicate key already in key ring */
CRYPT_PK_NOT_FOUND, /* Key not found in keyring */
CRYPT_OVERFLOW, /* An overflow of a value was detected/prevented */
CRYPT_UNUSED1, /* UNUSED1 */
CRYPT_UNUSED2, /* UNUSED2 */
CRYPT_PK_INVALID_SIZE, /* Invalid size input for PK parameters */
CRYPT_INVALID_PRIME_SIZE,/* Invalid size of prime requested */

View File

@ -45,9 +45,12 @@ static const char * const err_2_str[] =
"File Not Found",
"Invalid PK type.",
"Invalid PK system.",
"Duplicate PK key found on keyring.",
"Key not found in keyring.",
"An overflow of a value was detected/prevented.",
"UNUSED1.",
"UNUSED2.",
"Invalid sized parameter.",
"Invalid size for prime.",