Skip to content

Commit 6bddc92

Browse files
committed
dev
1 parent 990eb55 commit 6bddc92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: Sources/SSH/Auth.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public extension SSH {
2929
guard let rawSession else {
3030
return false
3131
}
32-
guard callSSH2 { libssh2_userauth_password_ex(rawSession, user, user.count.load(), password, password.count.load(), nil) } == LIBSSH2_ERROR_NONE, isAuthenticated else {
32+
guard callSSH2 { libssh2_userauth_password_ex(rawSession, user, user.count.load(), password, password.count.load(), nil) } == LIBSSH2_ERROR_NONE else {
3333
return false
3434
}
3535
return isAuthenticated
@@ -60,7 +60,7 @@ public extension SSH {
6060
guard let rawSession else {
6161
return false
6262
}
63-
guard callSSH2 { libssh2_userauth_publickey_fromfile_ex(rawSession, user, user.count.load(), publickeyFile, privateKeyFile, passphrase) } == LIBSSH2_ERROR_NONE, isAuthenticated else {
63+
guard callSSH2 { libssh2_userauth_publickey_fromfile_ex(rawSession, user, user.count.load(), publickeyFile, privateKeyFile, passphrase) } == LIBSSH2_ERROR_NONE else {
6464
return false
6565
}
6666
return isAuthenticated
@@ -92,7 +92,7 @@ public extension SSH {
9292
guard let rawSession else {
9393
return false
9494
}
95-
guard callSSH2 { libssh2_userauth_publickey_frommemory(rawSession, user, user.count, publickey, publickey.count, privateKey, privateKey.count, passphrase) } == LIBSSH2_ERROR_NONE, isAuthenticated else {
95+
guard callSSH2 { libssh2_userauth_publickey_frommemory(rawSession, user, user.count, publickey, publickey.count, privateKey, privateKey.count, passphrase) } == LIBSSH2_ERROR_NONE else {
9696
return false
9797
}
9898
return isAuthenticated
@@ -117,7 +117,7 @@ public extension SSH {
117117
// guard let rawSession else {
118118
// return false
119119
// }
120-
// guard callSSH2 { libssh2_userauth_hostbased_fromfile_ex(rawSession, user, user.count.load(), publickeyFile, privateKeyFile, passphrase, hostname, hostname.count.load(), user, user.count.load()) } == LIBSSH2_ERROR_NONE, isAuthenticated else {
120+
// guard callSSH2 { libssh2_userauth_hostbased_fromfile_ex(rawSession, user, user.count.load(), publickeyFile, privateKeyFile, passphrase, hostname, hostname.count.load(), user, user.count.load()) } == LIBSSH2_ERROR_NONE else {
121121
// return false
122122
// }
123123
// return isAuthenticated

0 commit comments

Comments
 (0)