2
0
Эх сурвалжийг харах

update error codes

This closes #180
Steffen Jaeckel 8 жил өмнө
parent
commit
08503a02f5

+ 6 - 3
src/headers/tomcrypt.h

@@ -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 */

+ 6 - 3
src/misc/error_to_string.c

@@ -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.",