diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tls/tls_extensions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/tls_extensions.cpp b/src/lib/tls/tls_extensions.cpp index 7692b2fd3..dfd909c7c 100644 --- a/src/lib/tls/tls_extensions.cpp +++ b/src/lib/tls/tls_extensions.cpp @@ -407,13 +407,13 @@ Supported_Point_Formats::Supported_Point_Formats(TLS_Data_Reader& reader, { uint8_t format = reader.get_byte(); - if(format == UNCOMPRESSED) + if(static_cast<ECPointFormat>(format) == UNCOMPRESSED) { m_prefers_compressed = false; reader.discard_next(len-i-1); return; } - else if(format == ANSIX962_COMPRESSED_PRIME) + else if(static_cast<ECPointFormat>(format) == ANSIX962_COMPRESSED_PRIME) { m_prefers_compressed = true; reader.discard_next(len-i-1); |