[PD1] Fixed stuff. Unmarshal still returns map[string]interface{}, need to fix
This commit is contained in:
parent
c131aa2aea
commit
39a0e5c01f
6 changed files with 127 additions and 96 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"PD1/internal/utils/cryptoUtils"
|
||||
"PD1/internal/utils/networking"
|
||||
"flag"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func Run() {
|
||||
|
@ -34,7 +35,11 @@ func Run() {
|
|||
|
||||
certRequestPacket := protocol.NewRequestUserCertPacket(uid)
|
||||
cl.Connection.Send(certRequestPacket)
|
||||
//certPacket := cl.Connection.Receive()
|
||||
|
||||
var certPacket protocol.Packet
|
||||
cl.Connection.Receive(&certPacket)
|
||||
uidCert := (certPacket.Body).(protocol.SendUserCertPacket)
|
||||
fmt.Println(uidCert)
|
||||
|
||||
// TODO: Encrypt message
|
||||
//submitMessage(cl, uid, cipherContent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue