LibCrypto: Fix some issues preventing compilation w/ clang 10

This commit is contained in:
AnotherTest 2020-05-29 19:54:23 +04:30 committed by Andreas Kling
parent d497521d2b
commit 2a241a11bb
Notes: sideshowbarker 2024-07-19 05:59:21 +09:00
3 changed files with 2 additions and 3 deletions

View file

@ -265,7 +265,7 @@ constexpr static bool der_length_sequence(ASN1::List* list, size_t in_length, si
return true;
}
static bool der_decode_sequence(const u8* in, size_t in_length, ASN1::List* list, size_t out_length, bool ordered = true)
static inline bool der_decode_sequence(const u8* in, size_t in_length, ASN1::List* list, size_t out_length, bool ordered = true)
{
if (in_length < 2) {
dbg() << "header too small";

View file

@ -53,7 +53,7 @@ public:
return builder.build();
}
virtual size_t IV_length() const { return IVSizeInBits / 8; }
virtual size_t IV_length() const override { return IVSizeInBits / 8; }
virtual Optional<ByteBuffer> encrypt(const ByteBuffer& in, ByteBuffer& out, Optional<ByteBuffer> ivec = {}) override
{

View file

@ -61,7 +61,6 @@ constexpr const char* DEFAULT_DIGEST_SUITE { "HMAC-SHA256" };
constexpr const char* DEFAULT_HASH_SUITE { "SHA256" };
constexpr const char* DEFAULT_CIPHER_SUITE { "AES_CBC" };
constexpr const char* DEFAULT_SERVER { "www.google.com" };
constexpr int DEFAULT_PORT { 443 };
// listAllTests
// Cipher