libeuicc: const interface in ctx

This commit is contained in:
estkme 2024-02-26 17:38:04 +08:00
parent dfac5a477c
commit c798995d6d
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ struct euicc_ctx
{ {
struct struct
{ {
struct euicc_apdu_interface *interface; const struct euicc_apdu_interface *interface;
struct struct
{ {
int logic_channel; int logic_channel;
@ -21,7 +21,7 @@ struct euicc_ctx
} apdu; } apdu;
struct struct
{ {
struct euicc_http_interface *interface; const struct euicc_http_interface *interface;
const char *server_address; const char *server_address;
struct struct
{ {

View file

@ -56,7 +56,7 @@ static void euicc_apdu_response_print(const struct apdu_response *resp)
int euicc_apdu_transmit(struct euicc_ctx *ctx, struct apdu_response *response, const struct apdu_request *request, uint32_t request_len) int euicc_apdu_transmit(struct euicc_ctx *ctx, struct apdu_response *response, const struct apdu_request *request, uint32_t request_len)
{ {
struct euicc_apdu_interface *in = ctx->apdu.interface; const struct euicc_apdu_interface *in = ctx->apdu.interface;
memset(response, 0x00, sizeof(*response)); memset(response, 0x00, sizeof(*response));