diff options
author | jsing <> | 2014-07-11 08:44:49 +0000 |
---|---|---|
committer | jsing <> | 2014-07-11 08:44:49 +0000 |
commit | 8c3482db610348be15fb633bb52b0511c2cabbcf (patch) | |
tree | 0e726f9e971e00f4c8cd8afab71589803fc11b7f /src/lib/libcrypto/cmac | |
parent | a336cdb63c1fe5d934826147bf5c19d317ced73b (diff) | |
download | openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.tar.gz openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.tar.bz2 openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.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/cmac')
-rw-r--r-- | src/lib/libcrypto/cmac/cm_ameth.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/cmac/cm_pmeth.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/cmac/cmac.c | 4 |
3 files changed, 10 insertions, 9 deletions
diff --git a/src/lib/libcrypto/cmac/cm_ameth.c b/src/lib/libcrypto/cmac/cm_ameth.c index 763d161cfe..39d8ad3aa8 100644 --- a/src/lib/libcrypto/cmac/cm_ameth.c +++ b/src/lib/libcrypto/cmac/cm_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cm_ameth.c,v 1.5 2014/06/21 13:42:14 jsing Exp $ */ | 1 | /* $OpenBSD: cm_ameth.c,v 1.6 2014/07/11 08:44:48 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2010. | 3 | * project 2010. |
4 | */ | 4 | */ |
@@ -52,9 +52,10 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #include <stdio.h> | 54 | #include <stdio.h> |
55 | #include "cryptlib.h" | 55 | |
56 | #include <openssl/evp.h> | ||
57 | #include <openssl/cmac.h> | 56 | #include <openssl/cmac.h> |
57 | #include <openssl/evp.h> | ||
58 | |||
58 | #include "asn1_locl.h" | 59 | #include "asn1_locl.h" |
59 | 60 | ||
60 | /* CMAC "ASN1" method. This is just here to indicate the | 61 | /* CMAC "ASN1" method. This is just here to indicate the |
diff --git a/src/lib/libcrypto/cmac/cm_pmeth.c b/src/lib/libcrypto/cmac/cm_pmeth.c index 6aba656f18..d9059ca4a8 100644 --- a/src/lib/libcrypto/cmac/cm_pmeth.c +++ b/src/lib/libcrypto/cmac/cm_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cm_pmeth.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */ | 1 | /* $OpenBSD: cm_pmeth.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2010. | 3 | * project 2010. |
4 | */ | 4 | */ |
@@ -54,11 +54,11 @@ | |||
54 | #include <stdio.h> | 54 | #include <stdio.h> |
55 | #include <string.h> | 55 | #include <string.h> |
56 | 56 | ||
57 | #include "cryptlib.h" | 57 | #include <openssl/cmac.h> |
58 | #include <openssl/evp.h> | ||
58 | #include <openssl/x509.h> | 59 | #include <openssl/x509.h> |
59 | #include <openssl/x509v3.h> | 60 | #include <openssl/x509v3.h> |
60 | #include <openssl/evp.h> | 61 | |
61 | #include <openssl/cmac.h> | ||
62 | #include "evp_locl.h" | 62 | #include "evp_locl.h" |
63 | 63 | ||
64 | /* The context structure and "key" is simply a CMAC_CTX */ | 64 | /* The context structure and "key" is simply a CMAC_CTX */ |
diff --git a/src/lib/libcrypto/cmac/cmac.c b/src/lib/libcrypto/cmac/cmac.c index b717f786f1..baba674ec1 100644 --- a/src/lib/libcrypto/cmac/cmac.c +++ b/src/lib/libcrypto/cmac/cmac.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cmac.c,v 1.7 2014/06/21 13:42:14 jsing Exp $ */ | 1 | /* $OpenBSD: cmac.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -54,7 +54,7 @@ | |||
54 | #include <stdio.h> | 54 | #include <stdio.h> |
55 | #include <stdlib.h> | 55 | #include <stdlib.h> |
56 | #include <string.h> | 56 | #include <string.h> |
57 | #include "cryptlib.h" | 57 | |
58 | #include <openssl/cmac.h> | 58 | #include <openssl/cmac.h> |
59 | 59 | ||
60 | struct CMAC_CTX_st { | 60 | struct CMAC_CTX_st { |