From 496754c12fe2ed03f1f2fdb59e4bdfceaeddfb3e Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 23 Sep 2020 11:36:45 -0600 Subject: [PATCH] add debug message --- src/internal.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/internal.c b/src/internal.c index 53f1c00..5b7f86d 100644 --- a/src/internal.c +++ b/src/internal.c @@ -3950,8 +3950,10 @@ static int DoUserAuthRequestPublicKey(WOLFSSH* ssh, WS_UserAuthData* authData, pkTypeId = NameToId((char*)pk->publicKeyType, pk->publicKeyTypeSz); - if (pkTypeId == ID_UNKNOWN) + if (pkTypeId == ID_UNKNOWN) { + WLOG(WS_LOG_DEBUG, "DUARPK: Unknown / Unsupported key type"); ret = WS_INVALID_ALGO_ID; + } if (ret == WS_SUCCESS) { hashId = HashForId(pkTypeId); @@ -4007,7 +4009,8 @@ static int DoUserAuthRequestPublicKey(WOLFSSH* ssh, WS_UserAuthData* authData, } if (ret != WS_SUCCESS) { - WLOG(WS_LOG_DEBUG, "DUARPK: signature compare failure"); + WLOG(WS_LOG_DEBUG, "DUARPK: signature compare failure : [%d]", + ret); ret = SendUserAuthFailure(ssh, 0); } else {