diff options
author | Simon Warta <[email protected]> | 2015-06-29 13:11:23 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-30 10:38:23 +0200 |
commit | 8668ce8753b10e944bdc72b6e66d752759c7e710 (patch) | |
tree | 787e9829c871748b34594d35f3a5e6569ccdbb31 /src/tests/test_pubkey.cpp | |
parent | b90187419f64b6d38d19c888985d58f902336677 (diff) |
tests: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/tests/test_pubkey.cpp')
-rw-r--r-- | src/tests/test_pubkey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_pubkey.cpp b/src/tests/test_pubkey.cpp index bde32c687..00ece8559 100644 --- a/src/tests/test_pubkey.cpp +++ b/src/tests/test_pubkey.cpp @@ -254,7 +254,7 @@ size_t validate_signature(PK_Verifier& v, PK_Signer& s, const std::string& algo, PK_TEST(v.verify_message(message, sig), "Correct signature is valid"); - zero_mem(&sig[0], sig.size()); + zero_mem(sig.data(), sig.size()); PK_TEST(!v.verify_message(message, sig), "All-zero signature is invalid"); |