|
cryptlib
3.4.1
|
#include <assert.h>#include <stdio.h>Go to the source code of this file.
Macros | |
| #define | ASSERT_CONCAT_(a, b) a##b |
| #define | ASSERT_CONCAT(a, b) ASSERT_CONCAT_( a, b ) |
| #define | __COUNTER__ __LINE__ |
| #define | static_assert(expr, string) { enum { ASSERT_CONCAT( static_assert_, __COUNTER__ ) = 1 / ( !!( expr ) ) }; } |
| #define | static_assert_opt(expr, string) assert( expr ) |
| #define | DEBUG_WARN 0 |
| #define | DEBUG_PRINT(x) printf x |
| #define | DEBUG_OUT(string) printf( "%s", string ) |
| #define | DEBUG_ENTER() DEBUG_PRINT(( "Enter %s:%d.\n", __FILE__, __LINE__ )) |
| #define | DEBUG_IN() DEBUG_PRINT(( "In %s:%d.\n", __FILE__, __LINE__ )) |
| #define | DEBUG_EXIT() DEBUG_PRINT(( "Exit %s:%d, status %d.\n", __FILE__, __LINE__, status )) |
| #define | DEBUG_EXIT_NONE() DEBUG_PRINT(( "Exit %s:%d.\n", __FILE__, __LINE__ )) |
| #define | DEBUG_DIAG(x) |
| #define | DEBUG_DUMP_FILE debugDumpFile |
| #define | DEBUG_DUMP_CERT debugDumpFileCert |
| #define | DEBUG_DUMP_HEX debugDumpHex |
| #define | DEBUG_DUMP_DATA debugDumpData |
| #define | DEBUG_DUMP_STREAM debugDumpStream |
| #define | DEBUG_GET_STREAMBYTE debugGetStreamByte |
| #define | DEBUG_DUMP_LIST(label, listHead, listTail, listType) |
| #define | clAlloc(string, size) malloc( size ) |
| #define | clFree(string, memblock) free( memblock ) |
| #define | clDynAlloc(string, size) clAlloc( string, size ) |
Functions | |
| STDC_NONNULL_ARG ((1, 2)) void debugDumpFile(IN_STRING const char *fileName | |
| IN_BUFFER (dataLength) const void *data | |
| STDC_NONNULL_ARG ((1)) void debugDumpFileCert(IN_STRING const char *fileName | |
Variables | |
| IN_LENGTH_SHORT const int | dataLength |
| IN_HANDLE const CRYPT_CERTIFICATE | iCryptCert |
| IN_LENGTH const int | position |
| IN_LENGTH const int IN_LENGTH const int | length |
| #define ASSERT_CONCAT | ( | a, | |
| b | |||
| ) | ASSERT_CONCAT_( a, b ) |
| #define DEBUG_DIAG | ( | x | ) |
| #define DEBUG_DUMP_LIST | ( | label, | |
| listHead, | |||
| listTail, | |||
| listType | |||
| ) |
| #define DEBUG_ENTER | ( | ) | DEBUG_PRINT(( "Enter %s:%d.\n", __FILE__, __LINE__ )) |
| #define DEBUG_EXIT | ( | ) | DEBUG_PRINT(( "Exit %s:%d, status %d.\n", __FILE__, __LINE__, status )) |
| #define DEBUG_EXIT_NONE | ( | ) | DEBUG_PRINT(( "Exit %s:%d.\n", __FILE__, __LINE__ )) |
| #define DEBUG_IN | ( | ) | DEBUG_PRINT(( "In %s:%d.\n", __FILE__, __LINE__ )) |
| #define static_assert | ( | expr, | |
| string | |||
| ) | { enum { ASSERT_CONCAT( static_assert_, __COUNTER__ ) = 1 / ( !!( expr ) ) }; } |
| IN_BUFFER | ( | dataLength | ) | const |
| STDC_NONNULL_ARG | ( | (1, 2) | ) | const |
| STDC_NONNULL_ARG | ( | (1) | ) | const |
| IN_LENGTH_SHORT const int dataLength |
| IN_HANDLE const CRYPT_CERTIFICATE iCryptCert |
| CHECK_RETVAL IN_LENGTH const int position |
1.8.2