summaryrefslogtreecommitdiffstats
path: root/ssl/s2_clnt.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-01-21 21:22:49 +0000
committerMatt Caswell <matt@openssl.org>2015-01-22 09:28:55 +0000
commit335d4d06a712b58508318b14b9f8acd28314e65b (patch)
tree7b283498dc55ed328845012162be0e3e5d862f4b /ssl/s2_clnt.c
parentf3b6ee30f4995d74f1008ffbe10e1b59caaffcaa (diff)
Tweaks for comments due to indent's inability to handle them
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'ssl/s2_clnt.c')
-rw-r--r--ssl/s2_clnt.c28
1 files changed, 23 insertions, 5 deletions
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c
index f166bcdedf..11c70ee48f 100644
--- a/ssl/s2_clnt.c
+++ b/ssl/s2_clnt.c
@@ -388,7 +388,10 @@ static int get_server_hello(SSL *s)
i = ssl2_read(s,(char *)&(buf[s->init_num]),j);
if (i != j) return(ssl2_part_read(s,SSL_F_GET_SERVER_HELLO,i));
if (s->msg_callback)
- s->msg_callback(0, s->version, 0, buf, (size_t)len, s, s->msg_callback_arg); /* SERVER-HELLO */
+ {
+ /* SERVER-HELLO */
+ s->msg_callback(0, s->version, 0, buf, (size_t)len, s, s->msg_callback_arg);
+ }
/* things are looking good */
@@ -766,7 +769,10 @@ static int client_certificate(SSL *s)
return(ssl2_part_read(s,SSL_F_CLIENT_CERTIFICATE,i));
s->init_num += i;
if (s->msg_callback)
- s->msg_callback(0, s->version, 0, buf, (size_t)s->init_num, s, s->msg_callback_arg); /* REQUEST-CERTIFICATE */
+ {
+ /* REQUEST-CERTIFICATE */
+ s->msg_callback(0, s->version, 0, buf, (size_t)s->init_num, s, s->msg_callback_arg);
+ }
/* type=buf[0]; */
/* type eq x509 */
@@ -935,7 +941,10 @@ static int get_server_verify(SSL *s)
if (i < n)
return(ssl2_part_read(s,SSL_F_GET_SERVER_VERIFY,i));
if (s->msg_callback)
- s->msg_callback(0, s->version, 0, p, len, s, s->msg_callback_arg); /* SERVER-VERIFY */
+ {
+ /* SERVER-VERIFY */
+ s->msg_callback(0, s->version, 0, p, len, s, s->msg_callback_arg);
+ }
p += 1;
if (CRYPTO_memcmp(p,s->s2->challenge,s->s2->challenge_length) != 0)
@@ -989,11 +998,20 @@ static int get_server_finished(SSL *s)
len = 1 + SSL2_SSL_SESSION_ID_LENGTH;
n = len - s->init_num;
i = ssl2_read(s,(char *)&(buf[s->init_num]), n);
- if (i < n) /* XXX could be shorter than SSL2_SSL_SESSION_ID_LENGTH, that's the maximum */
+ if (i < n)
+ {
+ /*
+ * XXX could be shorter than SSL2_SSL_SESSION_ID_LENGTH,
+ * that's the maximum
+ */
return(ssl2_part_read(s,SSL_F_GET_SERVER_FINISHED,i));
+ }
s->init_num += i;
if (s->msg_callback)
- s->msg_callback(0, s->version, 0, buf, (size_t)s->init_num, s, s->msg_callback_arg); /* SERVER-FINISHED */
+ {
+ /* SERVER-FINISHED */
+ s->msg_callback(0, s->version, 0, buf, (size_t)s->init_num, s, s->msg_callback_arg);
+ }
if (!s->hit) /* new session */
{