aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ffi/ffi_block.cpp')
-rw-r--r--src/lib/ffi/ffi_block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffi/ffi_block.cpp b/src/lib/ffi/ffi_block.cpp
index fa5c25c57..eee540697 100644
--- a/src/lib/ffi/ffi_block.cpp
+++ b/src/lib/ffi/ffi_block.cpp
@@ -22,11 +22,11 @@ int botan_block_cipher_init(botan_block_cipher_t* bc, const char* bc_name)
*bc = nullptr;
- std::unique_ptr<Botan::BlockCipher> cipher(Botan::BlockCipher::create(bc_name));
+ auto cipher = Botan::BlockCipher::create(bc_name);
if(cipher == nullptr)
return BOTAN_FFI_ERROR_NOT_IMPLEMENTED;
- *bc = new botan_block_cipher_struct(cipher.release());
+ *bc = new botan_block_cipher_struct(std::move(cipher));
return BOTAN_FFI_SUCCESS;
});
}