some notes
authorDaniel Kouřil <kouril@ics.muni.cz>
Wed, 18 Jan 2012 09:04:50 +0000 (09:04 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Wed, 18 Jan 2012 09:04:50 +0000 (09:04 +0000)
emi.canl.canl-c/src/canl.c
emi.canl.canl-c/src/canl_ssl.c

index 6da5716..0e23b16 100644 (file)
@@ -151,6 +151,7 @@ canl_io_connect(canl_ctx cc, canl_io_handler io, const char *host, const char *s
                if (err)
                    continue;
 
+               /* XXX: "break" on success! */
                err = mech->connect(glb_cc, io_cc, ctx, timeout, host); //TODO timeout
                if (err) {
                    mech->free_ctx(glb_cc, ctx);
index 58a9f31..4a1c835 100644 (file)
@@ -283,7 +283,7 @@ static int check_hostname_cert(glb_ctx *cc, io_handler *io,
 #ifdef DEBUG
                     printf(" %s",pBuffer);
 #endif
-                    if (!strcmp(pBuffer, host)) { //TODO substr maybe
+                    if (!strcmp(pBuffer, host)) {
                         correspond = 1;
                         OPENSSL_free(pBuffer);
                         pBuffer = NULL;