[openssl.org #1149] 0.9.8 size_t in md5.h breaks ruby ext/openssl

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

[openssl.org #1149] 0.9.8 size_t in md5.h breaks ruby ext/openssl

Rich Salz via RT

openssl-0.9.8/include/openssl/md5.h changed some definitions of 'unsigned
long' to 'size_t', but forgot to #include <sys/types.h>

This breaks compilation of ruby-1.8.2's openssl module (and probably other
things).

I don't know if this is an intentional API change - i.e. all users are now
required to #include <sys/types.h> before #include <openssl/md5.h> - or an
oversight. If the former, it should have been mentioned in the announcement
or the CHANGES file.

[The rest of openssl seems inconsistent in this regard. For example, both
bio.h and buffer.h both use size_t, but only buffer.h includes sys/types.h]

______________________________________________________________________
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 #1149] 0.9.8 size_t in md5.h breaks ruby ext/openssl

Brian Hurt-4


On Wed, 6 Jul 2005, Brian Candler via RT wrote:

>
> openssl-0.9.8/include/openssl/md5.h changed some definitions of 'unsigned
> long' to 'size_t', but forgot to #include <sys/types.h>

Actually, <stddef.h> is what you want to include to get size_t.

Brian

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