Menu

#95 big endian vs little endian (openssl wrapper), tls handling

SVN
open
nobody
None
7
2007-10-14
2007-10-14
No

Hi All,

Just a heads up:

in http://open1x.cvs.sourceforge.net/open1x/xsupplicant/src/eap_types/tls/ossl_tls_funcs.c?view=markup&pathrev=XSUP_1_3_START_BRANCH

currently there is : int tls_funcs_get_packet(struct tls_vars *mytls_vars, int maxsize,
803 uint8_t **result, uint16_t *res_size)

so res_size is a 16 bit pointer.

line 853 more = queue_dequeue(&mytls_vars->tlsoutqueue, &dequeue_data, (uint32_t *)res_size);

transforms it into a 32 bit pointer.

it works fine, on little endian machines. It does not perform nicely unfortunately on big endian machines, like ppc.

I propose to use a localvariable to hold the data returned, or to change the maximum data that can be popped from a queue to 16 from 32 pointers.

(my im id is in the hotmail mail, if you want to contact me, Using gmt+2h).

Keep up the good work!

Thank you,
Ioan H.

Discussion


Log in to post a comment.