From 823146d65fe145eb6024d84ab50ed63ba9f8705c Mon Sep 17 00:00:00 2001 From: FdaSilvaYY Date: Sun, 5 Jun 2016 00:35:42 +0200 Subject: [PATCH] Useless header include of openssl/rand.h Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1168) --- apps/openssl.c | 1 - crypto/bn/bn_depr.c | 1 - crypto/bn/bn_prime.c | 1 - crypto/cms/cms_env.c | 1 - crypto/cms/cms_kari.c | 1 - crypto/dh/dh_key.c | 1 - crypto/dsa/dsa_depr.c | 1 - crypto/dsa/dsa_key.c | 1 - crypto/dsa/dsa_ossl.c | 1 - crypto/dsa/dsa_sign.c | 1 - crypto/evp/p_dec.c | 1 - crypto/evp/p_enc.c | 1 - crypto/ocsp/ocsp_cl.c | 1 - crypto/ocsp/ocsp_lib.c | 1 - crypto/ocsp/ocsp_srv.c | 1 - crypto/pem/pem_oth.c | 1 - crypto/pem/pem_pk8.c | 1 - crypto/pem/pem_pkey.c | 1 - crypto/pem/pem_sign.c | 1 - crypto/pkcs7/pk7_dgst.c | 1 - crypto/pkcs7/pk7_enc.c | 1 - crypto/pkcs7/pk7_mime.c | 1 - crypto/rsa/rsa_lib.c | 1 - crypto/rsa/rsa_none.c | 1 - crypto/rsa/rsa_null.c | 1 - crypto/rsa/rsa_ossl.c | 1 - crypto/rsa/rsa_x931.c | 1 - ssl/record/rec_layer_d1.c | 1 - ssl/statem/statem_dtls.c | 1 - ssl/statem/statem_lib.c | 1 - ssl/t1_lib.c | 1 - 31 files changed, 31 deletions(-) diff --git a/apps/openssl.c b/apps/openssl.c index f06927778a..78ed023fd4 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 de54d5e8cb..7d89214b1c 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 81c2391ef8..df4f058d8c 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 b143a91f24..8d45943530 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 8f44c815c9..3bc46febf6 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 1644003bd9..21dada35ad 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 b852fc70f6..f51aea7497 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 aa5d42ce17..31442b1cff 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 9c97ef949c..3c734ec26e 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 56927945fe..2e29d40088 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 6171bb977e..6bec4062c8 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 645f973cea..3277fbb006 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 35f4b5803a..195d87c8be 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 ff04e466d0..5ff2f318b3 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 e3ef17199f..443161cd25 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 036c8a6fdb..cc7a8dbec4 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 1f6b640dbe..993c595a7b 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 f3a45e4aeb..6308622707 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 0d8b62a6e2..12ad97450a 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 b0a6bd5e77..965fb37eab 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 6889a0487d..3c59f9c8c5 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 d44b3adae6..97474cf519 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 87a326184c..9ba86d856a 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 006d3bd617..b78756d186 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 7f15955aa4..d339494120 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 d8af92dc6c..782606645b 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 428a1e7253..b9301f3725 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 9e043f5df0..6699d2a3f1 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 d75483af6d..946dee0841 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 eb3e591080..85523da1c2 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 9250283e60..3e5e9fbda6 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" -- 2.34.1