Skip to content

Commit

Permalink
Fixed undefined blob error.
Browse files Browse the repository at this point in the history
  • Loading branch information
murisi committed Sep 20, 2024
1 parent 76b17c0 commit acd2c3c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deps/ledger-secure-sdk
Submodule ledger-secure-sdk updated 60 files
+0 −46 .github/workflows/documentation.yml
+0 −2 Makefile.defines
+2 −3 Makefile.target
+24 −25 README.md
+2 −2 doc/mainpage.dox
+0 −6 include/os_io_seproxyhal.h
+0 −230 include/os_pki.h
+0 −109 include/sdk_apdu_commands.h
+0 −5 include/syscalls.h
+1 −1 lib_blewbxx_impl/doc/mainpage.dox
+1 −1 lib_cxng/doc/mainpage.dox
+1 −1 lib_nbgl/doc/mainpage.dox
+517 −192 lib_nbgl/doc/nbgl_use_case.dox
+ lib_nbgl/doc/resources/UseCase-AddressConfirmation.png
+ lib_nbgl/doc/resources/UseCase-AddressConfirmationExt.png
+ lib_nbgl/doc/resources/UseCase-Choice.png
+ lib_nbgl/doc/resources/UseCase-HomeExt.png
+ lib_nbgl/doc/resources/UseCase-HomePlugIn.png
+ lib_nbgl/doc/resources/UseCase-HomeSettings.png
+ lib_nbgl/doc/resources/UseCase-HomeSettingsAPI.png
+ lib_nbgl/doc/resources/UseCase-Keypad.png
+ lib_nbgl/doc/resources/UseCase-Review-Status.png
+ lib_nbgl/doc/resources/UseCase-Review.png
+ lib_nbgl/doc/resources/UseCase-Review1.png
+ lib_nbgl/doc/resources/UseCase-ReviewForwardOnly.png
+ lib_nbgl/doc/resources/UseCase-ReviewLight.png
+ lib_nbgl/doc/resources/UseCase-ReviewStart.png
+ lib_nbgl/doc/resources/UseCase-Settings1.png
+ lib_nbgl/doc/resources/UseCase-Settings2.png
+ lib_nbgl/doc/resources/UseCase-Spinner.png
+ lib_nbgl/doc/resources/UseCase-Status.png
+ lib_nbgl/doc/resources/UseCase-Streaming.png
+0 −20 lib_nbgl/include/nbgl_content.h
+1 −3 lib_nbgl/include/nbgl_layout.h
+180 −289 lib_nbgl/src/nbgl_layout.c
+35 −51 lib_nbgl/src/nbgl_layout_keyboard.c
+23 −37 lib_nbgl/src/nbgl_layout_keypad.c
+12 −12 lib_nbgl/src/nbgl_layout_navigation.c
+8 −13 lib_nbgl/src/nbgl_obj.c
+2 −2 lib_nbgl/src/nbgl_obj_keyboard_nanos.c
+0 −1 lib_nbgl/src/nbgl_page.c
+107 −119 lib_nbgl/src/nbgl_use_case.c
+4 −13 lib_nbgl/tools/icon2glyph.py
+1 −1 lib_nfc/doc/mainpage.dox
+1 −1 lib_standard_app/doc/mainpage.dox
+1 −1 lib_stusb/doc/mainpage.dox
+1 −1 lib_stusb_impl/doc/mainpage.dox
+30 −1 lib_stusb_impl/usbd_impl.c
+1 −1 lib_u2f/doc/mainpage.dox
+1 −1 lib_ux/doc/mainpage.dox
+3 −3 lib_ux_nbgl/doc/mainpage.dox
+0 −4 lib_ux_sync/include/ux_sync.h
+0 −22 lib_ux_sync/src/ux_sync.c
+13 −42 src/os_io_seproxyhal.c
+0 −45 src/syscalls.c
+0 −4 target/flex/include/bolos_target.h
+0 −6 target/nanos/include/bolos_target.h
+0 −6 target/nanos2/include/bolos_target.h
+0 −6 target/nanox/include/bolos_target.h
+0 −4 target/stax/include/bolos_target.h
12 changes: 8 additions & 4 deletions rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,16 +625,20 @@ where

/// Clean buffers
pub async fn clean_randomness_buffers(&self) -> Result<(), NamError<E::Error>> {
let start_command = APDUCommand {
let arr: &[u8] = &[];
let command = APDUCommand {
cla: CLA,
ins: InstructionCode::CleanBuffers as _,
p1: ChunkPayloadType::Init as u8,
p2: 0x00,
data: &[], // Send empty data
data: arr, // Send empty data
};

let response =
<Self as AppExt<E>>::send_chunks(&self.apdu_transport, start_command, blob).await?;
self
.apdu_transport
.exchange(&command)
.await
.map_err(LedgerAppError::TransportError)?;

Ok(())
}
Expand Down

0 comments on commit acd2c3c

Please sign in to comment.