diff options
| author | tedu <> | 2014-07-10 08:51:15 +0000 |
|---|---|---|
| committer | tedu <> | 2014-07-10 08:51:15 +0000 |
| commit | 78de0a2c32aaba2455b28e3cb034f296c59c3179 (patch) | |
| tree | 10d3c4ab8299021b37a17232dc3493cb7fc5dd87 /src/lib/libssl/d1_clnt.c | |
| parent | 026ac0f99b4505d6ca98aff637a396038bd916d3 (diff) | |
| download | openbsd-78de0a2c32aaba2455b28e3cb034f296c59c3179.tar.gz openbsd-78de0a2c32aaba2455b28e3cb034f296c59c3179.tar.bz2 openbsd-78de0a2c32aaba2455b28e3cb034f296c59c3179.zip | |
decompress libssl. ok beck jsing
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/d1_clnt.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index 65b59f7987..04ae11d7bc 100644 --- a/src/lib/libssl/d1_clnt.c +++ b/src/lib/libssl/d1_clnt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: d1_clnt.c,v 1.26 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: d1_clnt.c,v 1.27 2014/07/10 08:51:14 tedu Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
| 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
| @@ -544,15 +544,6 @@ dtls1_connect(SSL *s) | |||
| 544 | s->init_num = 0; | 544 | s->init_num = 0; |
| 545 | 545 | ||
| 546 | s->session->cipher = s->s3->tmp.new_cipher; | 546 | s->session->cipher = s->s3->tmp.new_cipher; |
| 547 | #ifdef OPENSSL_NO_COMP | ||
| 548 | s->session->compress_meth = 0; | ||
| 549 | #else | ||
| 550 | if (s->s3->tmp.new_compression == NULL) | ||
| 551 | s->session->compress_meth = 0; | ||
| 552 | else | ||
| 553 | s->session->compress_meth = | ||
| 554 | s->s3->tmp.new_compression->id; | ||
| 555 | #endif | ||
| 556 | if (!s->method->ssl3_enc->setup_key_block(s)) { | 547 | if (!s->method->ssl3_enc->setup_key_block(s)) { |
| 557 | ret = -1; | 548 | ret = -1; |
| 558 | goto end; | 549 | goto end; |
| @@ -768,9 +759,8 @@ dtls1_client_hello(SSL *s) | |||
| 768 | { | 759 | { |
| 769 | unsigned char *buf; | 760 | unsigned char *buf; |
| 770 | unsigned char *p, *d; | 761 | unsigned char *p, *d; |
| 771 | unsigned int i, j; | 762 | unsigned int i; |
| 772 | unsigned long l; | 763 | unsigned long l; |
| 773 | SSL_COMP *comp; | ||
| 774 | 764 | ||
| 775 | buf = (unsigned char *)s->init_buf->data; | 765 | buf = (unsigned char *)s->init_buf->data; |
| 776 | if (s->state == SSL3_ST_CW_CLNT_HELLO_A) { | 766 | if (s->state == SSL3_ST_CW_CLNT_HELLO_A) { |
| @@ -839,16 +829,8 @@ dtls1_client_hello(SSL *s) | |||
| 839 | s2n(i, p); | 829 | s2n(i, p); |
| 840 | p += i; | 830 | p += i; |
| 841 | 831 | ||
| 842 | /* COMPRESSION */ | 832 | /* add in (no) COMPRESSION */ |
| 843 | if (s->ctx->comp_methods == NULL) | 833 | *(p++) = 1; |
| 844 | j = 0; | ||
| 845 | else | ||
| 846 | j = sk_SSL_COMP_num(s->ctx->comp_methods); | ||
| 847 | *(p++) = 1 + j; | ||
| 848 | for (i = 0; i < j; i++) { | ||
| 849 | comp = sk_SSL_COMP_value(s->ctx->comp_methods, i); | ||
| 850 | *(p++) = comp->id; | ||
| 851 | } | ||
| 852 | *(p++) = 0; /* Add the NULL method */ | 834 | *(p++) = 0; /* Add the NULL method */ |
| 853 | 835 | ||
| 854 | if ((p = ssl_add_clienthello_tlsext(s, p, | 836 | if ((p = ssl_add_clienthello_tlsext(s, p, |
