Compiler warnings when using openssl-1.0.0 - beta4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Compiled the master branch from openvpn-testing.git on Fedora 12, and noticed these warnings:
- ------------------------------------------------------------------------ ssl.c: In function ‘verify_callback’:
ssl.c:944: warning: passing argument 1 of ‘sk_num’ from incompatible pointer type/usr/include/openssl/stack.h:79: note: expected ‘const struct _STACK *’ but argument is of type ‘struct stack_st_X509_REVOKED *’ ssl.c:947: warning: passing argument 1 of ‘sk_value’ from incompatible pointer type/usr/include/openssl/stack.h:80: note: expected ‘const struct _STACK *’ but argument is of type ‘struct stack_st_X509_REVOKED *’ssl.c: In function ‘init_ssl’:
ssl.c:1565: warning: passing argument 1 of ‘sk_num’ from incompatible pointer type/usr/include/openssl/stack.h:79: note: expected ‘const struct _STACK *’ but argument is of type ‘struct stack_st_X509 *’ssl.c: In function ‘print_details’:
ssl.c:1766: warning: assignment discards qualifiers from pointer target type
- ------------------------------------------------------------------------
$ rpm -q openssl openssl-devel openssl-1.0.0-0.13.beta4.fc12.x86_64 openssl-devel-1.0.0-0.13.beta4.fc12.x86_64
If nobody responds, I'll try to find some time looking into this in the near future.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkt+sSsACgkQDC186MBRfrrLHgCfRWG4wiWCcqaLR6qcFXQ+OYm1 PmwAni18mbED9jS6pwYVJxXyvUZ5Heb0
=i/Hd
-----END PGP SIGNATURE-----
Quoted 5 lines
If nobody responds, I'll try to find some time looking into this in the near future.
I did in https://community.openvpn.net/openvpn/ticket/5#comment:3
chantra
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · chantra
Quoted 5 lines
If nobody responds, I'll try to find some time looking into this in the near future.
I did in https://community.openvpn.net/openvpn/ticket/5#comment:3
Thanks a lot! I've tested compiling this patch on an older openssl-0.9.8e and openssl-1.0.0a. I've tested the patch with openssl-1.0.0a running openvpn as a client as well.
I'll do some more testing on this patch, with openssl-0.9.8e both as a server and client. If that looks good, you'll get an ACK :)
Thanks again for great work!
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkxBik4ACgkQDC186MBRfrqRrwCffr7Ufs3OXRrQ+mrfEBudbqus d3YAn033/cIamTyAfvMSlteyhR/jApjT
=M9h4
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 9 lines · chantra
Quoted 5 lines
If nobody responds, I'll try to find some time looking into this in the near future.
I did in https://community.openvpn.net/openvpn/ticket/5#comment:3
chantra
ACK
I've smoke tested this on two 32bit boxes using openssl-0.9.8* - both as OpenVPN server and client, to make sure this patch is backwards compatible. Likewise, generic quick tests have been done on a 64bit box using openssl-1.0.0. Testing seems to work very fine.
commit db3fb3d489df234c78ddcb9fce66de4d8fbb28e6
Author: chantra <[email protected]...> Date: Fri Jul 16 20:09:07 2010 +0200 Fixes openssl-1.0.0 compilation warning When compiling against OpenSSL v1.0.0, the following compiler warnings appears. [...snip...comiler warning...] Trac ticket #5 https://community.openvpn.net/openvpn/ticket/5 Signed-off-by: chantra <[email protected]...> Acked-by: David Sommerseth <[email protected]...> Signed-off-by: David Sommerseth <[email protected]...>
Applied to bugfix2.1, merged into allmerged and beta2.2. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkxq6VIACgkQDC186MBRfrp0BACfREpGZjOD0X4jC5oY+IM4Q7Bo 8FcAn3PAUDfbxZ4XpvRkovH+bn9c95gb
=JtjU
-----END PGP SIGNATURE-----