[openssl-dev] weird loop in s3_lib.c

Michael Richardson mcr at sandelman.ca
Wed Jan 3 23:34:35 UTC 2018


in
        const SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
                                     STACK_OF(SSL_CIPHER) *srvr)


we have:

    for (i = 0; i < sk_SSL_CIPHER_num(prio); i++) {
        c = sk_SSL_CIPHER_value(prio, i);
        ...

            if (!ok)
                continue;
        }


The if (!ok) continue;
is just a no-op.  Maybe it said at some point:
      "if(ok) break;"

which would have an affect, or maybe there was some code after it that was
removed.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        | network architect  [
]     mcr at sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20180103/e8bf5c70/attachment.sig>


More information about the openssl-dev mailing list