diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-05 03:17:03 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-05 12:27:15 +0200 |
commit | 9572c951524ac900d3082f762a4e197ea222703b (patch) | |
tree | 3eb4782605b87d0c7300b0a4b99127c599723c0c /Userland | |
parent | 125eab998f808f7d9341e3a2e020716ead5b9d8e (diff) | |
download | serenity-9572c951524ac900d3082f762a4e197ea222703b.zip |
LibTLS + LibCrypto: Suppress unobserved Optoinal<T> return values.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/test-crypto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/test-crypto.cpp b/Userland/test-crypto.cpp index 1f7d0699bf..601e594eb8 100644 --- a/Userland/test-crypto.cpp +++ b/Userland/test-crypto.cpp @@ -197,7 +197,7 @@ void aes_cbc(const char* message, size_t len) Crypto::Cipher::AESCipher::CBCMode cipher(ByteBuffer::wrap(secret_key, strlen(secret_key)), key_bits, Crypto::Cipher::Intent::Encryption); auto enc = cipher.create_aligned_buffer(buffer.size()); - cipher.encrypt(buffer, enc, iv); + (void)cipher.encrypt(buffer, enc, iv); if (binary) printf("%.*s", (int)enc.size(), enc.data()); @@ -579,7 +579,7 @@ void aes_cbc_test_encrypt() auto in = "This is a test! This is another test!"_b; auto out = cipher.create_aligned_buffer(in.size()); auto iv = ByteBuffer::create_zeroed(Crypto::Cipher::AESCipher::block_size()); - cipher.encrypt(in, out, iv); + (void)cipher.encrypt(in, out, iv); if (out.size() != sizeof(result)) FAIL(size mismatch); else if (memcmp(out.data(), result, out.size()) != 0) { |