19 #ifndef CCLPLATFORMIF_H 20 #define CCLPLATFORMIF_H 24 #define CCL_MAX_PLATFORM_METADATA_LENGTH 128 138 typedef void (*
ccl_http_callback) (
int status,
void *http_data,
const char *response,
unsigned int response_length);
165 int (*generate_hash) (
const ccl_hash_algo_t hash_algo_type,
const unsigned char *input_msg,
166 const int input_msg_len,
unsigned char *output_msg,
167 const int output_msg_max_len);
203 void (*http_post_request) (
const char *url,
const char *content_type,
204 const char *request,
unsigned int request_length,
205 unsigned int timeout,
211 void (*console_log) (
const char *message);
216 uint64_t (*epoch_time_ms) (void);
232 unsigned int initial_time,
unsigned int interval);
237 void (*destroy_timer) (
void *timer_handle);
247 void * (*mutex_init) (void);
252 void (*mutex_lock) (
void *lock);
257 void (*mutex_unlock) (
void *lock);
262 void (*mutex_destroy) (
void *lock);
267 void * (*rwlock_init) (void);
272 void (*rwlock_rdlock) (
void *rwlock);
277 void (*rwlock_wrlock) (
void *rwlock);
282 void (*rwlock_unlock) (
void *rwlock);
287 void (*rwlock_destroy) (
void *rwlock);
294 void * (*mem_alloc) (
size_t mem_size);
299 void (*mem_free) (
void *memory);
311 int (*base64_encode) (
const unsigned char *input_msg,
312 const int input_msg_len,
unsigned char *output_msg,
const int output_msg_max_len);
Encapsulates function pointers for cryptographic functionalities like hashing, base64, etc.
Definition: ccl_platform_if.h:153