summaryrefslogtreecommitdiff
path: root/lib/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-18 21:09:11 +0200
committerEdoardo La Greca2025-08-18 21:09:11 +0200
commit7341ead2aade10ea1b833e94275277658741883a (patch)
tree46495f24c54278d50aa0da5046822fbe502f3f14 /lib/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt
parent1e50cf9c224d03896f176f3718ff80ef1659e9c2 (diff)
switch to multi-module project structure
Diffstat (limited to 'lib/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt')
-rw-r--r--lib/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt b/lib/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt
new file mode 100644
index 0000000..a6495b1
--- /dev/null
+++ b/lib/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt
@@ -0,0 +1,12 @@
+/**
+ * This class (with an ugly ass name) implements the authentication procedure for the p9any meta-protocol version 2,
+ * hinting at the usage of dp9ik during negotiation and failing if it's unavailable.
+ *
+ * The 9P protocol does not provide a default authentication method. However, since NineKt must work with 9front's
+ * default authenticated 9P service, it must implement the p9any meta-protocol, preferably version 2.
+ */
+class Authenticator9PAnyV2DP9IK : Authenticator {
+ override fun authenticate(username: String, key: List<UByte>, readFun: () -> List<UByte>, writeFun: (List<UByte>) -> Unit) {
+
+ }
+} \ No newline at end of file