troglobit/inadyn — pull request #62 by ThomasWaldmann (2014-09-30 13:28:58+00:00)
Title: Fix SSL server cert logging

before this CS, the logging did never happen as subject | issuer was always falsish.

i found out that the library ssl code does not behave according to the docs when using dynamic allocation, thus i switched to an own buffer and it started working as expected:

Tue Sep 30 15:16:56 2014: SSL connection using DHE_RSA_AES_256_CBC_SHA1
Tue Sep 30 15:16:56 2014: SSL server cert subject: C=, ST=, L=, O=, OU=, CN=tux/
Email=
Tue Sep 30 15:16:56 2014: SSL server cert issuer: C=, ST=, L=, O=, OU=, CN=tux/E
mail=

Strange still: the (self-signed) cert shown above has CN "tux" (not: "ipv4.nsupdate.info"). That means that either SNI is still not really working (does not select the correct cert, but reaches correct virtualhost) or something even more weird.