diff options
author | 2014-05-02 16:58:12 +0000 | |
---|---|---|
committer | 2014-05-02 16:58:12 +0000 | |
commit | 51a40d1f6c643bf716ca8dbf69abd9e95b81a665 (patch) | |
tree | c6474c2b7cbbb9f24fcb374df20189e36afb7a3c /lib/libssl/src | |
parent | Sort function prototypes and group/sort entries within the functions array. (diff) | |
download | wireguard-openbsd-51a40d1f6c643bf716ca8dbf69abd9e95b81a665.tar.xz wireguard-openbsd-51a40d1f6c643bf716ca8dbf69abd9e95b81a665.zip |
Sort and group includes. We also do not need to include openssl/evp.h more
than once.
ok beck@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/speed.c | 92 |
1 files changed, 47 insertions, 45 deletions
diff --git a/lib/libssl/src/apps/speed.c b/lib/libssl/src/apps/speed.c index 7271f3ba504..29a4b181db0 100644 --- a/lib/libssl/src/apps/speed.c +++ b/lib/libssl/src/apps/speed.c @@ -83,32 +83,52 @@ /* 11-Sep-92 Andrew Daviel Support for Silicon Graphics IRIX added */ /* 06-Apr-92 Luke Brennan Support for VMS and add extra signal calls */ - +#include <math.h> +#include <signal.h> #include <stdio.h> #include <stdlib.h> - #include <string.h> -#include <math.h> -#include "apps.h" +#include <unistd.h> + +#include <openssl/bn.h> #include <openssl/crypto.h> -#include <openssl/rand.h> #include <openssl/err.h> #include <openssl/evp.h> #include <openssl/objects.h> -#include <unistd.h> - -#include <signal.h> +#include <openssl/modes.h> +#include <openssl/rand.h> +#include <openssl/x509.h> -#include <openssl/bn.h> -#ifndef OPENSSL_NO_DES -#include <openssl/des.h> -#endif #ifndef OPENSSL_NO_AES #include <openssl/aes.h> #endif +#ifndef OPENSSL_NO_BF +#include <openssl/blowfish.h> +#endif +#ifndef OPENSSL_NO_CAST +#include <openssl/cast.h> +#endif #ifndef OPENSSL_NO_CAMELLIA #include <openssl/camellia.h> #endif +#ifndef OPENSSL_NO_DES +#include <openssl/des.h> +#endif +#ifndef OPENSSL_NO_DSA +#include <openssl/dsa.h> +#endif +#ifndef OPENSSL_NO_ECDH +#include <openssl/ecdh.h> +#endif +#ifndef OPENSSL_NO_ECDSA +#include <openssl/ecdsa.h> +#endif +#ifndef OPENSSL_NO_HMAC +#include <openssl/hmac.h> +#endif +#ifndef OPENSSL_NO_IDEA +#include <openssl/idea.h> +#endif #ifndef OPENSSL_NO_MD2 #include <openssl/md2.h> #endif @@ -121,18 +141,8 @@ #ifndef OPENSSL_NO_MD5 #include <openssl/md5.h> #endif -#ifndef OPENSSL_NO_HMAC -#include <openssl/hmac.h> -#endif -#include <openssl/evp.h> -#ifndef OPENSSL_NO_SHA -#include <openssl/sha.h> -#endif -#ifndef OPENSSL_NO_RIPEMD -#include <openssl/ripemd.h> -#endif -#ifndef OPENSSL_NO_WHIRLPOOL -#include <openssl/whrlpool.h> +#ifndef OPENSSL_NO_RC2 +#include <openssl/rc2.h> #endif #ifndef OPENSSL_NO_RC4 #include <openssl/rc4.h> @@ -140,38 +150,30 @@ #ifndef OPENSSL_NO_RC5 #include <openssl/rc5.h> #endif -#ifndef OPENSSL_NO_RC2 -#include <openssl/rc2.h> +#ifndef OPENSSL_NO_RSA +#include <openssl/rsa.h> #endif -#ifndef OPENSSL_NO_IDEA -#include <openssl/idea.h> +#ifndef OPENSSL_NO_RIPEMD +#include <openssl/ripemd.h> #endif #ifndef OPENSSL_NO_SEED #include <openssl/seed.h> #endif -#ifndef OPENSSL_NO_BF -#include <openssl/blowfish.h> -#endif -#ifndef OPENSSL_NO_CAST -#include <openssl/cast.h> +#ifndef OPENSSL_NO_SHA +#include <openssl/sha.h> #endif -#ifndef OPENSSL_NO_RSA -#include <openssl/rsa.h> -#include "./testrsa.h" +#ifndef OPENSSL_NO_WHIRLPOOL +#include <openssl/whrlpool.h> #endif -#include <openssl/x509.h> + +#include "apps.h" + #ifndef OPENSSL_NO_DSA -#include <openssl/dsa.h> #include "./testdsa.h" #endif -#ifndef OPENSSL_NO_ECDSA -#include <openssl/ecdsa.h> -#endif -#ifndef OPENSSL_NO_ECDH -#include <openssl/ecdh.h> +#ifndef OPENSSL_NO_RSA +#include "./testrsa.h" #endif -#include <openssl/modes.h> - #undef BUFSIZE #define BUFSIZE ((long)1024*8+1) |