diff options
author | Nuno Goncalves <[email protected]> | 2019-10-16 15:55:50 +0200 |
---|---|---|
committer | Nuno Goncalves <[email protected]> | 2019-10-16 16:11:43 +0200 |
commit | bbd1639873c098196298c83ac076f6db096654ed (patch) | |
tree | a025f16b37416f6c9d647c6e143a8152d74857cf /src/lib | |
parent | 638741499e1adc226388d889b104cefbe0049d8f (diff) |
fix missing ErrorType::RoughtimeError on switches
Signed-off-by: Nuno Goncalves <[email protected]>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ffi/ffi.cpp | 2 | ||||
-rw-r--r-- | src/lib/ffi/ffi.h | 1 | ||||
-rw-r--r-- | src/lib/utils/exceptn.cpp | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp index bd05943e9..58afb1c56 100644 --- a/src/lib/ffi/ffi.cpp +++ b/src/lib/ffi/ffi.cpp @@ -76,6 +76,8 @@ int ffi_map_error_type(Botan::ErrorType err) return BOTAN_FFI_ERROR_HTTP_ERROR; case Botan::ErrorType::TLSError: return BOTAN_FFI_ERROR_TLS_ERROR; + case Botan::ErrorType::RoughtimeError: + return BOTAN_FFI_ERROR_ROUGHTIME_ERROR; } return BOTAN_FFI_ERROR_UNKNOWN_ERROR; diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h index f140f617a..aac196494 100644 --- a/src/lib/ffi/ffi.h +++ b/src/lib/ffi/ffi.h @@ -84,6 +84,7 @@ enum BOTAN_FFI_ERROR { BOTAN_FFI_ERROR_TLS_ERROR = -75, BOTAN_FFI_ERROR_HTTP_ERROR = -76, + BOTAN_FFI_ERROR_ROUGHTIME_ERROR = -77, BOTAN_FFI_ERROR_UNKNOWN_ERROR = -100, }; diff --git a/src/lib/utils/exceptn.cpp b/src/lib/utils/exceptn.cpp index d5845e09d..e6d067f34 100644 --- a/src/lib/utils/exceptn.cpp +++ b/src/lib/utils/exceptn.cpp @@ -46,6 +46,8 @@ std::string to_string(ErrorType type) return "HttpError"; case ErrorType::InvalidTag: return "InvalidTag"; + case ErrorType::RoughtimeError: + return "RoughtimeError"; case ErrorType::OpenSSLError : return "OpenSSLError"; case ErrorType::CommonCryptoError: |