Skip to content

Commit

Permalink
style: use abbreviation
Browse files Browse the repository at this point in the history
  • Loading branch information
YuSheng committed Nov 13, 2024
1 parent 98aaf0c commit c29d43c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions message/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ const (

var typeStr map[IkePayloadType]string = map[IkePayloadType]string{
NoNext: "NoNext",
TypeSA: "Security Association",
TypeKE: "Key Exchange",
TypeIDi: "Identification - Initiator",
TypeIDr: "Identification - Responder",
TypeCERT: "Certificate",
TypeCERTreq: "Certificate Request",
TypeAUTH: "Authentication",
TypeNiNr: "Nonce",
TypeN: "Notify",
TypeD: "Delete",
TypeV: "Vendor ID",
TypeTSi: "Traffic Selector - Initiator",
TypeTSr: "Traffic Selector - Responder",
TypeSK: "Encrypted and Authenticated",
TypeCP: "Configuration",
TypeEAP: "Extensible Authentication",
TypeSA: "SA",
TypeKE: "KE",
TypeIDi: "IDi",
TypeIDr: "IDr",
TypeCERT: "CERT",
TypeCERTreq: "CERTreq",
TypeAUTH: "AUTH",
TypeNiNr: "NiNr",
TypeN: "N",
TypeD: "D",
TypeV: "V",
TypeTSi: "TSi",
TypeTSr: "TSr",
TypeSK: "SK",
TypeCP: "CP",
TypeEAP: "EAP",
}

// RFC 7296: 3.2. Generic Payload Header
Expand Down

0 comments on commit c29d43c

Please sign in to comment.