Skip to content

Commit

Permalink
Remove CCID feature bis
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Feb 13, 2025
1 parent 5d507fa commit d5c29ed
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 28 deletions.
1 change: 0 additions & 1 deletion ledger_device_sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ ledger_secure_sdk_sys = { path = "../ledger_secure_sdk_sys", version = "1.6.7" }
[features]
debug = []
speculos = []
ccid = []
heap = [ "ledger_secure_sdk_sys/heap" ]

default = [ "heap" ]
Expand Down
11 changes: 0 additions & 11 deletions ledger_device_sdk/src/ccid.rs

This file was deleted.

6 changes: 0 additions & 6 deletions ledger_device_sdk/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use ledger_secure_sdk_sys::buttons::{get_button_event, ButtonEvent, ButtonsState
use ledger_secure_sdk_sys::seph as sys_seph;
use ledger_secure_sdk_sys::*;

#[cfg(feature = "ccid")]
use crate::ccid;
use crate::seph;
use core::convert::{Infallible, TryFrom};
use core::ops::{Index, IndexMut};
Expand Down Expand Up @@ -193,10 +191,6 @@ impl Comm {
sys_seph::seph_send(&[sys_seph::SephTags::RawAPDU as u8, len[0], len[1]]);
sys_seph::seph_send(&self.apdu_buffer[..self.tx]);
}
#[cfg(feature = "ccid")]
APDU_USB_CCID => {
ccid::send(&self.apdu_buffer[..self.tx]);
}
#[cfg(any(target_os = "nanox", target_os = "stax", target_os = "flex"))]
APDU_BLE => {
ble::send(&self.apdu_buffer[..self.tx]);
Expand Down
2 changes: 0 additions & 2 deletions ledger_device_sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#[cfg(any(target_os = "nanox", target_os = "stax", target_os = "flex"))]
pub mod ble;

#[cfg(feature = "ccid")]
pub mod ccid;
pub mod ecc;
pub mod hash;
pub mod hmac;
Expand Down
8 changes: 0 additions & 8 deletions ledger_secure_sdk_sys/src/c/src.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,6 @@ void link_pass_nvram(
nvm_write(nvram_prev_val_ptr, &nvram_current, sizeof(void*));
}

#ifdef HAVE_CCID
#include "usbd_ccid_if.h"
uint8_t G_io_apdu_buffer[260];
#endif

void c_reset_bss() {
size_t bss_len;
SYMBOL_ABSOLUTE_VALUE(bss_len, _bss_len);
Expand Down Expand Up @@ -312,9 +307,6 @@ void c_boot_std() {

USB_power(0);
USB_power(1);
#ifdef HAVE_CCID
io_usb_ccid_set_card_inserted(1);
#endif

#ifdef HAVE_BLE
memset(&G_io_asynch_ux_callback, 0, sizeof(G_io_asynch_ux_callback));
Expand Down

0 comments on commit d5c29ed

Please sign in to comment.