support 16bit payload lengths with ipmiv2

This commit is contained in:
Duncan Laurie 2005-03-16 23:17:37 +00:00
parent 04561e2433
commit f29c7e699c
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@
* TODO: these are wild guesses and should be checked
*/
#define IPMI_MAX_CONF_HEADER_SIZE 0x20
#define IPMI_MAX_PAYLOAD_SIZE 0xFF /* Includes confidentiality header/trailer */
#define IPMI_MAX_PAYLOAD_SIZE 0xFFFF /* Includes confidentiality header/trailer */
#define IPMI_MAX_CONF_TRAILER_SIZE 0x20
#define IPMI_MAX_INTEGRITY_PAD_SIZE 0x20
#define IPMI_MAX_AUTH_CODE_SIZE 0x20

View File

@ -696,7 +696,7 @@ int lanplus_encrypt_payload(uint8_t crypt_alg,
/* Currently, we only support AES */
assert(crypt_alg == IPMI_CRYPT_AES_CBC_128);
assert(input_length <= 255);
assert(input_length <= IPMI_MAX_PAYLOAD_SIZE);
/*