diff options
author | lloyd <[email protected]> | 2010-09-13 20:53:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-13 20:53:31 +0000 |
commit | 4fe8a34f1869805d9115f39cad53d1fd7f7eb6c4 (patch) | |
tree | 2ff6c30d1a7d5f2244b6f1b459a5ea10b6d43fe0 /checks/validate.cpp | |
parent | 36bfef27271eadffefbc6891a9d7fa7eed7b1e10 (diff) |
Remove more uses of vector to pointer implicit conversions
Diffstat (limited to 'checks/validate.cpp')
-rw-r--r-- | checks/validate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/validate.cpp b/checks/validate.cpp index 9f6bc44ce..3c7aeeb22 100644 --- a/checks/validate.cpp +++ b/checks/validate.cpp @@ -346,7 +346,7 @@ bool failed_test(const std::string& algo, pipe.append(new Botan::Hex_Encoder); Botan::SecureVector<byte> data = Botan::hex_decode(in); - const byte* data_ptr = data; + const byte* data_ptr = &data[0]; // this can help catch errors with buffering, etc u32bit len = data.size(); @@ -394,7 +394,7 @@ bool failed_test(const std::string& algo, u32bit length = random_word(rng, pipe.remaining() - offset); Botan::SecureVector<byte> peekbuf(length); - pipe.peek(peekbuf, length, offset); + pipe.peek(&peekbuf[0], peekbuf.size(), offset); output = pipe.read_all_as_string(); |