mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 12:55:41 +00:00
Move X.509 CRT cache handling functions to x509_internal.h
This commit is contained in:
parent
3c3d5c5836
commit
a4dfc0d73d
|
@ -791,16 +791,6 @@ int mbedtls_x509_crt_get_ext_key_usage( mbedtls_x509_crt const *crt,
|
|||
*/
|
||||
int mbedtls_x509_crt_flush_cache( mbedtls_x509_crt const *crt );
|
||||
|
||||
/* Internal X.509 CRT cache handling functions.
|
||||
* They are not part of the public API and may change
|
||||
* at any time. */
|
||||
|
||||
int mbedtls_x509_crt_flush_cache_frame( mbedtls_x509_crt const *crt );
|
||||
int mbedtls_x509_crt_flush_cache_pk( mbedtls_x509_crt const *crt );
|
||||
|
||||
int mbedtls_x509_crt_cache_provide_frame( mbedtls_x509_crt const *crt );
|
||||
int mbedtls_x509_crt_cache_provide_pk( mbedtls_x509_crt const *crt );
|
||||
|
||||
static inline int mbedtls_x509_crt_frame_acquire( mbedtls_x509_crt const *crt,
|
||||
mbedtls_x509_crt_frame **frame_ptr )
|
||||
{
|
||||
|
|
|
@ -44,6 +44,16 @@ typedef struct mbedtls_x509_crt_cache
|
|||
struct mbedtls_pk_context *pk;
|
||||
} mbedtls_x509_crt_cache;
|
||||
|
||||
/* Internal X.509 CRT cache handling functions. */
|
||||
|
||||
int mbedtls_x509_crt_flush_cache_frame( struct mbedtls_x509_crt const *crt );
|
||||
int mbedtls_x509_crt_flush_cache_pk( struct mbedtls_x509_crt const *crt );
|
||||
|
||||
int mbedtls_x509_crt_cache_provide_frame( struct mbedtls_x509_crt const *crt );
|
||||
int mbedtls_x509_crt_cache_provide_pk( struct mbedtls_x509_crt const *crt );
|
||||
|
||||
/* Uncategorized internal X.509 functions */
|
||||
|
||||
int mbedtls_x509_get_name( unsigned char *p, size_t len,
|
||||
mbedtls_x509_name *cur );
|
||||
int mbedtls_x509_get_alg_null( unsigned char **p, const unsigned char *end,
|
||||
|
|
Loading…
Reference in a new issue