aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-04-26 13:48:33 -0400
committerJack Lloyd <[email protected]>2019-04-26 13:48:33 -0400
commitd7b26fdfd3e92ba173235eccb0464c93a2970656 (patch)
tree8916000d4f2cb8963ec5537b487be214ec18f3d9 /src/lib/prov
parent3737e284f020ebc0830d28080439e3c3e8db99ff (diff)
Add error_code to PKCS11 return exception
Diffstat (limited to 'src/lib/prov')
-rw-r--r--src/lib/prov/pkcs11/p11.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/prov/pkcs11/p11.h b/src/lib/prov/pkcs11/p11.h
index 6283d0ce2..043b1795a 100644
--- a/src/lib/prov/pkcs11/p11.h
+++ b/src/lib/prov/pkcs11/p11.h
@@ -2892,6 +2892,11 @@ class BOTAN_PUBLIC_API(2,0) PKCS11_ReturnError final : public PKCS11_Error
return m_return_val;
}
+ int error_code() const noexcept override
+ {
+ return static_cast<int>(m_return_val);
+ }
+
private:
const ReturnValue m_return_val;
};