#12 Truncation errors on Mac OS X 10.8.4 and OpenSSL 1.0.1e

v1.0 (example)
open
nobody
None
5
2014-08-15
2013-12-14
No

$ gcc -I /usr/local/ssl/macosx-x64/include/ /usr/local/ssl/macosx-x64/lib/libssl.a -o sslscan sslscan.c

sslscan.c:566:41: warning: implicit declaration of function
'SSLv2_client_method' is invalid in C99 [-Wimplicit-function-declaration]
...if (sslCipherPointer->sslMethod == SSLv2_client_method())
^
sslscan.c:566:38: warning: comparison between pointer and integer
('SSL_METHOD ' (aka 'struct ssl_method_st ') and 'int')
...if (sslCipherPointer->sslMethod == SSLv2_client_method())
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
sslscan.c:691:22: warning: comparison between pointer and integer
('SSL_METHOD ' (aka 'struct ssl_method_st ') and 'int')
...if (sslMethod == SSLv2_client_method())
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
sslscan.c:811:13: warning: assigning to 'SSL_METHOD ' (aka
'struct ssl_method_st
') from 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
sslMethod = SSLv23_method();
^ ~~~~~~~~~~~~~~~
sslscan.c:1195:37: warning: incompatible integer to pointer conversion passing
'int' to parameter of type 'SSL_METHOD ' (aka 'struct ssl_method_st ')
[-Wint-conversion]
...status = defaultCipher(options, SSLv2_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:648:64: note: passing argument to parameter 'sslMethod' here
int defaultCipher(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1197:38: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...status = defaultCipher(options, SSLv3_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:648:64: note: passing argument to parameter 'sslMethod' here
int defaultCipher(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1199:38: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...status = defaultCipher(options, TLSv1_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:648:64: note: passing argument to parameter 'sslMethod' here
int defaultCipher(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1202:37: warning: incompatible integer to pointer conversion passing
'int' to parameter of type 'SSL_METHOD ' (aka 'struct ssl_method_st ')
[-Wint-conversion]
...status = defaultCipher(options, SSLv2_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:648:64: note: passing argument to parameter 'sslMethod' here
int defaultCipher(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1205:37: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...status = defaultCipher(options, SSLv3_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:648:64: note: passing argument to parameter 'sslMethod' here
int defaultCipher(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1208:37: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...status = defaultCipher(options, TLSv1_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:648:64: note: passing argument to parameter 'sslMethod' here
int defaultCipher(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1418:35: warning: incompatible integer to pointer conversion passing
'int' to parameter of type 'SSL_METHOD ' (aka 'struct ssl_method_st ')
[-Wint-conversion]
...populateCipherList(&options, SSLv2_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:128:69: note: passing argument to parameter 'sslMethod' here
int populateCipherList(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1419:35: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...populateCipherList(&options, SSLv3_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:128:69: note: passing argument to parameter 'sslMethod' here
int populateCipherList(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1420:35: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...populateCipherList(&options, TLSv1_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:128:69: note: passing argument to parameter 'sslMethod' here
int populateCipherList(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1423:35: warning: incompatible integer to pointer conversion passing
'int' to parameter of type 'SSL_METHOD ' (aka 'struct ssl_method_st ')
[-Wint-conversion]
...populateCipherList(&options, SSLv2_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:128:69: note: passing argument to parameter 'sslMethod' here
int populateCipherList(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1426:35: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...populateCipherList(&options, SSLv3_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:128:69: note: passing argument to parameter 'sslMethod' here
int populateCipherList(struct sslCheckOptions options, SSL_METHOD sslMethod)
^
sslscan.c:1429:35: warning: passing 'const SSL_METHOD ' (aka 'const struct
ssl_method_st
') to parameter of type 'SSL_METHOD ' (aka
'struct ssl_method_st
') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
...populateCipherList(&options, TLSv1_client_method());
^~~~~~~~~~~~~~~~~~~~~
sslscan.c:128:69: note: passing argument to parameter 'sslMethod' here
int populateCipherList(struct sslCheckOptions options, SSL_METHOD sslMethod)

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks