diff options
| author | tedu <> | 2014-07-10 08:51:15 +0000 | 
|---|---|---|
| committer | tedu <> | 2014-07-10 08:51:15 +0000 | 
| commit | 7fa0fcaa4570540c46d2430a269ae2e95aaa258e (patch) | |
| tree | 10d3c4ab8299021b37a17232dc3493cb7fc5dd87 /src/lib/libssl/ssl_lib.c | |
| parent | 4edb6fce921fd3bc18b713f5802551bacc02cf8a (diff) | |
| download | openbsd-7fa0fcaa4570540c46d2430a269ae2e95aaa258e.tar.gz openbsd-7fa0fcaa4570540c46d2430a269ae2e95aaa258e.tar.bz2 openbsd-7fa0fcaa4570540c46d2430a269ae2e95aaa258e.zip  | |
decompress libssl. ok beck jsing
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
| -rw-r--r-- | src/lib/libssl/ssl_lib.c | 30 | 
1 files changed, 1 insertions, 29 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index a5f2f3f751..765012e861 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c  | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_lib.c,v 1.71 2014/07/10 08:18:55 bcook Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.72 2014/07/10 08:51:15 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 | * | 
| @@ -1793,9 +1793,6 @@ SSL_CTX_new(const SSL_METHOD *meth) | |||
| 1793 | CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_CTX, ret, &ret->ex_data); | 1793 | CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_CTX, ret, &ret->ex_data); | 
| 1794 | 1794 | ||
| 1795 | ret->extra_certs = NULL; | 1795 | ret->extra_certs = NULL; | 
| 1796 | /* No compression for DTLS */ | ||
| 1797 | if (meth->version != DTLS1_VERSION) | ||
| 1798 | ret->comp_methods = SSL_COMP_get_compression_methods(); | ||
| 1799 | 1796 | ||
| 1800 | ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH; | 1797 | ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH; | 
| 1801 | 1798 | ||
| @@ -2610,12 +2607,6 @@ ssl_clear_cipher_ctx(SSL *s) | |||
| 2610 | s->aead_write_ctx = NULL; | 2607 | s->aead_write_ctx = NULL; | 
| 2611 | } | 2608 | } | 
| 2612 | 2609 | ||
| 2613 | #ifndef OPENSSL_NO_COMP | ||
| 2614 | COMP_CTX_free(s->expand); | ||
| 2615 | s->expand = NULL; | ||
| 2616 | COMP_CTX_free(s->compress); | ||
| 2617 | s->compress = NULL; | ||
| 2618 | #endif | ||
| 2619 | } | 2610 | } | 
| 2620 | 2611 | ||
| 2621 | /* Fix this function so that it takes an optional type parameter */ | 2612 | /* Fix this function so that it takes an optional type parameter */ | 
| @@ -2645,7 +2636,6 @@ SSL_get_current_cipher(const SSL *s) | |||
| 2645 | return (s->session->cipher); | 2636 | return (s->session->cipher); | 
| 2646 | return (NULL); | 2637 | return (NULL); | 
| 2647 | } | 2638 | } | 
| 2648 | #ifdef OPENSSL_NO_COMP | ||
| 2649 | const void * | 2639 | const void * | 
| 2650 | SSL_get_current_compression(SSL *s) | 2640 | SSL_get_current_compression(SSL *s) | 
| 2651 | { | 2641 | { | 
| @@ -2657,24 +2647,6 @@ SSL_get_current_expansion(SSL *s) | |||
| 2657 | { | 2647 | { | 
| 2658 | return (NULL); | 2648 | return (NULL); | 
| 2659 | } | 2649 | } | 
| 2660 | #else | ||
| 2661 | |||
| 2662 | const COMP_METHOD * | ||
| 2663 | SSL_get_current_compression(SSL *s) | ||
| 2664 | { | ||
| 2665 | if (s->compress != NULL) | ||
| 2666 | return (s->compress->meth); | ||
| 2667 | return (NULL); | ||
| 2668 | } | ||
| 2669 | |||
| 2670 | const COMP_METHOD * | ||
| 2671 | SSL_get_current_expansion(SSL *s) | ||
| 2672 | { | ||
| 2673 | if (s->expand != NULL) | ||
| 2674 | return (s->expand->meth); | ||
| 2675 | return (NULL); | ||
| 2676 | } | ||
| 2677 | #endif | ||
| 2678 | 2650 | ||
| 2679 | int | 2651 | int | 
| 2680 | ssl_init_wbio_buffer(SSL *s, int push) | 2652 | ssl_init_wbio_buffer(SSL *s, int push) | 
