diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/s23_clnt.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/lib/libssl/s23_clnt.c b/src/lib/libssl/s23_clnt.c index 510e729d55..e2f1544486 100644 --- a/src/lib/libssl/s23_clnt.c +++ b/src/lib/libssl/s23_clnt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s23_clnt.c,v 1.29 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: s23_clnt.c,v 1.30 2014/07/10 08:51:14 tedu Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -293,10 +293,6 @@ ssl23_client_hello(SSL *s) | |||
| 293 | int i; | 293 | int i; |
| 294 | unsigned long l; | 294 | unsigned long l; |
| 295 | int version = 0, version_major, version_minor; | 295 | int version = 0, version_major, version_minor; |
| 296 | #ifndef OPENSSL_NO_COMP | ||
| 297 | int j; | ||
| 298 | SSL_COMP *comp; | ||
| 299 | #endif | ||
| 300 | int ret; | 296 | int ret; |
| 301 | unsigned long mask, options = s->options; | 297 | unsigned long mask, options = s->options; |
| 302 | 298 | ||
| @@ -384,21 +380,8 @@ ssl23_client_hello(SSL *s) | |||
| 384 | s2n(i, p); | 380 | s2n(i, p); |
| 385 | p += i; | 381 | p += i; |
| 386 | 382 | ||
| 387 | /* COMPRESSION */ | 383 | /* add in (no) COMPRESSION */ |
| 388 | #ifdef OPENSSL_NO_COMP | ||
| 389 | *(p++) = 1; | 384 | *(p++) = 1; |
| 390 | #else | ||
| 391 | if ((s->options & SSL_OP_NO_COMPRESSION) || | ||
| 392 | !s->ctx->comp_methods) | ||
| 393 | j = 0; | ||
| 394 | else | ||
| 395 | j = sk_SSL_COMP_num(s->ctx->comp_methods); | ||
| 396 | *(p++) = 1 + j; | ||
| 397 | for (i = 0; i < j; i++) { | ||
| 398 | comp = sk_SSL_COMP_value(s->ctx->comp_methods, i); | ||
| 399 | *(p++) = comp->id; | ||
| 400 | } | ||
| 401 | #endif | ||
| 402 | /* Add the NULL method */ | 385 | /* Add the NULL method */ |
| 403 | *(p++) = 0; | 386 | *(p++) = 0; |
| 404 | 387 | ||
