Merge pull request #285 from JacobBarthelmeh/auth

add debug message
pull/287/head
John Safranek 2020-09-24 08:45:01 -07:00 committed by GitHub
commit c37e54b2bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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 {