Skip to content

Commit 7bd9a8d

Browse files
committed
Refactor SKESK writing and check for possible incorrect password try by GnuPG.
1 parent 7c720bd commit 7bd9a8d

File tree

2 files changed

+160
-118
lines changed

2 files changed

+160
-118
lines changed

src/lib/crypto/mem.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ template <typename T, std::size_t N> struct secure_array {
123123
return &data_[0];
124124
}
125125

126+
const T *
127+
data() const
128+
{
129+
return &data_[0];
130+
}
131+
126132
std::size_t
127133
size() const
128134
{

0 commit comments

Comments
 (0)