mirror of
https://wiilab.wiimart.org/wiimart/WiiSOAP
synced 2025-09-06 05:21:04 +02:00
Implement GetChallenge
This commit is contained in:
parent
7c7ac06509
commit
a3355a7b69
5
ias.go
5
ias.go
@ -42,6 +42,11 @@ func iasHandler(e Envelope, doc *xmlquery.Node) (bool, string) {
|
|||||||
|
|
||||||
case "GetChallenge":
|
case "GetChallenge":
|
||||||
fmt.Println("The request is valid! Responding...")
|
fmt.Println("The request is valid! Responding...")
|
||||||
|
// The official Wii Shop Channel requests a Challenge from the server, and promptly disregards it.
|
||||||
|
// (Sometimes, it may not request a challenge at all.) No attempt is made to validate the response.
|
||||||
|
// It then uses another hard-coded value in place of this returned value entirely in any situation.
|
||||||
|
// For this reason, we consider it irrelevant.
|
||||||
|
e.AddKVNode("Challenge", SharedChallenge)
|
||||||
break
|
break
|
||||||
|
|
||||||
case "GetRegistrationInfo":
|
case "GetRegistrationInfo":
|
||||||
|
5
main.go
5
main.go
@ -28,6 +28,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Any given challenge must be 10 characters or less (challenge.length > 0xb)
|
||||||
|
SharedChallenge = "NintyWhyPls"
|
||||||
|
)
|
||||||
|
|
||||||
// checkError makes error handling not as ugly and inefficient.
|
// checkError makes error handling not as ugly and inefficient.
|
||||||
func checkError(err error) {
|
func checkError(err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user