Commit 6b3c2ba11174d78c317fa11299a87f6790048692

nijtmans 2019-04-12T10:46:31

Add handling of MP_ITER error-code to mp_error_to_string()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/bn_mp_error_to_string.c b/bn_mp_error_to_string.c
index 0e2af44..64e14c7 100644
--- a/bn_mp_error_to_string.c
+++ b/bn_mp_error_to_string.c
@@ -9,7 +9,8 @@ static const struct {
 } msgs[] = {
    { MP_OKAY, "Successful" },
    { MP_MEM,  "Out of heap" },
-   { MP_VAL,  "Value out of range" }
+   { MP_VAL,  "Value out of range" },
+   { MP_ITER, "Max. iterations reached" }
 };
 
 /* return a char * string for a given code */