Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2#ifndef SYMBIAN_MBEDTLS_PLATFORM_H_
3#define SYMBIAN_MBEDTLS_PLATFORM_H_
4#if defined(__SYMBIAN32__)
5#include <e32def.h>
6#endif
7#include <stddef.h>
8#include <time.h>
9#ifdef __cplusplus
10extern "C" {
11#endif
12// Allocation is bounded by the Symbian signed 32-bit heap size. Overflow and
13// exhaustion return NULL; the library propagates its existing allocation errors.
14void* symbian_mbedtls_calloc(size_t count, size_t size);
15void symbian_mbedtls_free(void* pointer);
16// Implement with real UTC time. Certificate date verification remains enabled.
17time_t symbian_mbedtls_time(time_t* output);
18// Returns NULL for an unavailable or implausible UTC clock.
19struct tm* symbian_mbedtls_utc_gmtime_r(const time_t* input,
20 struct tm* output);
21#ifdef __cplusplus
22}
23#endif
24#endif // SYMBIAN_MBEDTLS_PLATFORM_H_
struct tm * symbian_mbedtls_utc_gmtime_r(const time_t *input, struct tm *output)
time_t symbian_mbedtls_time(time_t *output)
void * symbian_mbedtls_calloc(size_t count, size_t size)
void symbian_mbedtls_free(void *pointer)
uint32_t size
Definition exports.cc:71