nisse@lysator.liu.se (Niels Möller) writes:
I've checked in some changes to make nettle compile on systems which lack alloca, and on systems which lack inttypes.h.
For systems without alloca, some arbitrary limits have been placed on the input of a few functions, but I hope that won't be a problem in practice.
As I don't have access to any systems that have these problems, I'll appreciate if Simon and any other people that have seen the problems could try it out and see if it works.
I'm using the new nettle files in gsasl 0.0.13, we'll see if I get any reports about C89 incompatibilities.
A nit though, I see Nettle configure.ac says AX_CREATE_STDINT_H([nettle-types.h]), I think it is better to say AX_CREATE_STDINT_H(nettle-types.h, sys/types.h). Then sys/types.h is also searched for the C99 uint*_t etc. I recall some systems put the definitions there. I asked the AX_CREATE_STDINT_H maintainer to add this some time ago, but for some reason it hasn't happened. (Of course, alternatively, you could modify ax_create_stdint_h.m4.)
A wishlist item as well: splitting up hmac.h into hmac.h, hmac-md5.h, hmac-sha.h would be useful. Then you don't have to copy code for sha if you only need md5, and vice versa. Untested code attached, based on current CVS. (Update copyright year etc as appropriate.)
Thanks, Simon