aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index 5e25104..830520c 100644
--- a/src/error.c
+++ b/src/error.c
@@ -19,6 +19,7 @@ static const char* err_msgs[] =
"Invalid argument value NULL",
"Couldn't parse",
"Invalid PKCS7 padding (wrong key?)",
+ "Not implemented",
};
const char* aesni_strerror(AesNI_StatusCode ec)
@@ -80,6 +81,7 @@ static AesNI_ErrorFormatter err_formatters[] =
&aesni_format_null_argument_error,
&aesni_format_error_strerror,
&aesni_format_error_strerror,
+ &aesni_format_error_strerror,
};
size_t aesni_format_error(
@@ -140,3 +142,9 @@ AesNI_StatusCode aesni_make_invalid_pkcs7_padding_error(
{
return aesni_make_error(err_details, AESNI_INVALID_PKCS7_PADDING_ERROR);
}
+
+AesNI_StatusCode aesni_error_not_implemented(
+ AesNI_ErrorDetails* err_details)
+{
+ return aesni_make_error(err_details, AESNI_NOT_IMPLEMENTED);
+}