tsdecrypt reads and decrypts CSA encrypted incoming mpeg transport stream over UDP/RTP using code words obtained from OSCAM or similar CAM server. tsdecrypt communicates with CAM server using cs378x (camd35 over tcp) protocol or newcamd protocol. https://georgi.unixsol.org/programs/tsdecrypt/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

camd.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * CAMD communications header
  3. * Copyright (C) 2011 Unix Solutions Ltd.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2
  7. * as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License (COPYING file) for more details.
  13. *
  14. */
  15. #ifndef CAMD_H
  16. #define CAMD_H
  17. #include "data.h"
  18. int connect_client (int socktype, const char *hostname, const char *service);
  19. struct camd_msg * camd_msg_alloc (enum msg_type msg_type, uint16_t ca_id, uint16_t service_id, uint8_t *data, int data_len);
  20. void camd_msg_free (struct camd_msg **pmsg);
  21. void camd_set_cw (struct ts *ts, uint8_t *new_cw, int check_validity);
  22. void camd_start (struct ts *ts);
  23. void camd_stop (struct ts *ts);
  24. void camd_process_packet (struct ts *ts, struct camd_msg *msg);
  25. void camd_proto_cs378x (struct camd_ops *ops);
  26. void camd_proto_newcamd (struct camd_ops *ops);
  27. #endif