aboutsummaryrefslogtreecommitdiffstats
path: root/src/codec
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-14 02:05:05 +0000
committerlloyd <[email protected]>2010-09-14 02:05:05 +0000
commit77a33b0c16880884cc0326e92c0c30d0e8444a91 (patch)
treedf2d917b312abb79c8654558399521366dbb2d14 /src/codec
parent59a9b0ef260b010606edc3384035b6aa12dd6415 (diff)
More changes to avoid vector to pointer implicit conversions
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/pem/pem.cpp4
1 files changed, 2 insertions, 2 deletions
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<byte>& 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<byte> 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;