aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/key_constraint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/x509/key_constraint.cpp')
-rw-r--r--src/lib/x509/key_constraint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/x509/key_constraint.cpp b/src/lib/x509/key_constraint.cpp
index dfadedac5..95a59d65f 100644
--- a/src/lib/x509/key_constraint.cpp
+++ b/src/lib/x509/key_constraint.cpp
@@ -93,7 +93,7 @@ void verify_cert_constraints_valid_for_key_type(const Public_Key& pub_key,
if((constraints & permitted) != constraints)
{
- throw Exception("Invalid " + name + " constraints " + key_constraints_to_string(constraints));
+ throw Invalid_Argument("Invalid " + name + " constraints " + key_constraints_to_string(constraints));
}
}