Let the authentication service able to send the public key

Signed-off-by: Arzumify <jliwin98@danwin1210.de>
This commit is contained in:
Tracker-Friendly 2024-10-02 17:45:37 +01:00
parent ddc47748fc
commit 10a48cdd1c
1 changed files with 10 additions and 0 deletions

View File

@ -1791,6 +1791,16 @@ func Main(information library.ServiceInitializationInformation) {
},
SentAt: time.Now(),
}
case 2:
// A service would like to have the public key
// Send it to them
information.Outbox <- library.InterServiceMessage{
MessageType: 2,
ServiceID: ServiceInformation.ServiceID,
ForServiceID: message.ServiceID,
Message: publicKey,
SentAt: time.Now(),
}
}
}
}()