#ifndef TZ_DK_CLOSE_SECURE_CHANNEL_
#define TZ_DK_CLOSE_SECURE_CHANNEL_

#include <tz_init_msg.h>
#include <init_tl.h>

#include "tl_dk_ctx.h"
#include "msgs/tz_dk_close_secure_channel_msg.h"

/**
 * Closes a secure channel.
 * 
 * @param ctx digital key context.
 * @param sendmsg TA command payload.
 * @param respmsg TA command response payload.
 * 
 * @return 0 on success; different value on error.
 */
DK_Result process_close_secure_channel(
    tl_dk_ctx_t *ctx,
    tz_dk_close_secure_channel_payload_t *sendmsg,
    tz_dk_close_secure_channel_payload_t *respmsg);

#endif