Skip to content

Commit

Permalink
Conditionally add support of Multiple Enabled Profiles (MEP)
Browse files Browse the repository at this point in the history
Define ENABLE_MULTIPLE_ENABLED_PROFILES if you want to support Multiple
Enabled Profiles (MEP).

It is disabled by default because:
- very few people will need it
- it is too easy to create a Denial Of Service using the SCardControl()
  code and update the NAD value
  • Loading branch information
LudovicRousseau committed May 25, 2024
1 parent c69d4b5 commit 12f88e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ifdhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,7 @@ EXTERNAL RESPONSECODE IFDHControl(DWORD Lun, DWORD dwControlCode,
}
}

#ifdef ENABLE_MULTIPLE_ENABLED_PROFILES
/* Multiple Enabled Profiles (MEP)
* https://source.android.com/docs/core/connect/esim-mep */
if (SCARD_CTL_CODE(3600) == dwControlCode)
Expand Down Expand Up @@ -1949,6 +1950,7 @@ EXTERNAL RESPONSECODE IFDHControl(DWORD Lun, DWORD dwControlCode,
}
}
}
#endif

if (IFD_SUCCESS != return_value)
*pdwBytesReturned = 0;
Expand Down

0 comments on commit 12f88e9

Please sign in to comment.