Richard Levitte - VMS Whacker <[EMAIL PROTECTED]>:

> In crypto/bio/b_sock.c, there's a call to getsockopt() that gets &size
> as last argument.  size is of type int, but according to X/Open, the
> socket routines like getsockopt() shall get sizes with the type
> size_t. [...]
> Another solution would be to cast &size to (void *) <hawk, spit>...
> Uhmmm, actually haven't tested that yet, I'll come back on it...

That's not a solution, since size_t could be unsigned long and could
have an entirely different representation than int.  As likely all
systems that declare getsockopt() to take an int * don't have problems
with mixing those types, nothings speaks against doing things right
and use a size_t variable to store the size.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to