summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-12 14:33:13 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-12 14:33:13 (GMT)
commit97924625aa344acf1f8aa2087c5996f20641ce51 (patch)
treeb1347e8f9e86fe028ba9e08e658d3777998aa748 /Swiften/Base
parent6e58eccb82f8f801143c437d9bcbf0ebbf9ed979 (diff)
downloadswift-97924625aa344acf1f8aa2087c5996f20641ce51.zip
swift-97924625aa344acf1f8aa2087c5996f20641ce51.tar.bz2
Simplified HMAC-SHA1 a bit.
Diffstat (limited to 'Swiften/Base')
-rw-r--r--Swiften/Base/ByteArray.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Base/ByteArray.h b/Swiften/Base/ByteArray.h
index 90a4907..d274663 100644
--- a/Swiften/Base/ByteArray.h
+++ b/Swiften/Base/ByteArray.h
@@ -63,6 +63,10 @@ namespace Swift {
return data_.resize(size);
}
+ void resize(size_t size, char c) {
+ return data_.resize(size, c);
+ }
+
friend ByteArray operator+(const ByteArray& a, const ByteArray&b) {
ByteArray result(a);
result.data_.insert(result.data_.end(), b.data_.begin(), b.data_.end());