]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn.c
S2S-TLS/OpenSSL: Postpone verification of TLS session right before server handshake
[ngircd-alex.git] / src / ngircd / conn.c
index 3882899f4406b85829d0f5e0ce04f0008aff093a..fab483e1ab2a288a230a39bce68db553df32d418 100644 (file)
@@ -2556,6 +2556,13 @@ cb_listen_ssl(int sock, short irrelevant)
 /**
  * IO callback for new outgoing SSL-enabled server connections.
  *
+ * IMPORTANT: The SSL session has been validated before, but all errors have
+ * been ignored so far! The reason for this is that the generic SSL code has no
+ * idea if the new session actually belongs to a server, as this only becomes
+ * clear when the remote peer sends its PASS command (and we have to handle
+ * invalid client certificates!). Therefore, it is important to check the
+ * status of the SSL session first before continuing the server handshake here!
+ *
  * @param sock         Socket descriptor.
  * @param unused       (ignored IO specification)
  */