diff --git a/asn1/RSPRO.asn b/asn1/RSPRO.asn index 8587593..1214f91 100644 --- a/asn1/RSPRO.asn +++ b/asn1/RSPRO.asn @@ -89,6 +89,8 @@ ResultCode ::= ENUMERATED { illegalClientId (1), illegalBankId (2), illegalSlotId (3), + unsupportedProtocolVersion (4), + unknownSlotmap (5), -- no card is present in given slot cardNotPresent (100), diff --git a/include/osmocom/rspro/ResultCode.h b/include/osmocom/rspro/ResultCode.h index a45aa77..1342990 100644 --- a/include/osmocom/rspro/ResultCode.h +++ b/include/osmocom/rspro/ResultCode.h @@ -23,6 +23,8 @@ typedef enum ResultCode { ResultCode_illegalClientId = 1, ResultCode_illegalBankId = 2, ResultCode_illegalSlotId = 3, + ResultCode_unsupportedProtocolVersion = 4, + ResultCode_unknownSlotmap = 5, ResultCode_cardNotPresent = 100, ResultCode_cardUnresponsive = 101, ResultCode_cardTransmissionError = 102 diff --git a/src/rspro/ResultCode.c b/src/rspro/ResultCode.c index 871a1fc..f60bf0c 100644 --- a/src/rspro/ResultCode.c +++ b/src/rspro/ResultCode.c @@ -87,26 +87,30 @@ static const asn_INTEGER_enum_map_t asn_MAP_ResultCode_value2enum_1[] = { { 1, 15, "illegalClientId" }, { 2, 13, "illegalBankId" }, { 3, 13, "illegalSlotId" }, + { 4, 26, "unsupportedProtocolVersion" }, + { 5, 14, "unknownSlotmap" }, { 100, 14, "cardNotPresent" }, { 101, 16, "cardUnresponsive" }, { 102, 21, "cardTransmissionError" } /* This list is extensible */ }; static const unsigned int asn_MAP_ResultCode_enum2value_1[] = { - 4, /* cardNotPresent(100) */ - 6, /* cardTransmissionError(102) */ - 5, /* cardUnresponsive(101) */ + 6, /* cardNotPresent(100) */ + 8, /* cardTransmissionError(102) */ + 7, /* cardUnresponsive(101) */ 2, /* illegalBankId(2) */ 1, /* illegalClientId(1) */ 3, /* illegalSlotId(3) */ - 0 /* ok(0) */ + 0, /* ok(0) */ + 5, /* unknownSlotmap(5) */ + 4 /* unsupportedProtocolVersion(4) */ /* This list is extensible */ }; static const asn_INTEGER_specifics_t asn_SPC_ResultCode_specs_1 = { asn_MAP_ResultCode_value2enum_1, /* "tag" => N; sorted by tag */ asn_MAP_ResultCode_enum2value_1, /* N => "tag"; sorted by N */ - 7, /* Number of elements in the maps */ - 8, /* Extensions before this member */ + 9, /* Number of elements in the maps */ + 10, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0