[openssl.org #1228] openssl/sha.h requires sys/types.h, but does not include it

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[openssl.org #1228] openssl/sha.h requires sys/types.h, but does not include it

Rich Salz via RT

The following trivial C file fails to compile in 0.9.8a:

#include <openssl/sha.h>

void
foo(void)
{
}

In file included from test.c:1:
/usr/include/openssl/sha.h:109: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:111: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:116: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:118: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:138: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:140: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:142: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:144: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:185: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:187: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:189: error: syntax error before 'size_t'
/usr/include/openssl/sha.h:191: error: syntax error before 'size_t'

This did not appear to happen in 0.9.7.  Probably this is due to
changing the API to use size_t; in sha.h I think that happened in
1.13:

revision 1.13
date: 2004-05-15 11:29:55 +0000;  author: appro;  state: Exp;  lines: +4 -4
size_t-fication of message digest APIs. We should size_t-fy more APIs...

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #1228] openssl/sha.h requires sys/types.h, but does not include it

Kurt Roeckx
On Tue, Oct 25, 2005 at 05:13:17PM +0200, Bruce Stephens via RT wrote:
>
> The following trivial C file fails to compile in 0.9.8a:
>
> #include <openssl/sha.h>

I think the following files have that problem:
md2.h
md4.h
md5.h
ripemd.h
sha.h

They should all add an include to <stddef.h>


Kurt

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]