diff options
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r-- | src/lib/libssl/t1_lib.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index f9fbfa414c..ddf5c15799 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -57,10 +57,10 @@ | |||
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 | char *tls1_version_str="TLSv1 part of SSLeay 0.9.0b 29-Jun-1998"; | 63 | char *tls1_version_str="TLSv1" OPENSSL_VERSION_PTEXT; |
64 | 64 | ||
65 | #ifndef NO_PROTO | 65 | #ifndef NO_PROTO |
66 | static long tls1_default_timeout(void); | 66 | static long tls1_default_timeout(void); |
@@ -94,6 +94,7 @@ static SSL_METHOD TLSv1_data= { | |||
94 | ssl3_write, | 94 | ssl3_write, |
95 | ssl3_shutdown, | 95 | ssl3_shutdown, |
96 | ssl3_renegotiate, | 96 | ssl3_renegotiate, |
97 | ssl3_renegotiate_check, | ||
97 | ssl3_ctrl, | 98 | ssl3_ctrl, |
98 | ssl3_ctx_ctrl, | 99 | ssl3_ctx_ctrl, |
99 | ssl3_get_cipher_by_char, | 100 | ssl3_get_cipher_by_char, |
@@ -106,45 +107,38 @@ static SSL_METHOD TLSv1_data= { | |||
106 | &TLSv1_enc_data, | 107 | &TLSv1_enc_data, |
107 | }; | 108 | }; |
108 | 109 | ||
109 | static long tls1_default_timeout() | 110 | static long tls1_default_timeout(void) |
110 | { | 111 | { |
111 | /* 2 hours, the 24 hours mentioned in the TLSv1 spec | 112 | /* 2 hours, the 24 hours mentioned in the TLSv1 spec |
112 | * is way too long for http, the cache would over fill */ | 113 | * is way too long for http, the cache would over fill */ |
113 | return(60*60*2); | 114 | return(60*60*2); |
114 | } | 115 | } |
115 | 116 | ||
116 | SSL_METHOD *tlsv1_base_method() | 117 | SSL_METHOD *tlsv1_base_method(void) |
117 | { | 118 | { |
118 | return(&TLSv1_data); | 119 | return(&TLSv1_data); |
119 | } | 120 | } |
120 | 121 | ||
121 | int tls1_new(s) | 122 | int tls1_new(SSL *s) |
122 | SSL *s; | ||
123 | { | 123 | { |
124 | if (!ssl3_new(s)) return(0); | 124 | if (!ssl3_new(s)) return(0); |
125 | s->method->ssl_clear(s); | 125 | s->method->ssl_clear(s); |
126 | return(1); | 126 | return(1); |
127 | } | 127 | } |
128 | 128 | ||
129 | void tls1_free(s) | 129 | void tls1_free(SSL *s) |
130 | SSL *s; | ||
131 | { | 130 | { |
132 | ssl3_free(s); | 131 | ssl3_free(s); |
133 | } | 132 | } |
134 | 133 | ||
135 | void tls1_clear(s) | 134 | void tls1_clear(SSL *s) |
136 | SSL *s; | ||
137 | { | 135 | { |
138 | ssl3_clear(s); | 136 | ssl3_clear(s); |
139 | s->version=TLS1_VERSION; | 137 | s->version=TLS1_VERSION; |
140 | } | 138 | } |
141 | 139 | ||
142 | #if 0 | 140 | #if 0 |
143 | long tls1_ctrl(s,cmd,larg,parg) | 141 | long tls1_ctrl(SSL *s, int cmd, long larg, char *parg) |
144 | SSL *s; | ||
145 | int cmd; | ||
146 | long larg; | ||
147 | char *parg; | ||
148 | { | 142 | { |
149 | return(0); | 143 | return(0); |
150 | } | 144 | } |