mirror of
https://github.com/LedgerHQ/openpgp-card-app
synced 2024-11-09 07:10:30 +00:00
Simplify LNS-specific checks
This commit is contained in:
parent
eaaaa04aae
commit
9ec1fb2bc0
@ -19,7 +19,7 @@
|
||||
#include "gpg_api.h"
|
||||
#include "gpg_vars.h"
|
||||
|
||||
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
|
||||
#ifndef TARGET_NANOS
|
||||
const gpg_nv_state_t N_state_pic;
|
||||
#else
|
||||
gpg_nv_state_t N_state_pic;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "gpg_vars.h"
|
||||
#include "os_io_seproxyhal.h"
|
||||
|
||||
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
|
||||
#ifndef TARGET_NANOS
|
||||
#include "ux.h"
|
||||
ux_state_t G_ux;
|
||||
bolos_ux_params_t G_ux_params;
|
||||
@ -39,4 +39,4 @@ gpg_v_state_t G_gpg_vstate;
|
||||
|
||||
#ifdef HAVE_RSA
|
||||
union cx_u G_cx;
|
||||
#endif // HAVE_RSA
|
||||
#endif // HAVE_RSA
|
||||
|
@ -34,7 +34,7 @@ extern const unsigned char C_OID_cv25519[10];
|
||||
|
||||
extern gpg_v_state_t G_gpg_vstate;
|
||||
|
||||
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
|
||||
#ifndef TARGET_NANOS
|
||||
extern const gpg_nv_state_t N_state_pic;
|
||||
#define N_gpg_pstate ((volatile gpg_nv_state_t *)PIC(&N_state_pic))
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user