diff options
| author | jsing <> | 2014-07-11 08:44:49 +0000 |
|---|---|---|
| committer | jsing <> | 2014-07-11 08:44:49 +0000 |
| commit | 74e2c009c83ad374bd6acdcfc376a384e25ab007 (patch) | |
| tree | 0e726f9e971e00f4c8cd8afab71589803fc11b7f /src/lib/libcrypto/ecdh | |
| parent | 7610da071a20f4325acc14cb2e961617a821ab35 (diff) | |
| download | openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.tar.gz openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.tar.bz2 openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.zip | |
Only import cryptlib.h in the four source files that actually need it.
Remove the openssl public includes from cryptlib.h and add a small number
of includes into the source files that actually need them. While here,
also sort/group/tidy the includes.
ok beck@ miod@
Diffstat (limited to 'src/lib/libcrypto/ecdh')
| -rw-r--r-- | src/lib/libcrypto/ecdh/ech_ossl.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_ossl.c b/src/lib/libcrypto/ecdh/ech_ossl.c index aa22ccafa2..d82ace3670 100644 --- a/src/lib/libcrypto/ecdh/ech_ossl.c +++ b/src/lib/libcrypto/ecdh/ech_ossl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ech_ossl.c,v 1.6 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: ech_ossl.c,v 1.7 2014/07/11 08:44:48 jsing Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
| 4 | * | 4 | * |
| @@ -72,13 +72,12 @@ | |||
| 72 | 72 | ||
| 73 | #include <openssl/opensslconf.h> | 73 | #include <openssl/opensslconf.h> |
| 74 | 74 | ||
| 75 | #include "cryptlib.h" | 75 | #include <openssl/bn.h> |
| 76 | |||
| 77 | #include "ech_locl.h" | ||
| 78 | #include <openssl/err.h> | 76 | #include <openssl/err.h> |
| 79 | #include <openssl/sha.h> | ||
| 80 | #include <openssl/obj_mac.h> | 77 | #include <openssl/obj_mac.h> |
| 81 | #include <openssl/bn.h> | 78 | #include <openssl/sha.h> |
| 79 | |||
| 80 | #include "ech_locl.h" | ||
| 82 | 81 | ||
| 83 | static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key, | 82 | static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key, |
| 84 | EC_KEY *ecdh, | 83 | EC_KEY *ecdh, |
