diff --git a/examples/dial-psk/main.go b/examples/dial-psk/main.go index 5739b65d8..6644f0b42 100644 --- a/examples/dial-psk/main.go +++ b/examples/dial-psk/main.go @@ -19,9 +19,10 @@ func main() { // Prepare the configuration of the DTLS connection config := &dtls.Config{ PSK: func(hint []byte) ([]byte, error) { + fmt.Printf("Server's hint: %s \n", hint) return []byte{0xAB, 0xC1, 0x23}, nil }, - PSKIdentityHint: []byte("Pion DTLS"), + PSKIdentityHint: []byte("Pion DTLS Server"), CipherSuites: []dtls.CipherSuiteID{dtls.TLS_PSK_WITH_AES_128_CCM8}, } diff --git a/examples/listen-psk/main.go b/examples/listen-psk/main.go index 261914942..059951fe3 100644 --- a/examples/listen-psk/main.go +++ b/examples/listen-psk/main.go @@ -19,9 +19,10 @@ func main() { // Prepare the configuration of the DTLS connection config := &dtls.Config{ PSK: func(hint []byte) ([]byte, error) { + fmt.Printf("Client's hint: %s \n", hint) return []byte{0xAB, 0xC1, 0x23}, nil }, - PSKIdentityHint: []byte("Pion DTLS"), + PSKIdentityHint: []byte("Pion DTLS Client"), CipherSuites: []dtls.CipherSuiteID{dtls.TLS_PSK_WITH_AES_128_CCM8}, }