Citeren [email protected]:

Reverting commit r2819 seems fixing the problem.

Index: /trunk/clients/upsclient.c
===================================================================
--- /trunk/clients/upsclient.c (revision 2724)
+++ /trunk/clients/upsclient.c (revision 2819)
@@ -387,5 +387,5 @@
        }

-       SSL_set_verify(ups->ssl, ssl_mode, NULL);
+       SSL_CTX_set_verify(ups->ssl_ctx, ssl_mode, NULL);

        return 1;

IMHO, as the secured socket is already instanciated, context
modification is not propagated to the socket so the secured socket does
not switch to "verify" mode.

That is weird. I would also expect that the SSL_CTX_load_verify_locations() call would also be ineffective if that were the case, since that's dealing with the same

Do I revert commit ?

Well, since it doesn't seem to make a difference here, but it does on your side, I guess that is the most sensible thing to do. Due to the above I'm a bit worried though, that there is something else going on.

Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to