mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-29 07:55:08 +03:00
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:
@@ -26,7 +26,7 @@ from klein import Klein
|
|||||||
from pySim.transport import ApduTracer
|
from pySim.transport import ApduTracer
|
||||||
from pySim.transport.pcsc import PcscSimLink
|
from pySim.transport.pcsc import PcscSimLink
|
||||||
from pySim.commands import SimCardCommands
|
from pySim.commands import SimCardCommands
|
||||||
from pySim.cards import UsimCard
|
from pySim.cards import UiccCardBase
|
||||||
from pySim.exceptions import *
|
from pySim.exceptions import *
|
||||||
|
|
||||||
class ApduPrintTracer(ApduTracer):
|
class ApduPrintTracer(ApduTracer):
|
||||||
@@ -39,7 +39,7 @@ def connect_to_card(slot_nr:int):
|
|||||||
tp.connect()
|
tp.connect()
|
||||||
|
|
||||||
scc = SimCardCommands(tp)
|
scc = SimCardCommands(tp)
|
||||||
card = UsimCard(scc)
|
card = UiccCardBase(scc)
|
||||||
|
|
||||||
# this should be part of UsimCard, but FairewavesSIM breaks with that :/
|
# this should be part of UsimCard, but FairewavesSIM breaks with that :/
|
||||||
scc.cla_byte = "00"
|
scc.cla_byte = "00"
|
||||||
|
|||||||
Reference in New Issue
Block a user