diff options
author | Jack Lloyd <[email protected]> | 2017-04-14 15:27:53 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-04-14 15:27:53 -0400 |
commit | 6bb6b6344a09d4d8baaa832439df0cf1537f078e (patch) | |
tree | 8226243471ea7e79cf715ed036982e287471a432 /src/lib/ffi | |
parent | d0e4ce08973dbbc1ed28c85b67371e720e425922 (diff) |
Fix FFI cipher interface
Was totally broken, when not encrypting in one shot. (GH #1003)
Enable the test, which had been commented out :(
Diffstat (limited to 'src/lib/ffi')
-rw-r--r-- | src/lib/ffi/ffi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp index 7cf69efb3..6c97520ce 100644 --- a/src/lib/ffi/ffi.cpp +++ b/src/lib/ffi/ffi.cpp @@ -935,6 +935,7 @@ int botan_cipher_update(botan_cipher_t cipher_obj, cipher.update(mbuf); input_size -= ud; + copy_mem(output, mbuf.data(), ud); input += ud; taken += ud; @@ -946,6 +947,7 @@ int botan_cipher_update(botan_cipher_t cipher_obj, *output_written = written; *input_consumed = taken; + return 0; } catch(std::exception& e) { |