summaryrefslogtreecommitdiff
path: root/lib/libcrypto/cmac
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-07-11 08:44:50 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-07-11 08:44:50 +0000
commit7262eba487248ace93831592b64babbfd9ffdf77 (patch)
tree5c2e5b7e9e56e7b42163be504755f904bad6cb48 /lib/libcrypto/cmac
parent26e4c72fed0e35eecec27a1b3b1d1daa1559dc14 (diff)
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 'lib/libcrypto/cmac')
-rw-r--r--lib/libcrypto/cmac/cm_ameth.c7
-rw-r--r--lib/libcrypto/cmac/cm_pmeth.c8
-rw-r--r--lib/libcrypto/cmac/cmac.c4
3 files changed, 10 insertions, 9 deletions
diff --git a/lib/libcrypto/cmac/cm_ameth.c b/lib/libcrypto/cmac/cm_ameth.c
index 763d161cfe9..39d8ad3aa8f 100644
--- a/lib/libcrypto/cmac/cm_ameth.c
+++ b/lib/libcrypto/cmac/cm_ameth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cm_ameth.c,v 1.5 2014/06/21 13:42:14 jsing Exp $ */
+/* $OpenBSD: cm_ameth.c,v 1.6 2014/07/11 08:44:48 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2010.
*/
@@ -52,9 +52,10 @@
*/
#include <stdio.h>
-#include "cryptlib.h"
-#include <openssl/evp.h>
+
#include <openssl/cmac.h>
+#include <openssl/evp.h>
+
#include "asn1_locl.h"
/* CMAC "ASN1" method. This is just here to indicate the
diff --git a/lib/libcrypto/cmac/cm_pmeth.c b/lib/libcrypto/cmac/cm_pmeth.c
index 6aba656f182..d9059ca4a88 100644
--- a/lib/libcrypto/cmac/cm_pmeth.c
+++ b/lib/libcrypto/cmac/cm_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cm_pmeth.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */
+/* $OpenBSD: cm_pmeth.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2010.
*/
@@ -54,11 +54,11 @@
#include <stdio.h>
#include <string.h>
-#include "cryptlib.h"
+#include <openssl/cmac.h>
+#include <openssl/evp.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
-#include <openssl/evp.h>
-#include <openssl/cmac.h>
+
#include "evp_locl.h"
/* The context structure and "key" is simply a CMAC_CTX */
diff --git a/lib/libcrypto/cmac/cmac.c b/lib/libcrypto/cmac/cmac.c
index b717f786f15..baba674ec1d 100644
--- a/lib/libcrypto/cmac/cmac.c
+++ b/lib/libcrypto/cmac/cmac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmac.c,v 1.7 2014/06/21 13:42:14 jsing Exp $ */
+/* $OpenBSD: cmac.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -54,7 +54,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "cryptlib.h"
+
#include <openssl/cmac.h>
struct CMAC_CTX_st {