diff options
Diffstat (limited to 'src/lib/libssl/t1_clnt.c')
| -rw-r--r-- | src/lib/libssl/t1_clnt.c | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/src/lib/libssl/t1_clnt.c b/src/lib/libssl/t1_clnt.c index 986d2436e2..9745630a00 100644 --- a/src/lib/libssl/t1_clnt.c +++ b/src/lib/libssl/t1_clnt.c | |||
| @@ -57,14 +57,14 @@ | |||
| 57 | */ | 57 | */ | 
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> | 
| 60 | #include "buffer.h" | 60 | #include <openssl/buffer.h> | 
| 61 | #include "rand.h" | 61 | #include <openssl/rand.h> | 
| 62 | #include "objects.h" | 62 | #include <openssl/objects.h> | 
| 63 | #include "evp.h" | 63 | #include <openssl/evp.h> | 
| 64 | #include "ssl_locl.h" | 64 | #include "ssl_locl.h" | 
| 65 | 65 | ||
| 66 | static SSL_METHOD *tls1_get_client_method(ver) | 66 | static SSL_METHOD *tls1_get_client_method(int ver); | 
| 67 | int ver; | 67 | static SSL_METHOD *tls1_get_client_method(int ver) | 
| 68 | { | 68 | { | 
| 69 | if (ver == TLS1_VERSION) | 69 | if (ver == TLS1_VERSION) | 
| 70 | return(TLSv1_client_method()); | 70 | return(TLSv1_client_method()); | 
| @@ -72,18 +72,18 @@ int ver; | |||
| 72 | return(NULL); | 72 | return(NULL); | 
| 73 | } | 73 | } | 
| 74 | 74 | ||
| 75 | SSL_METHOD *TLSv1_client_method() | 75 | SSL_METHOD *TLSv1_client_method(void) | 
| 76 | { | 76 | { | 
| 77 | static int init=1; | 77 | static int init=1; | 
| 78 | static SSL_METHOD TLSv1_client_data; | 78 | static SSL_METHOD TLSv1_client_data; | 
| 79 | 79 | ||
| 80 | if (init) | 80 | if (init) | 
| 81 | { | 81 | { | 
| 82 | init=0; | ||
| 83 | memcpy((char *)&TLSv1_client_data,(char *)tlsv1_base_method(), | 82 | memcpy((char *)&TLSv1_client_data,(char *)tlsv1_base_method(), | 
| 84 | sizeof(SSL_METHOD)); | 83 | sizeof(SSL_METHOD)); | 
| 85 | TLSv1_client_data.ssl_connect=ssl3_connect; | 84 | TLSv1_client_data.ssl_connect=ssl3_connect; | 
| 86 | TLSv1_client_data.get_ssl_method=tls1_get_client_method; | 85 | TLSv1_client_data.get_ssl_method=tls1_get_client_method; | 
| 86 | init=0; | ||
| 87 | } | 87 | } | 
| 88 | return(&TLSv1_client_data); | 88 | return(&TLSv1_client_data); | 
| 89 | } | 89 | } | 
