mirror of https://gerrit.osmocom.org/pysim
sim-rest-server: use UiccCardBase instead of UsimCard
The class UsimCard is deprecated and only still used in very old legacy applications. let's use the more modern UiccCardBase class instead. Related: RT#67094 Change-Id: I3676f033833665751c0d953176eafe175b20c14a
This commit is contained in:
parent
71a3fb8b3a
commit
91b379a039
|
@ -26,7 +26,7 @@ from klein import Klein
|
|||
from pySim.transport import ApduTracer
|
||||
from pySim.transport.pcsc import PcscSimLink
|
||||
from pySim.commands import SimCardCommands
|
||||
from pySim.cards import UsimCard
|
||||
from pySim.cards import UiccCardBase
|
||||
from pySim.exceptions import *
|
||||
|
||||
class ApduPrintTracer(ApduTracer):
|
||||
|
@ -39,7 +39,7 @@ def connect_to_card(slot_nr:int):
|
|||
tp.connect()
|
||||
|
||||
scc = SimCardCommands(tp)
|
||||
card = UsimCard(scc)
|
||||
card = UiccCardBase(scc)
|
||||
|
||||
# this should be part of UsimCard, but FairewavesSIM breaks with that :/
|
||||
scc.cla_byte = "00"
|
||||
|
|
Loading…
Reference in New Issue