diff options
Diffstat (limited to 'src/lib/libssl/t1_meth.c')
-rw-r--r-- | src/lib/libssl/t1_meth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/t1_meth.c b/src/lib/libssl/t1_meth.c index 512c2078e7..9bb36a7d1c 100644 --- a/src/lib/libssl/t1_meth.c +++ b/src/lib/libssl/t1_meth.c | |||
@@ -57,11 +57,11 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "objects.h" | 60 | #include <openssl/objects.h> |
61 | #include "ssl_locl.h" | 61 | #include "ssl_locl.h" |
62 | 62 | ||
63 | static SSL_METHOD *tls1_get_method(ver) | 63 | static SSL_METHOD *tls1_get_method(int ver); |
64 | int ver; | 64 | static SSL_METHOD *tls1_get_method(int ver) |
65 | { | 65 | { |
66 | if (ver == TLS1_VERSION) | 66 | if (ver == TLS1_VERSION) |
67 | return(TLSv1_method()); | 67 | return(TLSv1_method()); |
@@ -69,19 +69,19 @@ int ver; | |||
69 | return(NULL); | 69 | return(NULL); |
70 | } | 70 | } |
71 | 71 | ||
72 | SSL_METHOD *TLSv1_method() | 72 | SSL_METHOD *TLSv1_method(void) |
73 | { | 73 | { |
74 | static int init=1; | 74 | static int init=1; |
75 | static SSL_METHOD TLSv1_data; | 75 | static SSL_METHOD TLSv1_data; |
76 | 76 | ||
77 | if (init) | 77 | if (init) |
78 | { | 78 | { |
79 | init=0; | ||
80 | memcpy((char *)&TLSv1_data,(char *)tlsv1_base_method(), | 79 | memcpy((char *)&TLSv1_data,(char *)tlsv1_base_method(), |
81 | sizeof(SSL_METHOD)); | 80 | sizeof(SSL_METHOD)); |
82 | TLSv1_data.ssl_connect=ssl3_connect; | 81 | TLSv1_data.ssl_connect=ssl3_connect; |
83 | TLSv1_data.ssl_accept=ssl3_accept; | 82 | TLSv1_data.ssl_accept=ssl3_accept; |
84 | TLSv1_data.get_ssl_method=tls1_get_method; | 83 | TLSv1_data.get_ssl_method=tls1_get_method; |
84 | init=0; | ||
85 | } | 85 | } |
86 | return(&TLSv1_data); | 86 | return(&TLSv1_data); |
87 | } | 87 | } |