OScam problem with user and password too long/wrong parsing
= Revision All oscam, I use last oscam r9768
= Issue Description When I create a reader with a connection to another server, if my user is too long (or the string has some that oscam don't recognize), don't permit me to connect.
= When the issue occurs I have tested using a reader/user in cacheex mode 2 and a cacheex mode 3, cccam protocol or cs378x, but I think is a general problem.
= How the issue is reproducable I have maked this reader, for example (real test that don't work):
[reader] protocol = cs378x device = server1,port user = cacheusernameto1Srv pwd = cacheusernameto0Srv cacheex = 2 group = 1 dropbadcws = 1 audisabled = 1 cacheex_maxhop = 2
That is connected to server1, that has a user like this:
[account] user = cacheusernameto1Srv pwd = cacheusernameto0Srv description = CacheEx2 keepalive = 1 allowedprotocols = cs378x group = 1 cacheex = 2
Oscam (from reader) don't connect to server1.
Oscam (from reader) says in log: 2014/06/20 11:15:31 C070210 p [cs378x] connecting to server1,port 2014/06/20 11:15:31 C070210 p [cs378x] disconnected: reason disconnect
Oscam from server1 says:
2014/06/20 11:15:32 8C1385F0 c encrypted cs378x-client granted (cacheusernameto1Srv, au=off) 2014/06/20 11:15:32 8C1385F0 c checksum error (wrong password ?)
But user and password are right!
I think is a problem of oscam parsing string.