Ber Encoding Issue

Hello Again!

Regrettably I did a lot of my changes on an old FreeRDP codebase that we are using at my company and then had to port them forward by hand to the latest FreeRDP/master. I tested with a few password lengths and everything appeared to work but it seems I missed a few lines that fix one last (rare) boundary condition - here they are.

If someone can briefly outline how you unit test this codebase (commands to run the test etc) then I will write some unit tests for all this work that prove each of the boundary conditions explicitly.

Cheers,
~ Simon