Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ static int PostSuccess(WOLFSSH_AGENT_CTX* agent)
}


/* Stub that has not yet been implemented */
static int PostLock(WOLFSSH_AGENT_CTX* agent,
const byte* passphrase, word32 passphraseSz)
{
Expand All @@ -378,14 +379,15 @@ static int PostLock(WOLFSSH_AGENT_CTX* agent,
if (passphraseSz < ppSz)
ppSz = passphraseSz;

WMEMCPY(pp, passphrase, passphraseSz);
WMEMCPY(pp, passphrase, ppSz);
pp[ppSz] = 0;
WLOG(WS_LOG_AGENT, "Locking with passphrase '%s'", pp);

return WS_SUCCESS;
}


/* Stub that has not yet been implemented */
static int PostUnlock(WOLFSSH_AGENT_CTX* agent,
const byte* passphrase, word32 passphraseSz)
{
Expand All @@ -398,7 +400,7 @@ static int PostUnlock(WOLFSSH_AGENT_CTX* agent,
if (passphraseSz < ppSz)
ppSz = passphraseSz;

WMEMCPY(pp, passphrase, passphraseSz);
WMEMCPY(pp, passphrase, ppSz);
pp[ppSz] = 0;
WLOG(WS_LOG_AGENT, "Unlocking with passphrase '%s'", pp);

Expand Down