uint8_t type;
uint8_t length_hi;
uint8_t length_lo;
- uint8_t value[0];
+ uint8_t value[VAR_ARRAY];
}__attribute__((packed));
struct tlv_ssl {
struct tlv tlv;
uint8_t client;
uint32_t verify;
- uint8_t sub_tlv[0];
+ uint8_t sub_tlv[VAR_ARRAY];
}__attribute__((packed));
uint16_t wrap; /* number of allocated slots, wraps here */
uint16_t head; /* last inserted slot number */
uint16_t used; /* number of slots in use */
- struct hpack_dte dte[0]; /* dynamic table entries */
+ struct hpack_dte dte[VAR_ARRAY]; /* dynamic table entries */
};
/* supported hpack encoding/decoding errors */
* corresponding EOH. -1 if unknown */
unsigned int len[3]; /* length of different parts of the start-line */
- char l[0];
+ char l[VAR_ARRAY];
};
/* Internal representation of an HTTP message */
/* XXX 4 bytes unused */
/* Blocks representing the HTTP message itself */
- char blocks[0] __attribute__((aligned(8)));
+ char blocks[VAR_ARRAY] __attribute__((aligned(8)));
};
#endif /* _HAPROXY_HTX_T_H */
struct port_range {
int size, get, put_h, put_t; /* range size, and get/put positions */
- uint16_t ports[0]; /* array of <size> ports, in host byte order */
+ uint16_t ports[VAR_ARRAY]; /* array of <size> ports, in host byte order */
};
#endif /* _HAPROXY_PORT_RANGE_T_H */
/**** protocol-specific part ****/
union error_snapshot_ctx ctx;
- char buf[0]; /* copy of the beginning of the message for bufsize bytes */
+ char buf[VAR_ARRAY]; /* copy of the beginning of the message for bufsize bytes */
};
struct proxy {
unsigned int refcount;
struct shared_block *last_reserved;
struct shared_block *last_append;
- unsigned char data[0];
+ unsigned char data[VAR_ARRAY];
};
struct shared_context {
unsigned int max_obj_size; /* maximum object size (in bytes). */
void (*free_block)(struct shared_block *first, struct shared_block *block);
short int block_size;
- unsigned char data[0];
+ unsigned char data[VAR_ARRAY];
};
#endif /* __HAPROXY_SHCTX_T_H */
struct list ckch_inst; /* list of ckch_inst which uses this ckch_node */
struct list crtlist_entry; /* list of entries which use this store */
struct ebmb_node node;
- char path[0];
+ char path[VAR_ARRAY];
};
/* forward declarations for ckch_inst */
struct ssl_capture {
unsigned long long int xxh64;
unsigned char ciphersuite_len;
- char ciphersuite[0];
+ char ciphersuite[VAR_ARRAY];
};
#if (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L)