From 77a33b0c16880884cc0326e92c0c30d0e8444a91 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 14 Sep 2010 02:05:05 +0000 Subject: More changes to avoid vector to pointer implicit conversions --- src/codec/pem/pem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/codec') diff --git a/src/codec/pem/pem.cpp b/src/codec/pem/pem.cpp index 5141bee21..1fe5910f3 100644 --- a/src/codec/pem/pem.cpp +++ b/src/codec/pem/pem.cpp @@ -33,7 +33,7 @@ std::string encode(const byte der[], u32bit length, const std::string& label, std::string encode(const MemoryRegion& data, const std::string& label, u32bit width) { - return encode(data, data.size(), label, width); + return encode(&data[0], data.size(), label, width); } /* @@ -119,7 +119,7 @@ bool matches(DataSource& source, const std::string& extra, const std::string PEM_HEADER = "-----BEGIN " + extra; SecureVector search_buf(search_range); - u32bit got = source.peek(search_buf, search_buf.size(), 0); + u32bit got = source.peek(&search_buf[0], search_buf.size(), 0); if(got < PEM_HEADER.length()) return false; -- cgit v1.2.3