diff options
-rw-r--r-- | src/lib/prov/pkcs11/p11.h | 5 |
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; }; |