Skip to content

Commit 9dfa93f

Browse files
committed
Fix from review
1 parent 0bb1d1b commit 9dfa93f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/internal.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7211,7 +7211,9 @@ static int DoUserAuthRequestRsaCert(WOLFSSH* ssh, WS_UserAuthData_PublicKey* pk,
72117211
sigTypeOk = 1;
72127212
}
72137213
#ifdef WOLFSSH_CERTS
7214-
else if (pk->publicKeyFmtId == ID_X509V3_SSH_RSA) {
7214+
else if (pk->publicKeyTypeSz == 14
7215+
&& WMEMCMP(pk->publicKeyType,
7216+
"x509v3-ssh-rsa", 14) == 0) {
72157217
/* RFC 6187 Section 5: the signature uses the underlying
72167218
* RSA algorithm, not the X.509 key type name. */
72177219
if ((publicKeyTypeSz == 7

0 commit comments

Comments
 (0)