mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
implement parsing, writing and logging of CRYPTO frames
This commit is contained in:
parent
a97536913b
commit
d2a52a1433
6 changed files with 209 additions and 1 deletions
|
@ -101,6 +101,11 @@ func parseIETFFrame(r *bytes.Reader, typeByte byte, v protocol.VersionNumber) (F
|
|||
if err != nil {
|
||||
err = qerr.Error(qerr.InvalidAckData, err.Error())
|
||||
}
|
||||
case 0x18:
|
||||
frame, err = parseCryptoFrame(r, v)
|
||||
if err != nil {
|
||||
err = qerr.Error(qerr.InvalidFrameData, err.Error())
|
||||
}
|
||||
default:
|
||||
err = qerr.Error(qerr.InvalidFrameData, fmt.Sprintf("unknown type byte 0x%x", typeByte))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue