diff options
author | Jan Chadima <jchadima@redhat.com> | 2010-08-05 18:45:01 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-05 18:45:01 +0200 |
commit | ec81bc91006efb7516ad16fd551a290cf634822b (patch) | |
tree | 051f81e24e2509e37fae64fd31ddfed0b6a59e5c /libtomcrypt | |
parent | 85b4cdcb94355e284c1fff81311b5a039861a01d (diff) | |
download | cryptodev-linux-ec81bc91006efb7516ad16fd551a290cf634822b.tar.gz cryptodev-linux-ec81bc91006efb7516ad16fd551a290cf634822b.tar.xz cryptodev-linux-ec81bc91006efb7516ad16fd551a290cf634822b.zip |
Fix build with recent kernels
Diffstat (limited to 'libtomcrypt')
22 files changed, 26 insertions, 4 deletions
diff --git a/libtomcrypt/math/rand_prime.c b/libtomcrypt/math/rand_prime.c index d48653a..ab73cd0 100644 --- a/libtomcrypt/math/rand_prime.c +++ b/libtomcrypt/math/rand_prime.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file rand_prime.c diff --git a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c index 2e72dbd..3f01a57 100644 --- a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c +++ b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file der_decode_sequence_flexi.c diff --git a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c index 0e9c8a0..d1b7878 100644 --- a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c +++ b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c @@ -10,6 +10,7 @@ */ #include "tomcrypt.h" #include <stdarg.h> +#include <linux/slab.h> /** diff --git a/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c b/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c index 3a8e7ee..7e81317 100644 --- a/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c +++ b/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c @@ -10,6 +10,7 @@ */ #include "tomcrypt.h" #include <stdarg.h> +#include <linux/slab.h> /** diff --git a/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c b/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c index a0e0d2d..eed73e7 100644 --- a/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c +++ b/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file der_sequence_free.c diff --git a/libtomcrypt/pk/asn1/der/set/der_encode_set.c b/libtomcrypt/pk/asn1/der/set/der_encode_set.c index 38961c6..babb9ea 100644 --- a/libtomcrypt/pk/asn1/der/set/der_encode_set.c +++ b/libtomcrypt/pk/asn1/der/set/der_encode_set.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file der_encode_set.c diff --git a/libtomcrypt/pk/asn1/der/set/der_encode_setof.c b/libtomcrypt/pk/asn1/der/set/der_encode_setof.c index 86874f4..2a343f2 100644 --- a/libtomcrypt/pk/asn1/der/set/der_encode_setof.c +++ b/libtomcrypt/pk/asn1/der/set/der_encode_setof.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file der_encode_setof.c diff --git a/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c b/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c index c0a2e22..8a5005f 100644 --- a/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c +++ b/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c @@ -22,6 +22,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file der_encode_sequence_multi.c ASN.1 DER, encode a Subject Public Key structure --nmav diff --git a/libtomcrypt/pk/dsa/dsa_export.c b/libtomcrypt/pk/dsa/dsa_export.c index 1fef6c7..f2cd714 100644 --- a/libtomcrypt/pk/dsa/dsa_export.c +++ b/libtomcrypt/pk/dsa/dsa_export.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file dsa_export.c diff --git a/libtomcrypt/pk/dsa/dsa_import.c b/libtomcrypt/pk/dsa/dsa_import.c index c0680f5..99001f2 100644 --- a/libtomcrypt/pk/dsa/dsa_import.c +++ b/libtomcrypt/pk/dsa/dsa_import.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file dsa_import.c diff --git a/libtomcrypt/pk/dsa/dsa_make_key.c b/libtomcrypt/pk/dsa/dsa_make_key.c index 7a6b516..1831853 100644 --- a/libtomcrypt/pk/dsa/dsa_make_key.c +++ b/libtomcrypt/pk/dsa/dsa_make_key.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file dsa_make_key.c diff --git a/libtomcrypt/pk/dsa/dsa_sign_hash.c b/libtomcrypt/pk/dsa/dsa_sign_hash.c index 0b542a4..b48d5a5 100644 --- a/libtomcrypt/pk/dsa/dsa_sign_hash.c +++ b/libtomcrypt/pk/dsa/dsa_sign_hash.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file dsa_sign_hash.c diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c b/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c index 58052eb..86ba218 100644 --- a/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c +++ b/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c @@ -10,8 +10,9 @@ */ #include "tomcrypt.h" #include <ncr-int.h> +#include <linux/slab.h> -/** +/** @file pkcs_1_mgf1.c The Mask Generation Function (MGF1) for LTC_PKCS #1, Tom St Denis */ diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c index 5214a29..717d99d 100644 --- a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c +++ b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c @@ -10,8 +10,9 @@ */ #include "tomcrypt.h" #include <ncr-int.h> +#include <linux/slab.h> -/** +/** @file pkcs_1_oaep_decode.c OAEP Padding for LTC_PKCS #1, Tom St Denis */ diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c index ef644f9..331516f 100644 --- a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c +++ b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c @@ -10,6 +10,7 @@ */ #include "tomcrypt.h" #include <ncr-int.h> +#include <linux/slab.h> /** @file pkcs_1_oaep_encode.c diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c b/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c index b9ade4b..5d44ce8 100644 --- a/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c +++ b/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c @@ -10,8 +10,9 @@ */ #include "tomcrypt.h" #include <ncr-int.h> +#include <linux/slab.h> -/** +/** @file pkcs_1_pss_decode.c LTC_PKCS #1 PSS Signature Padding, Tom St Denis */ diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c b/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c index f8f763b..9416eae 100644 --- a/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c +++ b/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c @@ -10,8 +10,9 @@ */ #include "tomcrypt.h" #include <ncr-int.h> +#include <linux/slab.h> -/** +/** @file pkcs_1_pss_encode.c LTC_PKCS #1 PSS Signature Padding, Tom St Denis */ diff --git a/libtomcrypt/pk/rsa/rsa_decrypt_key.c b/libtomcrypt/pk/rsa/rsa_decrypt_key.c index a8f3ac4..ba16e32 100644 --- a/libtomcrypt/pk/rsa/rsa_decrypt_key.c +++ b/libtomcrypt/pk/rsa/rsa_decrypt_key.c @@ -10,6 +10,7 @@ */ #include "tomcrypt.h" #include "ncr-int.h" +#include <linux/slab.h> /** @file rsa_decrypt_key.c diff --git a/libtomcrypt/pk/rsa/rsa_export.c b/libtomcrypt/pk/rsa/rsa_export.c index 905bb6f..c5e8ff0 100644 --- a/libtomcrypt/pk/rsa/rsa_export.c +++ b/libtomcrypt/pk/rsa/rsa_export.c @@ -10,6 +10,7 @@ */ #include "tomcrypt.h" #include <ncr-int.h> +#include <linux/slab.h> /** @file rsa_export.c Export RSA LTC_PKCS keys, Tom St Denis diff --git a/libtomcrypt/pk/rsa/rsa_import.c b/libtomcrypt/pk/rsa/rsa_import.c index 2eaa0a9..8bd8c47 100644 --- a/libtomcrypt/pk/rsa/rsa_import.c +++ b/libtomcrypt/pk/rsa/rsa_import.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include <linux/slab.h> /** @file rsa_import.c diff --git a/libtomcrypt/pk/rsa/rsa_sign_hash.c b/libtomcrypt/pk/rsa/rsa_sign_hash.c index f27789d..b3c2f5b 100644 --- a/libtomcrypt/pk/rsa/rsa_sign_hash.c +++ b/libtomcrypt/pk/rsa/rsa_sign_hash.c @@ -10,6 +10,7 @@ */ #include "tomcrypt.h" #include "ncr-int.h" +#include <linux/slab.h> /** @file rsa_sign_hash.c diff --git a/libtomcrypt/pk/rsa/rsa_verify_hash.c b/libtomcrypt/pk/rsa/rsa_verify_hash.c index c8a113d..b9ef89f 100644 --- a/libtomcrypt/pk/rsa/rsa_verify_hash.c +++ b/libtomcrypt/pk/rsa/rsa_verify_hash.c @@ -10,6 +10,7 @@ */ #include "tomcrypt.h" #include "ncr-int.h" +#include <linux/slab.h> /** @file rsa_verify_hash.c |