Commit Graph

2 Commits

Author SHA1 Message Date
Arnon Gilboa
9cfbd8e527 common: fix ssl_verify windows build errors 2011-05-12 15:13:40 +03:00
Marc-André Lureau
20937a50c9 common: add ssl_verify.c common code
Code adapter from RedPeer::ssl_verify_callback() and used by
spice-gtk.

Since v1:
 - fixed Makefile.am
 - added config.h include
 - autoconf alloca added in patch series
 - moved int escape inside for loop
 - added a failed case when missing assignment
 - replaced strlen () by -1
 - skip spaces after comma
 - c++ guards

I didn't use bool, because openSSL uses int, and it is more future
proof for error reporting.
2011-05-03 16:49:56 +02:00