From: FdaSilvaYY Date: Sat, 4 Jun 2016 22:35:42 +0000 (+0200) Subject: Useless header include of openssl/rand.h X-Git-Tag: OpenSSL_1_1_0-pre6~403 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=823146d65fe145eb6024d84ab50ed63ba9f8705c;p=thirdparty%2Fopenssl.git Useless header include of openssl/rand.h Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1168) --- diff --git a/apps/openssl.c b/apps/openssl.c index f06927778ae..78ed023fd43 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/crypto/bn/bn_depr.c b/crypto/bn/bn_depr.c index de54d5e8cb3..7d89214b1c1 100644 --- a/crypto/bn/bn_depr.c +++ b/crypto/bn/bn_depr.c @@ -21,7 +21,6 @@ NON_EMPTY_TRANSLATION_UNIT # include # include "internal/cryptlib.h" # include "bn_lcl.h" -# include BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, diff --git a/crypto/bn/bn_prime.c b/crypto/bn/bn_prime.c index 81c2391ef89..df4f058d8ca 100644 --- a/crypto/bn/bn_prime.c +++ b/crypto/bn/bn_prime.c @@ -13,7 +13,6 @@ #include #include "internal/cryptlib.h" #include "bn_lcl.h" -#include /* * The quick sieve algorithm approach to weeding out primes is Philip diff --git a/crypto/cms/cms_env.c b/crypto/cms/cms_env.c index b143a91f243..8d459435308 100644 --- a/crypto/cms/cms_env.c +++ b/crypto/cms/cms_env.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include "cms_lcl.h" #include "internal/asn1_int.h" diff --git a/crypto/cms/cms_kari.c b/crypto/cms/cms_kari.c index 8f44c815c96..3bc46febf64 100644 --- a/crypto/cms/cms_kari.c +++ b/crypto/cms/cms_kari.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include "cms_lcl.h" #include "internal/asn1_int.h" diff --git a/crypto/dh/dh_key.c b/crypto/dh/dh_key.c index 1644003bd95..21dada35add 100644 --- a/crypto/dh/dh_key.c +++ b/crypto/dh/dh_key.c @@ -9,7 +9,6 @@ #include #include "internal/cryptlib.h" -#include #include "dh_locl.h" #include "internal/bn_int.h" diff --git a/crypto/dsa/dsa_depr.c b/crypto/dsa/dsa_depr.c index b852fc70f6c..f51aea74978 100644 --- a/crypto/dsa/dsa_depr.c +++ b/crypto/dsa/dsa_depr.c @@ -30,7 +30,6 @@ NON_EMPTY_TRANSLATION_UNIT # include # include # include -# include # include DSA *DSA_generate_parameters(int bits, diff --git a/crypto/dsa/dsa_key.c b/crypto/dsa/dsa_key.c index aa5d42ce174..31442b1cff1 100644 --- a/crypto/dsa/dsa_key.c +++ b/crypto/dsa/dsa_key.c @@ -12,7 +12,6 @@ #include "internal/cryptlib.h" #include #include "dsa_locl.h" -#include static int dsa_builtin_keygen(DSA *dsa); diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c index 9c97ef949c0..3c734ec26ed 100644 --- a/crypto/dsa/dsa_ossl.c +++ b/crypto/dsa/dsa_ossl.c @@ -14,7 +14,6 @@ #include #include #include "dsa_locl.h" -#include #include static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); diff --git a/crypto/dsa/dsa_sign.c b/crypto/dsa/dsa_sign.c index 56927945fe5..2e29d400880 100644 --- a/crypto/dsa/dsa_sign.c +++ b/crypto/dsa/dsa_sign.c @@ -11,7 +11,6 @@ #include "internal/cryptlib.h" #include "dsa_locl.h" -#include #include DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) diff --git a/crypto/evp/p_dec.c b/crypto/evp/p_dec.c index 6171bb977e4..6bec4062c8f 100644 --- a/crypto/evp/p_dec.c +++ b/crypto/evp/p_dec.c @@ -9,7 +9,6 @@ #include #include "internal/cryptlib.h" -#include #include #include #include diff --git a/crypto/evp/p_enc.c b/crypto/evp/p_enc.c index 645f973ceac..3277fbb006a 100644 --- a/crypto/evp/p_enc.c +++ b/crypto/evp/p_enc.c @@ -9,7 +9,6 @@ #include #include "internal/cryptlib.h" -#include #include #include #include diff --git a/crypto/ocsp/ocsp_cl.c b/crypto/ocsp/ocsp_cl.c index 35f4b5803aa..195d87c8bed 100644 --- a/crypto/ocsp/ocsp_cl.c +++ b/crypto/ocsp/ocsp_cl.c @@ -11,7 +11,6 @@ #include #include "internal/cryptlib.h" #include -#include #include #include #include diff --git a/crypto/ocsp/ocsp_lib.c b/crypto/ocsp/ocsp_lib.c index ff04e466d05..5ff2f318b3b 100644 --- a/crypto/ocsp/ocsp_lib.c +++ b/crypto/ocsp/ocsp_lib.c @@ -10,7 +10,6 @@ #include #include "internal/cryptlib.h" #include -#include #include #include #include diff --git a/crypto/ocsp/ocsp_srv.c b/crypto/ocsp/ocsp_srv.c index e3ef17199f8..443161cd257 100644 --- a/crypto/ocsp/ocsp_srv.c +++ b/crypto/ocsp/ocsp_srv.c @@ -10,7 +10,6 @@ #include #include "internal/cryptlib.h" #include -#include #include #include #include diff --git a/crypto/pem/pem_oth.c b/crypto/pem/pem_oth.c index 036c8a6fdb1..cc7a8dbec49 100644 --- a/crypto/pem/pem_oth.c +++ b/crypto/pem/pem_oth.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include diff --git a/crypto/pem/pem_pk8.c b/crypto/pem/pem_pk8.c index 1f6b640dbe7..993c595a7b7 100644 --- a/crypto/pem/pem_pk8.c +++ b/crypto/pem/pem_pk8.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/crypto/pem/pem_pkey.c b/crypto/pem/pem_pkey.c index f3a45e4aeb3..63086227075 100644 --- a/crypto/pem/pem_pkey.c +++ b/crypto/pem/pem_pkey.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/crypto/pem/pem_sign.c b/crypto/pem/pem_sign.c index 0d8b62a6e26..12ad97450a3 100644 --- a/crypto/pem/pem_sign.c +++ b/crypto/pem/pem_sign.c @@ -9,7 +9,6 @@ #include #include "internal/cryptlib.h" -#include #include #include #include diff --git a/crypto/pkcs7/pk7_dgst.c b/crypto/pkcs7/pk7_dgst.c index b0a6bd5e77b..965fb37eab5 100644 --- a/crypto/pkcs7/pk7_dgst.c +++ b/crypto/pkcs7/pk7_dgst.c @@ -10,7 +10,6 @@ #include #include "internal/cryptlib.h" #include -#include #include #include #include diff --git a/crypto/pkcs7/pk7_enc.c b/crypto/pkcs7/pk7_enc.c index 6889a0487de..3c59f9c8c57 100644 --- a/crypto/pkcs7/pk7_enc.c +++ b/crypto/pkcs7/pk7_enc.c @@ -10,7 +10,6 @@ #include #include "internal/cryptlib.h" #include -#include #include #include #include diff --git a/crypto/pkcs7/pk7_mime.c b/crypto/pkcs7/pk7_mime.c index d44b3adae67..97474cf5194 100644 --- a/crypto/pkcs7/pk7_mime.c +++ b/crypto/pkcs7/pk7_mime.c @@ -10,7 +10,6 @@ #include #include #include "internal/cryptlib.h" -#include #include #include diff --git a/crypto/rsa/rsa_lib.c b/crypto/rsa/rsa_lib.c index 87a326184ca..9ba86d856ac 100644 --- a/crypto/rsa/rsa_lib.c +++ b/crypto/rsa/rsa_lib.c @@ -12,7 +12,6 @@ #include "internal/cryptlib.h" #include #include "internal/bn_int.h" -#include #include #include "rsa_locl.h" diff --git a/crypto/rsa/rsa_none.c b/crypto/rsa/rsa_none.c index 006d3bd617a..b78756d186a 100644 --- a/crypto/rsa/rsa_none.c +++ b/crypto/rsa/rsa_none.c @@ -10,7 +10,6 @@ #include "internal/cryptlib.h" #include #include -#include int RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *from, int flen) diff --git a/crypto/rsa/rsa_null.c b/crypto/rsa/rsa_null.c index 7f15955aa45..d3394941202 100644 --- a/crypto/rsa/rsa_null.c +++ b/crypto/rsa/rsa_null.c @@ -10,7 +10,6 @@ #include #include "internal/cryptlib.h" #include -#include #include "rsa_locl.h" /* diff --git a/crypto/rsa/rsa_ossl.c b/crypto/rsa/rsa_ossl.c index d8af92dc6ce..782606645bd 100644 --- a/crypto/rsa/rsa_ossl.c +++ b/crypto/rsa/rsa_ossl.c @@ -9,7 +9,6 @@ #include "internal/cryptlib.h" #include "internal/bn_int.h" -#include #include "rsa_locl.h" #ifndef RSA_NULL diff --git a/crypto/rsa/rsa_x931.c b/crypto/rsa/rsa_x931.c index 428a1e72530..b9301f37250 100644 --- a/crypto/rsa/rsa_x931.c +++ b/crypto/rsa/rsa_x931.c @@ -11,7 +11,6 @@ #include "internal/cryptlib.h" #include #include -#include #include int RSA_padding_add_X931(unsigned char *to, int tlen, diff --git a/ssl/record/rec_layer_d1.c b/ssl/record/rec_layer_d1.c index 9e043f5df0b..6699d2a3f1c 100644 --- a/ssl/record/rec_layer_d1.c +++ b/ssl/record/rec_layer_d1.c @@ -13,7 +13,6 @@ #include "../ssl_locl.h" #include #include -#include #include "record_locl.h" int DTLS_RECORD_LAYER_new(RECORD_LAYER *rl) diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c index d75483af6d4..946dee0841b 100644 --- a/ssl/statem/statem_dtls.c +++ b/ssl/statem/statem_dtls.c @@ -13,7 +13,6 @@ #include "../ssl_locl.h" #include "statem_locl.h" #include -#include #include #include #include diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index eb3e5910800..85523da1c2f 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -19,7 +19,6 @@ #include "../ssl_locl.h" #include "statem_locl.h" #include -#include #include #include #include diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 9250283e607..3e5e9fbda6c 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include "ssl_locl.h"