Lines Matching refs:ctx
38 void mbedtls_pem_init(mbedtls_pem_context *ctx)
40 memset(ctx, 0, sizeof(mbedtls_pem_context));
268 int mbedtls_pem_read_buffer(mbedtls_pem_context *ctx, const char *header, const char *footer,
284 if (ctx == NULL) {
476 ctx->buf = buf;
477 ctx->buflen = len;
482 void mbedtls_pem_free(mbedtls_pem_context *ctx)
484 if (ctx->buf != NULL) {
485 mbedtls_zeroize_and_free(ctx->buf, ctx->buflen);
487 mbedtls_free(ctx->info);
489 mbedtls_platform_zeroize(ctx, sizeof(mbedtls_pem_context));