[Swan-dev] ikev1_close_message()

D. Hugh Redelmeier hugh at mimosa.com
Sun Aug 19 03:40:52 UTC 2018


| From: Paul Wouters <paul at nohats.ca>

| But RFC 2408 section 3.6 does mention padding for attributes:
| 
| https://tools.ietf.org/html/rfc2408#section-3.6
| 
| 	If the SA Attributes are not aligned on 4-byte boundaries,
| 	then subsequent payloads will not be aligned and any padding will
| 	be added at the end of the message to make the message 4-octet
| 	aligned.
| 
| So it seems to me that padding is appropriate.

OK.  But not padding at the end of Attributes, only at the end of the
Message.

So these calls are wrong.

(I say that without checking back at the code.  So I may have missed
something.)


More information about the Swan-dev mailing list