ASPLes / nopoll

OpenSource WebSocket toolkit
http://www.aspl.es/nopoll
GNU Lesser General Public License v2.1
124 stars 74 forks source link

nopoll/test/nopoll-regression-listener.c Line 538 #30

Closed rfish001 closed 7 years ago

rfish001 commented 7 years ago
#if defined(NOPOLL_HAVE_TLSv12_ENABLED)

    printf ("Test: starting listener with TLS (TLSv1.2) at :1240\n");

    opts     = nopoll_conn_opts_new ();

    nopoll_conn_opts_set_ssl_protocol (opts, NOPOLL_METHOD_TLSV1_2);

    listener7 = nopoll_listener_tls_new_opts (ctx, opts, "0.0.0.0", "1240");

    if (! nopoll_conn_is_ok (listener5)) {

        printf ("ERROR: Expected to find proper listener TLS connection status (:1240, TLSv1.2), but found..\n");

        return -1;

    } /* end if */

#endif

in this file, nopoll_conn_is_ok(listener5) is wrong? or ‘listener7’ ?

francisbrosnan commented 7 years ago

Certainly, you are right. It is now fixed. Thanks for reporting. Best Regards