aboutsummaryrefslogtreecommitdiffhomepage
path: root/oxish/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'oxish/src/lib.rs')
-rw-r--r--oxish/src/lib.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/oxish/src/lib.rs b/oxish/src/lib.rs
index d1c299c..6f36bb6 100644
--- a/oxish/src/lib.rs
+++ b/oxish/src/lib.rs
@@ -15,7 +15,6 @@ use anyhow::Context as _;
use proto::{
Completion, Decode, Decoded, Encode, Identification, IdentificationError, Ignore,
IncomingPacket, PROTOCOL, ProtoError, ReadState, WriteState,
- auth::UserAuthFailure,
crypto::{
CryptoError, CryptoProvider, Digest, HandshakeBuffer, HandshakeHash, KeyLengths,
KeySourceSide,
@@ -24,7 +23,7 @@ use proto::{
EcdhKeyExchangeInit, HostKeys, Identities, KeyExchange, KeySourceSet, NewKeys, Rekey,
ServerHostKey, SessionHostKey, StrictKeyExchange,
},
- named::{EncryptionAlgorithm, ExtensionId, MethodName},
+ named::{EncryptionAlgorithm, ExtensionId},
};
use thiserror::Error;
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};
@@ -222,14 +221,6 @@ impl<T: AsyncRead + AsyncWrite + Unpin> Connection<T> {
Ok((exchange, identities))
}
- async fn send_auth_failed(&mut self) -> Result<(), Error> {
- self.send(&UserAuthFailure {
- can_continue: &[MethodName::PublicKey],
- partial_success: false,
- })
- .await
- }
-
async fn send(&mut self, payload: &impl Encode) -> Result<(), Error> {
self.send_handshake(payload, None).await
}