Author: biurrun Date: Fri Nov 27 13:40:21 2009 New Revision: 1857 Log: Move PISA_CERT_LENGTH definition to the only place it is used. Modified: trunk/community-operator/co_common_packets.h trunk/libpisa/global.h Modified: trunk/community-operator/co_common_packets.h ============================================================================== --- trunk/community-operator/co_common_packets.h Fri Nov 27 13:36:18 2009 (r1856) +++ trunk/community-operator/co_common_packets.h Fri Nov 27 13:40:21 2009 (r1857) @@ -21,6 +21,18 @@ #define DENY_HIT_EXPIRED 1 #define DENY_UNKNOWN_ERROR 2 +/* FIXME: The entire certificate string should be 1760 bytes, i.e., + * = public key(768 bytes) + certificate(224 bytes) + signature(768 bytes) + * + * However, as a packet with size more than 1404 bytes cannot be sent as a + * single UDP packet, certificate length will be decreased to 992 bytes, + * which means public key will not be included in the packet. + * + * = certificate(224 bytes) + signature(768 bytes) + */ +//#define PISA_CERT_LENGTH 1760 +#define PISA_CERT_LENGTH 992 + typedef struct co_certificate_request { Modified: trunk/libpisa/global.h ============================================================================== --- trunk/libpisa/global.h Fri Nov 27 13:36:18 2009 (r1856) +++ trunk/libpisa/global.h Fri Nov 27 13:40:21 2009 (r1857) @@ -130,18 +130,6 @@ #define POLL_SCHED 4 #define POLL_FD_COUNT 5 -/* FIXME: The entire certificate string should be 1760 bytes, i.e., - * = public key(768 bytes) + certificate(224 bytes) + signature(768 bytes) - * - * However, as a packet with size more than 1404 bytes cannot be sent as a - * single UDP packet, certificate length will be decreased to 992 bytes, - * which means public key will not be included in the packet. - * - * = certificate(224 bytes) + signature(768 bytes) - */ -//#define PISA_CERT_LENGTH 1760 -#define PISA_CERT_LENGTH 992 - /** * Types which are necessary for TLV(Type-Length-Value) */