mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibCrypto: Fix some issues preventing compilation w/ clang 10
This commit is contained in:
parent
d497521d2b
commit
2a241a11bb
Notes:
sideshowbarker
2024-07-19 05:59:21 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/2a241a11bbf Pull-request: https://github.com/SerenityOS/serenity/pull/2441
3 changed files with 2 additions and 3 deletions
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue