return 0 in verify_cb gives ssl3_get_client_certificate warning
Marc Lehmann
schmorp at schmorp.de
Mon Nov 14 19:45:58 CET 2011
On Mon, Nov 14, 2011 at 07:10:06PM +0100, Tobias Nissen <tn at movb.de> wrote:
> using a custom verification callback with AnyEvent::MPRPC I get
>
> ssl3_get_client_certificate: no certificate returned
I get:
Server got error: ssl3_get_client_certificate: no certificate returned at /opt/perl/lib/perl5/AnyEvent/Handle.pm line 616
and thats because printing that is what AnyEvent::MPRPC does by default in
its on_error handler.
However, this is a TLS error, and I am not sure it's recoverable (it's
definitely not recoverable in AnyEvent::Handle).
If with "only a warning" you mean "I don't want the error printed out",
then maybe you need to subclass the AnyEvent::MPRPC::Server class to
override on_error? I don't know how it works - you should probably refer
to its documentation or author to find out more, the subclass idea I got
from a cursory look over its source code.
Somewhat off-topic, last time I looked (for AnyEvent::MP),
Data::MessagePack or whatever is used causes random memory corruption,
which could also be an issue (probably that has been fixed though).
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list