Please send information about the version of IO::Socket::SSL you are using and about the operating system.
And then the code of the server you send does not compile (Syntax errors in line 70 and 76).
And then you specified that it should call a function 'culo' for getting SSL_error_trap, but I cannot find this function ('&culo' is a function call, while '\&culo' is the reference to the function)
So please send me kind of working version with all necessary files (e.g. client, server, *.pem files) so that I can reproduce the problem (you might send it directly to Steffen_Ullrich@genua.de because Attachments are not possible here)