change test function includes to use one convention
This commit is contained in:
parent
00ab47026b
commit
ce2f237697
@ -27,6 +27,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_PEM_PARSE_C) || defined(POLARSSL_PEM_WRITE_C)
|
#if defined(POLARSSL_PEM_PARSE_C) || defined(POLARSSL_PEM_WRITE_C)
|
||||||
|
|
||||||
#include "polarssl/pem.h"
|
#include "polarssl/pem.h"
|
||||||
#include "polarssl/base64.h"
|
#include "polarssl/base64.h"
|
||||||
#include "polarssl/des.h"
|
#include "polarssl/des.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/aes.h>
|
#include "polarssl/aes.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/arc4.h>
|
#include "polarssl/arc4.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/asn1write.h>
|
#include "polarssl/asn1write.h"
|
||||||
|
|
||||||
#define GUARD_LEN 4
|
#define GUARD_LEN 4
|
||||||
#define GUARD_VAL 0x2a
|
#define GUARD_VAL 0x2a
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/base64.h>
|
#include "polarssl/base64.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/camellia.h>
|
#include "polarssl/camellia.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/ccm.h>
|
#include "polarssl/ccm.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/cipher.h>
|
#include "polarssl/cipher.h"
|
||||||
|
|
||||||
#if defined(POLARSSL_GCM_C)
|
#if defined(POLARSSL_GCM_C)
|
||||||
#include <polarssl/gcm.h>
|
#include "polarssl/gcm.h"
|
||||||
#endif
|
#endif
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/ctr_drbg.h>
|
#include "polarssl/ctr_drbg.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
int test_offset_idx;
|
int test_offset_idx;
|
||||||
int entropy_func( void *data, unsigned char *buf, size_t len )
|
int entropy_func( void *data, unsigned char *buf, size_t len )
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/debug.h>
|
#include "polarssl/debug.h"
|
||||||
|
|
||||||
struct buffer_data
|
struct buffer_data
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/des.h>
|
#include "polarssl/des.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/dhm.h>
|
#include "polarssl/dhm.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/ecdh.h>
|
#include "polarssl/ecdh.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/ecdsa.h>
|
#include "polarssl/ecdsa.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/ecp.h>
|
#include "polarssl/ecp.h"
|
||||||
|
|
||||||
#define POLARSSL_ECP_PF_UNKNOWN -1
|
#define POLARSSL_ECP_PF_UNKNOWN -1
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/entropy.h>
|
#include "polarssl/entropy.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Number of calls made to entropy_dummy_source()
|
* Number of calls made to entropy_dummy_source()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/error.h>
|
#include "polarssl/error.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/gcm.h>
|
#include "polarssl/gcm.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/hmac_drbg.h>
|
#include "polarssl/hmac_drbg.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/sha1.h>
|
#include "polarssl/sha1.h"
|
||||||
#include <polarssl/sha256.h>
|
#include "polarssl/sha256.h"
|
||||||
#include <polarssl/sha512.h>
|
#include "polarssl/sha512.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_CASE depends_on:POLARSSL_SHA1_C */
|
/* BEGIN_CASE depends_on:POLARSSL_SHA1_C */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/md.h>
|
#include "polarssl/md.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/md2.h>
|
#include "polarssl/md2.h"
|
||||||
#include <polarssl/md4.h>
|
#include "polarssl/md4.h"
|
||||||
#include <polarssl/md5.h>
|
#include "polarssl/md5.h"
|
||||||
#include <polarssl/ripemd160.h>
|
#include "polarssl/ripemd160.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_CASE depends_on:POLARSSL_MD2_C */
|
/* BEGIN_CASE depends_on:POLARSSL_MD2_C */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/memory_buffer_alloc.h>
|
#include "polarssl/memory_buffer_alloc.h"
|
||||||
#define TEST_SUITE_MEMORY_BUFFER_ALLOC
|
#define TEST_SUITE_MEMORY_BUFFER_ALLOC
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/bignum.h>
|
#include "polarssl/bignum.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/pbkdf2.h>
|
#include "polarssl/pbkdf2.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/base64.h>
|
#include "polarssl/base64.h"
|
||||||
#include <polarssl/pem.h>
|
#include "polarssl/pem.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/pk.h>
|
#include "polarssl/pk.h"
|
||||||
|
|
||||||
/* For error codes */
|
/* For error codes */
|
||||||
#include <polarssl/ecp.h>
|
#include "polarssl/ecp.h"
|
||||||
#include <polarssl/rsa.h>
|
#include "polarssl/rsa.h"
|
||||||
|
|
||||||
static int rnd_std_rand( void *rng_state, unsigned char *output, size_t len );
|
static int rnd_std_rand( void *rng_state, unsigned char *output, size_t len );
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/rsa.h>
|
#include "polarssl/rsa.h"
|
||||||
#include <polarssl/md.h>
|
#include "polarssl/md.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/pkcs5.h>
|
#include "polarssl/pkcs5.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/pk.h>
|
#include "polarssl/pk.h"
|
||||||
#include <polarssl/pem.h>
|
#include "polarssl/pem.h"
|
||||||
#include <polarssl/oid.h>
|
#include "polarssl/oid.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/pk.h>
|
#include "polarssl/pk.h"
|
||||||
#include <polarssl/pem.h>
|
#include "polarssl/pem.h"
|
||||||
#include <polarssl/oid.h>
|
#include "polarssl/oid.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/rsa.h>
|
#include "polarssl/rsa.h"
|
||||||
#include <polarssl/md2.h>
|
#include "polarssl/md2.h"
|
||||||
#include <polarssl/md4.h>
|
#include "polarssl/md4.h"
|
||||||
#include <polarssl/md5.h>
|
#include "polarssl/md5.h"
|
||||||
#include <polarssl/sha1.h>
|
#include "polarssl/sha1.h"
|
||||||
#include <polarssl/sha256.h>
|
#include "polarssl/sha256.h"
|
||||||
#include <polarssl/sha512.h>
|
#include "polarssl/sha512.h"
|
||||||
#include <polarssl/entropy.h>
|
#include "polarssl/entropy.h"
|
||||||
#include <polarssl/ctr_drbg.h>
|
#include "polarssl/ctr_drbg.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/sha1.h>
|
#include "polarssl/sha1.h"
|
||||||
#include <polarssl/sha256.h>
|
#include "polarssl/sha256.h"
|
||||||
#include <polarssl/sha512.h>
|
#include "polarssl/sha512.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_CASE depends_on:POLARSSL_SHA1_C */
|
/* BEGIN_CASE depends_on:POLARSSL_SHA1_C */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/version.h>
|
#include "polarssl/version.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/x509_crt.h>
|
#include "polarssl/x509_crt.h"
|
||||||
#include <polarssl/x509_crl.h>
|
#include "polarssl/x509_crl.h"
|
||||||
#include <polarssl/x509_csr.h>
|
#include "polarssl/x509_csr.h"
|
||||||
#include <polarssl/pem.h>
|
#include "polarssl/pem.h"
|
||||||
#include <polarssl/oid.h>
|
#include "polarssl/oid.h"
|
||||||
#include <polarssl/base64.h>
|
#include "polarssl/base64.h"
|
||||||
|
|
||||||
int verify_none( void *data, x509_crt *crt, int certificate_depth, int *flags )
|
int verify_none( void *data, x509_crt *crt, int certificate_depth, int *flags )
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/x509_crt.h>
|
#include "polarssl/x509_crt.h"
|
||||||
#include <polarssl/x509_csr.h>
|
#include "polarssl/x509_csr.h"
|
||||||
#include <polarssl/pem.h>
|
#include "polarssl/pem.h"
|
||||||
#include <polarssl/oid.h>
|
#include "polarssl/oid.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include <polarssl/xtea.h>
|
#include "polarssl/xtea.h"
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
Loading…
Reference in New Issue
Block a user