File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1138,10 +1138,9 @@ static int RequestAuthentication(WS_UserAuthData* authData,
11381138 }
11391139
11401140
1141+ #ifdef WOLFSSL_FPKI
11411142 if (ret == WOLFSSH_USERAUTH_SUCCESS &&
11421143 authData -> type == WOLFSSH_USERAUTH_PUBLICKEY ) {
1143-
1144- #ifdef WOLFSSL_FPKI
11451144 /* compare user name to UPN in certificate */
11461145 if (authData -> sf .publicKey .isCert ) {
11471146 DecodedCert * dCert ;
@@ -1204,8 +1203,11 @@ static int RequestAuthentication(WS_UserAuthData* authData,
12041203 #endif
12051204 }
12061205 }
1206+ }
12071207 #endif
12081208
1209+ if (ret == WOLFSSH_USERAUTH_SUCCESS &&
1210+ authData -> type == WOLFSSH_USERAUTH_PUBLICKEY ) {
12091211 /* if this is a certificate and no specific authorized keys file has
12101212 * been set then rely on CA to have verified the cert */
12111213 if (authData -> sf .publicKey .isCert &&
You can’t perform that action at this time.
0 commit comments