diff options
author | Edoardo La Greca | 2025-08-11 20:07:05 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-11 20:07:05 +0200 |
commit | c03cb8abf4cb48e9816d8f2642e6e60823627689 (patch) | |
tree | 2ab6db50e1d7fefa892bf5c85d2dafe22fb46112 | |
parent | 1b4f96d554097e0839cd5e7562954692543abc84 (diff) |
change types of readFunand writeFun in Authenticator
-rw-r--r-- | src/main/kotlin/Authenticator.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/Authenticator9PAnyV2DP9IK.kt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/Authenticator.kt b/src/main/kotlin/Authenticator.kt index 47747f3..932004f 100644 --- a/src/main/kotlin/Authenticator.kt +++ b/src/main/kotlin/Authenticator.kt @@ -14,5 +14,5 @@ interface Authenticator { * @throws except.FailedAuthenticationException if the authentication could not be performed. A human-readable * reason for the failure can be provided if necessary. */ - fun authenticate(username: String, password: String, readFun: () -> Array<UByte>, writeFun: (b: Array<UByte>) -> Unit) + fun authenticate(username: String, password: String, readFun: () -> List<UByte>, writeFun: (b: List<UByte>) -> Unit) }
\ No newline at end of file diff --git a/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt b/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt index ec0710d..99c52a0 100644 --- a/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt +++ b/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt @@ -6,7 +6,7 @@ * default authenticated 9P service, it must implement the p9any meta-protocol, preferably version 2. */ class Authenticator9PAnyV2DP9IK : Authenticator { - override fun authenticate(username: String, password: String, readFun: () -> Array<UByte>, writeFun: (Array<UByte>) -> Unit) { - TODO("Not yet implemented") + override fun authenticate(username: String, password: String, readFun: () -> List<UByte>, writeFun: (List<UByte>) -> Unit) { + } }
\ No newline at end of file |