Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
descrambler: add constcw DES & AES clients
  • Loading branch information
perexg committed Oct 2, 2014
1 parent e6b1d4b commit 4f7e928
Show file tree
Hide file tree
Showing 11 changed files with 455 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -296,6 +296,10 @@ SRCS-${CONFIG_CWC} += \
SRCS-${CONFIG_CAPMT} += \
src/descrambler/capmt.c

# CONSTCW
SRCS-${CONFIG_CONSTCW} += \
src/descrambler/constcw.c

# FFdecsa
ifneq ($(CONFIG_DVBCSA),yes)
FFDECSA-$(CONFIG_CAPMT) = yes
Expand Down
3 changes: 2 additions & 1 deletion configure
Expand Up @@ -18,6 +18,7 @@ ROOTDIR=$(cd "$(dirname "$0")"; pwd)
OPTIONS=(
"cwc:yes"
"capmt:yes"
"constcw:yes"
"v4l:no"
"linuxdvb:yes"
"satip_client:yes"
Expand Down Expand Up @@ -315,7 +316,7 @@ fi
#
# libdvbcsa, tvhcsa
#
if enabled cwc || enabled capmt; then
if enabled cwc || enabled capmt || enabled constcw; then
enable tvhcsa
if enabled dvbcsa; then
(check_cc_header "dvbcsa/dvbcsa" dvbcsa_h &&\
Expand Down
10 changes: 10 additions & 0 deletions src/descrambler/caclient.c
Expand Up @@ -26,6 +26,10 @@ const idclass_t *caclient_classes[] = {
#endif
#if ENABLE_CAPMT
&caclient_capmt_class,
#endif
#if ENABLE_CONSTCW
&caclient_ccw_des_class,
&caclient_ccw_aes_class,
#endif
NULL
};
Expand Down Expand Up @@ -97,6 +101,12 @@ caclient_create
#if ENABLE_CAPMT
if (c == &caclient_capmt_class)
cac = capmt_create();
#endif
#if ENABLE_CONSTCW
if (c == &caclient_ccw_des_class)
cac = constcw_create();
if (c == &caclient_ccw_aes_class)
cac = constcw_create();
#endif
if (cac == NULL)
abort();
Expand Down
3 changes: 3 additions & 0 deletions src/descrambler/caclient.h
Expand Up @@ -27,6 +27,8 @@ struct mpegts_mux;
extern const idclass_t caclient_class;
extern const idclass_t caclient_cwc_class;
extern const idclass_t caclient_capmt_class;
extern const idclass_t caclient_ccw_des_class;
extern const idclass_t caclient_ccw_aes_class;

TAILQ_HEAD(caclient_entry_queue, caclient);

Expand Down Expand Up @@ -75,5 +77,6 @@ void caclient_done(void);

caclient_t *cwc_create(void);
caclient_t *capmt_create(void);
caclient_t *constcw_create(void);

#endif /* __TVH_CACLIENT_H__ */

0 comments on commit 4f7e928

Please sign in to comment.