Move log function defines to oscam-log.h

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7647 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move reader logging functions in oscam-log-reader.{c,h}

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7648 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Add missing oscam-log.h file.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7649 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Remove log_emm_request() function.

This function holds a single cs_log() call and it is used in only
two places of which one is in camd33 which is disabled by default.

Better call cs_log() directly and remove this function from
oscam-log.h public API.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7650 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move modules, readers and cardreaders init function declarations into their own files.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7651 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Revert of commit 7613 & 7636
Tnx to MartiniB for pointing me again on the fact that sharereaders deliver
a random ecmpid. So this was only working on local readers.
But on seconds sight what I tried to implement was already there an functioning!




git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7652 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Added documentation for new parameter 'decodeforever'.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7653 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move check_filled() func in oscam-string.c

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7654 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Replace fast_rnd() with get_random_bytes().

All of the places that used fast_rnd() really wanted more than one
random byte so get_random_bytes() is better fit for the usage. Additional
extra is that the way get_random_bytes() is implemented it is relatively
secure on platforms that provide either /dev/urandom or /dev/random.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7655 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Merge cs_setpriority() into its one call site.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7656 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Fix crash when parsing broken AES keys.

Patch by tanaseiv. Fixes ticket #2842.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7657 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Create module-monitor.h and use it where it is needed.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7658 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move coolapi.h to extapi/ dir.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7659 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move openxcas API and lib in extapi/ dir.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7660 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move cygwin/ dir in extapi/ dir.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7661 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Remove empty cygwin directory.


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7662 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Remove empty openxcas directory.


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7663 4b0bc96b-bc66-0410-9d44-ebda105a78c1
webif: Couple of more fixes for possible XSS issues.

Patch by tanaseiv posted in ticket #2836.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7664 4b0bc96b-bc66-0410-9d44-ebda105a78c1
cccam: Add recv_timeout config parameter to control network recv timeout.

It seems that the hardcoded timeout of 2s is unsufficient for
certain uses. For more info see:

http://www.streamboard.tv/wbb2/thread.php?postid=427043

This patch adds new parameter in [cccam] section named recv_timeout.

recv_timeout - Timeout in ms that cccam waits for data to become available
to receive. Default value: 2000 (2 seconds).

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7665 4b0bc96b-bc66-0410-9d44-ebda105a78c1
webif: Add support for cccam's recv_timeout parameter.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7666 4b0bc96b-bc66-0410-9d44-ebda105a78c1