|
@@ -194,14 +194,26 @@ enum CA_system ts_get_CA_sys(uint16_t CA_id) {
|
194
|
194
|
if (CA_id >= 0x0B00 && CA_id <= 0x0BFF) return CA_CONAX;
|
195
|
195
|
if (CA_id >= 0x0D00 && CA_id <= 0x0DFF) return CA_CRYPTOWORKS;
|
196
|
196
|
if (CA_id >= 0x1800 && CA_id <= 0x18FF) return CA_NAGRA;
|
197
|
|
- if (CA_id >= 0x4AE0 && CA_id <= 0x4AE1) return CA_DRECRYPT;
|
198
|
|
- if (CA_id == 0x5581 || CA_id == 0x4AEE) return CA_BULCRYPT;
|
199
|
|
- if (CA_id == 0x5501 || CA_id == 0x5504 || CA_id == 0x5511) return CA_GRIFFIN;
|
200
|
|
- if (CA_id == 0x4ABF) return CA_DGCRYPT;
|
|
197
|
+ switch (CA_id) {
|
|
198
|
+ case 0x4ABF: return CA_DGCRYPT;
|
|
199
|
+
|
|
200
|
+ case 0x4AE0: return CA_DRECRYPT;
|
|
201
|
+ case 0x4AE1: return CA_DRECRYPT;
|
|
202
|
+
|
|
203
|
+ case 0x5581: return CA_BULCRYPT;
|
|
204
|
+ case 0x4AEE: return CA_BULCRYPT;
|
|
205
|
+
|
|
206
|
+ case 0x5501: return CA_GRIFFIN;
|
|
207
|
+ case 0x5504: return CA_GRIFFIN;
|
|
208
|
+ case 0x5506: return CA_GRIFFIN;
|
|
209
|
+ case 0x5508: return CA_GRIFFIN;
|
|
210
|
+ case 0x5509: return CA_GRIFFIN;
|
|
211
|
+ case 0x550E: return CA_GRIFFIN;
|
|
212
|
+ case 0x5511: return CA_GRIFFIN;
|
|
213
|
+ }
|
201
|
214
|
return CA_UNKNOWN;
|
202
|
215
|
}
|
203
|
216
|
|
204
|
|
-
|
205
|
217
|
char * ts_get_CA_sys_txt(enum CA_system CA_sys) {
|
206
|
218
|
switch (CA_sys) {
|
207
|
219
|
case CA_SECA: return "SECA";
|