diff options
author | Ben Laurie <ben@links.org> | 2015-09-05 13:32:58 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2015-09-11 04:51:55 +0100 |
commit | df2ee0e27d2db02660c1d15fe6a3e38be9df0a60 (patch) | |
tree | 8a86e360b2f0c811186bf7009f20d13b0c65b820 /ssl | |
parent | 4c7103a5eee1dc472e256ac8818610c6e98a9a39 (diff) |
Enable -Wmissing-variable-declarations and
-Wincompatible-pointer-types-discards-qualifiers (the latter did not require
any code changes).
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/Makefile | 224 | ||||
-rw-r--r-- | ssl/ssl_asn1.c | 2 | ||||
-rw-r--r-- | ssl/ssl_lib.c | 2 |
3 files changed, 117 insertions, 111 deletions
diff --git a/ssl/Makefile b/ssl/Makefile index b8ae9c3cb1..760ceaec7d 100644 --- a/ssl/Makefile +++ b/ssl/Makefile @@ -256,71 +256,121 @@ d1_srvr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h d1_srvr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h d1_srvr.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h d1_srvr.c d1_srvr.o: packet_locl.h record/record.h ssl_locl.h -dtls1_bitmap.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h -dtls1_bitmap.o: ../include/openssl/bn.h ../include/openssl/buffer.h -dtls1_bitmap.o: ../include/openssl/comp.h ../include/openssl/crypto.h -dtls1_bitmap.o: ../include/openssl/dsa.h ../include/openssl/dtls1.h -dtls1_bitmap.o: ../include/openssl/e_os2.h ../include/openssl/ec.h -dtls1_bitmap.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h -dtls1_bitmap.o: ../include/openssl/err.h ../include/openssl/evp.h -dtls1_bitmap.o: ../include/openssl/hmac.h ../include/openssl/lhash.h -dtls1_bitmap.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h -dtls1_bitmap.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h -dtls1_bitmap.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h -dtls1_bitmap.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h -dtls1_bitmap.o: ../include/openssl/pqueue.h ../include/openssl/rsa.h -dtls1_bitmap.o: ../include/openssl/safestack.h ../include/openssl/sha.h -dtls1_bitmap.o: ../include/openssl/srtp.h ../include/openssl/ssl.h -dtls1_bitmap.o: ../include/openssl/ssl2.h ../include/openssl/ssl3.h -dtls1_bitmap.o: ../include/openssl/stack.h ../include/openssl/symhacks.h -dtls1_bitmap.o: ../include/openssl/tls1.h ../include/openssl/x509.h -dtls1_bitmap.o: ../include/openssl/x509_vfy.h dtls1_bitmap.c -dtls1_bitmap.o: record/../packet_locl.h record/../record/record.h -dtls1_bitmap.o: record/../ssl_locl.h record/dtls1_bitmap.c record/record_locl.h -rec_layer_d1.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h -rec_layer_d1.o: ../include/openssl/bn.h ../include/openssl/buffer.h -rec_layer_d1.o: ../include/openssl/comp.h ../include/openssl/crypto.h -rec_layer_d1.o: ../include/openssl/dsa.h ../include/openssl/dtls1.h -rec_layer_d1.o: ../include/openssl/e_os2.h ../include/openssl/ec.h -rec_layer_d1.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h -rec_layer_d1.o: ../include/openssl/err.h ../include/openssl/evp.h -rec_layer_d1.o: ../include/openssl/hmac.h ../include/openssl/lhash.h -rec_layer_d1.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h -rec_layer_d1.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h -rec_layer_d1.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h -rec_layer_d1.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h -rec_layer_d1.o: ../include/openssl/pqueue.h ../include/openssl/rand.h -rec_layer_d1.o: ../include/openssl/rsa.h ../include/openssl/safestack.h -rec_layer_d1.o: ../include/openssl/sha.h ../include/openssl/srtp.h -rec_layer_d1.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h -rec_layer_d1.o: ../include/openssl/ssl3.h ../include/openssl/stack.h -rec_layer_d1.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h -rec_layer_d1.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h -rec_layer_d1.o: rec_layer_d1.c record/../packet_locl.h -rec_layer_d1.o: record/../record/record.h record/../ssl_locl.h -rec_layer_d1.o: record/rec_layer_d1.c record/record_locl.h -rec_layer_s3.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h -rec_layer_s3.o: ../include/openssl/bn.h ../include/openssl/buffer.h -rec_layer_s3.o: ../include/openssl/comp.h ../include/openssl/crypto.h -rec_layer_s3.o: ../include/openssl/dsa.h ../include/openssl/dtls1.h -rec_layer_s3.o: ../include/openssl/e_os2.h ../include/openssl/ec.h -rec_layer_s3.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h -rec_layer_s3.o: ../include/openssl/err.h ../include/openssl/evp.h -rec_layer_s3.o: ../include/openssl/hmac.h ../include/openssl/lhash.h -rec_layer_s3.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h -rec_layer_s3.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h -rec_layer_s3.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h -rec_layer_s3.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h -rec_layer_s3.o: ../include/openssl/pqueue.h ../include/openssl/rand.h -rec_layer_s3.o: ../include/openssl/rsa.h ../include/openssl/safestack.h -rec_layer_s3.o: ../include/openssl/sha.h ../include/openssl/srtp.h -rec_layer_s3.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h -rec_layer_s3.o: ../include/openssl/ssl3.h ../include/openssl/stack.h -rec_layer_s3.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h -rec_layer_s3.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h -rec_layer_s3.o: rec_layer_s3.c record/../packet_locl.h -rec_layer_s3.o: record/../record/record.h record/../ssl_locl.h -rec_layer_s3.o: record/rec_layer_s3.c record/record_locl.h +record/dtls1_bitmap.o: ../e_os.h ../include/openssl/asn1.h +record/dtls1_bitmap.o: ../include/openssl/bio.h ../include/openssl/bn.h +record/dtls1_bitmap.o: ../include/openssl/buffer.h ../include/openssl/comp.h +record/dtls1_bitmap.o: ../include/openssl/crypto.h ../include/openssl/dsa.h +record/dtls1_bitmap.o: ../include/openssl/dtls1.h ../include/openssl/e_os2.h +record/dtls1_bitmap.o: ../include/openssl/ec.h ../include/openssl/ecdh.h +record/dtls1_bitmap.o: ../include/openssl/ecdsa.h ../include/openssl/err.h +record/dtls1_bitmap.o: ../include/openssl/evp.h ../include/openssl/hmac.h +record/dtls1_bitmap.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h +record/dtls1_bitmap.o: ../include/openssl/objects.h +record/dtls1_bitmap.o: ../include/openssl/opensslconf.h +record/dtls1_bitmap.o: ../include/openssl/opensslv.h +record/dtls1_bitmap.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h +record/dtls1_bitmap.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h +record/dtls1_bitmap.o: ../include/openssl/pqueue.h ../include/openssl/rsa.h +record/dtls1_bitmap.o: ../include/openssl/safestack.h ../include/openssl/sha.h +record/dtls1_bitmap.o: ../include/openssl/srtp.h ../include/openssl/ssl.h +record/dtls1_bitmap.o: ../include/openssl/ssl2.h ../include/openssl/ssl3.h +record/dtls1_bitmap.o: ../include/openssl/stack.h ../include/openssl/symhacks.h +record/dtls1_bitmap.o: ../include/openssl/tls1.h ../include/openssl/x509.h +record/dtls1_bitmap.o: ../include/openssl/x509_vfy.h packet_locl.h +record/dtls1_bitmap.o: record/dtls1_bitmap.c record/record.h +record/dtls1_bitmap.o: record/record_locl.h ssl_locl.h +record/rec_layer_d1.o: ../e_os.h ../include/openssl/asn1.h +record/rec_layer_d1.o: ../include/openssl/bio.h ../include/openssl/bn.h +record/rec_layer_d1.o: ../include/openssl/buffer.h ../include/openssl/comp.h +record/rec_layer_d1.o: ../include/openssl/crypto.h ../include/openssl/dsa.h +record/rec_layer_d1.o: ../include/openssl/dtls1.h ../include/openssl/e_os2.h +record/rec_layer_d1.o: ../include/openssl/ec.h ../include/openssl/ecdh.h +record/rec_layer_d1.o: ../include/openssl/ecdsa.h ../include/openssl/err.h +record/rec_layer_d1.o: ../include/openssl/evp.h ../include/openssl/hmac.h +record/rec_layer_d1.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h +record/rec_layer_d1.o: ../include/openssl/objects.h +record/rec_layer_d1.o: ../include/openssl/opensslconf.h +record/rec_layer_d1.o: ../include/openssl/opensslv.h +record/rec_layer_d1.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h +record/rec_layer_d1.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h +record/rec_layer_d1.o: ../include/openssl/pqueue.h ../include/openssl/rand.h +record/rec_layer_d1.o: ../include/openssl/rsa.h ../include/openssl/safestack.h +record/rec_layer_d1.o: ../include/openssl/sha.h ../include/openssl/srtp.h +record/rec_layer_d1.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h +record/rec_layer_d1.o: ../include/openssl/ssl3.h ../include/openssl/stack.h +record/rec_layer_d1.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h +record/rec_layer_d1.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h +record/rec_layer_d1.o: packet_locl.h record/rec_layer_d1.c record/record.h +record/rec_layer_d1.o: record/record_locl.h ssl_locl.h +record/rec_layer_s3.o: ../e_os.h ../include/openssl/asn1.h +record/rec_layer_s3.o: ../include/openssl/bio.h ../include/openssl/bn.h +record/rec_layer_s3.o: ../include/openssl/buffer.h ../include/openssl/comp.h +record/rec_layer_s3.o: ../include/openssl/crypto.h ../include/openssl/dsa.h +record/rec_layer_s3.o: ../include/openssl/dtls1.h ../include/openssl/e_os2.h +record/rec_layer_s3.o: ../include/openssl/ec.h ../include/openssl/ecdh.h +record/rec_layer_s3.o: ../include/openssl/ecdsa.h ../include/openssl/err.h +record/rec_layer_s3.o: ../include/openssl/evp.h ../include/openssl/hmac.h +record/rec_layer_s3.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h +record/rec_layer_s3.o: ../include/openssl/objects.h +record/rec_layer_s3.o: ../include/openssl/opensslconf.h +record/rec_layer_s3.o: ../include/openssl/opensslv.h +record/rec_layer_s3.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h +record/rec_layer_s3.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h +record/rec_layer_s3.o: ../include/openssl/pqueue.h ../include/openssl/rand.h +record/rec_layer_s3.o: ../include/openssl/rsa.h ../include/openssl/safestack.h +record/rec_layer_s3.o: ../include/openssl/sha.h ../include/openssl/srtp.h +record/rec_layer_s3.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h +record/rec_layer_s3.o: ../include/openssl/ssl3.h ../include/openssl/stack.h +record/rec_layer_s3.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h +record/rec_layer_s3.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h +record/rec_layer_s3.o: packet_locl.h record/rec_layer_s3.c record/record.h +record/rec_layer_s3.o: record/record_locl.h ssl_locl.h +record/ssl3_buffer.o: ../e_os.h ../include/openssl/asn1.h +record/ssl3_buffer.o: ../include/openssl/bio.h ../include/openssl/bn.h +record/ssl3_buffer.o: ../include/openssl/buffer.h ../include/openssl/comp.h +record/ssl3_buffer.o: ../include/openssl/crypto.h ../include/openssl/dsa.h +record/ssl3_buffer.o: ../include/openssl/dtls1.h ../include/openssl/e_os2.h +record/ssl3_buffer.o: ../include/openssl/ec.h ../include/openssl/ecdh.h +record/ssl3_buffer.o: ../include/openssl/ecdsa.h ../include/openssl/err.h +record/ssl3_buffer.o: ../include/openssl/evp.h ../include/openssl/hmac.h +record/ssl3_buffer.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h +record/ssl3_buffer.o: ../include/openssl/objects.h +record/ssl3_buffer.o: ../include/openssl/opensslconf.h +record/ssl3_buffer.o: ../include/openssl/opensslv.h +record/ssl3_buffer.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h +record/ssl3_buffer.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h +record/ssl3_buffer.o: ../include/openssl/pqueue.h ../include/openssl/rsa.h +record/ssl3_buffer.o: ../include/openssl/safestack.h ../include/openssl/sha.h +record/ssl3_buffer.o: ../include/openssl/srtp.h ../include/openssl/ssl.h +record/ssl3_buffer.o: ../include/openssl/ssl2.h ../include/openssl/ssl3.h +record/ssl3_buffer.o: ../include/openssl/stack.h ../include/openssl/symhacks.h +record/ssl3_buffer.o: ../include/openssl/tls1.h ../include/openssl/x509.h +record/ssl3_buffer.o: ../include/openssl/x509_vfy.h packet_locl.h +record/ssl3_buffer.o: record/record.h record/record_locl.h record/ssl3_buffer.c +record/ssl3_buffer.o: ssl_locl.h +record/ssl3_record.o: ../e_os.h ../include/internal/constant_time_locl.h +record/ssl3_record.o: ../include/openssl/asn1.h ../include/openssl/bio.h +record/ssl3_record.o: ../include/openssl/bn.h ../include/openssl/buffer.h +record/ssl3_record.o: ../include/openssl/comp.h ../include/openssl/crypto.h +record/ssl3_record.o: ../include/openssl/dsa.h ../include/openssl/dtls1.h +record/ssl3_record.o: ../include/openssl/e_os2.h ../include/openssl/ec.h +record/ssl3_record.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h +record/ssl3_record.o: ../include/openssl/err.h ../include/openssl/evp.h +record/ssl3_record.o: ../include/openssl/hmac.h ../include/openssl/lhash.h +record/ssl3_record.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h +record/ssl3_record.o: ../include/openssl/opensslconf.h +record/ssl3_record.o: ../include/openssl/opensslv.h +record/ssl3_record.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h +record/ssl3_record.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h +record/ssl3_record.o: ../include/openssl/pqueue.h ../include/openssl/rand.h +record/ssl3_record.o: ../include/openssl/rsa.h ../include/openssl/safestack.h +record/ssl3_record.o: ../include/openssl/sha.h ../include/openssl/srtp.h +record/ssl3_record.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h +record/ssl3_record.o: ../include/openssl/ssl3.h ../include/openssl/stack.h +record/ssl3_record.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h +record/ssl3_record.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h +record/ssl3_record.o: packet_locl.h record/record.h record/record_locl.h +record/ssl3_record.o: record/ssl3_record.c ssl_locl.h s3_both.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h s3_both.o: ../include/openssl/bn.h ../include/openssl/buffer.h s3_both.o: ../include/openssl/comp.h ../include/openssl/crypto.h @@ -467,50 +517,6 @@ s3_srvr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h s3_srvr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h s3_srvr.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h s3_srvr.o: packet_locl.h record/record.h s3_srvr.c ssl_locl.h -ssl3_buffer.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h -ssl3_buffer.o: ../include/openssl/bn.h ../include/openssl/buffer.h -ssl3_buffer.o: ../include/openssl/comp.h ../include/openssl/crypto.h -ssl3_buffer.o: ../include/openssl/dsa.h ../include/openssl/dtls1.h -ssl3_buffer.o: ../include/openssl/e_os2.h ../include/openssl/ec.h -ssl3_buffer.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h -ssl3_buffer.o: ../include/openssl/err.h ../include/openssl/evp.h -ssl3_buffer.o: ../include/openssl/hmac.h ../include/openssl/lhash.h -ssl3_buffer.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h -ssl3_buffer.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h -ssl3_buffer.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h -ssl3_buffer.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h -ssl3_buffer.o: ../include/openssl/pqueue.h ../include/openssl/rsa.h -ssl3_buffer.o: ../include/openssl/safestack.h ../include/openssl/sha.h -ssl3_buffer.o: ../include/openssl/srtp.h ../include/openssl/ssl.h -ssl3_buffer.o: ../include/openssl/ssl2.h ../include/openssl/ssl3.h -ssl3_buffer.o: ../include/openssl/stack.h ../include/openssl/symhacks.h -ssl3_buffer.o: ../include/openssl/tls1.h ../include/openssl/x509.h -ssl3_buffer.o: ../include/openssl/x509_vfy.h record/../packet_locl.h -ssl3_buffer.o: record/../record/record.h record/../ssl_locl.h -ssl3_buffer.o: record/record_locl.h record/ssl3_buffer.c ssl3_buffer.c -ssl3_record.o: ../e_os.h ../include/internal/constant_time_locl.h -ssl3_record.o: ../include/openssl/asn1.h ../include/openssl/bio.h -ssl3_record.o: ../include/openssl/bn.h ../include/openssl/buffer.h -ssl3_record.o: ../include/openssl/comp.h ../include/openssl/crypto.h -ssl3_record.o: ../include/openssl/dsa.h ../include/openssl/dtls1.h -ssl3_record.o: ../include/openssl/e_os2.h ../include/openssl/ec.h -ssl3_record.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h -ssl3_record.o: ../include/openssl/err.h ../include/openssl/evp.h -ssl3_record.o: ../include/openssl/hmac.h ../include/openssl/lhash.h -ssl3_record.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h -ssl3_record.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h -ssl3_record.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h -ssl3_record.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h -ssl3_record.o: ../include/openssl/pqueue.h ../include/openssl/rand.h -ssl3_record.o: ../include/openssl/rsa.h ../include/openssl/safestack.h -ssl3_record.o: ../include/openssl/sha.h ../include/openssl/srtp.h -ssl3_record.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h -ssl3_record.o: ../include/openssl/ssl3.h ../include/openssl/stack.h -ssl3_record.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h -ssl3_record.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h -ssl3_record.o: record/../packet_locl.h record/../record/record.h -ssl3_record.o: record/../ssl_locl.h record/record_locl.h record/ssl3_record.c -ssl3_record.o: ssl3_record.c ssl_algs.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h ssl_algs.o: ../include/openssl/bn.h ../include/openssl/buffer.h ssl_algs.o: ../include/openssl/comp.h ../include/openssl/crypto.h diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c index 7b58518699..1d11b21765 100644 --- a/ssl/ssl_asn1.c +++ b/ssl/ssl_asn1.c @@ -138,7 +138,7 @@ ASN1_SEQUENCE(SSL_SESSION_ASN1) = { ASN1_EXP_OPT(SSL_SESSION_ASN1, srp_username, ASN1_OCTET_STRING, 12), #endif ASN1_EXP_OPT(SSL_SESSION_ASN1, flags, ZLONG, 13) -} ASN1_SEQUENCE_END(SSL_SESSION_ASN1) +} static_ASN1_SEQUENCE_END(SSL_SESSION_ASN1) IMPLEMENT_STATIC_ASN1_ENCODE_FUNCTIONS(SSL_SESSION_ASN1) diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index c84ea15ed1..c5d4a8e250 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -159,7 +159,7 @@ # include <openssl/engine.h> #endif -const char *SSL_version_str = OPENSSL_VERSION_TEXT; +const char SSL_version_str[] = OPENSSL_VERSION_TEXT; SSL3_ENC_METHOD ssl3_undef_enc_method = { /* |