diff options
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r-- | src/lib/libssl/t1_lib.c | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index f9fbfa414c..ca6c03d5af 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -57,16 +57,12 @@ | |||
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 | const char *tls1_version_str="TLSv1" OPENSSL_VERSION_PTEXT; |
64 | 64 | ||
65 | #ifndef NO_PROTO | ||
66 | static long tls1_default_timeout(void); | 65 | static long tls1_default_timeout(void); |
67 | #else | ||
68 | static long tls1_default_timeout(); | ||
69 | #endif | ||
70 | 66 | ||
71 | static SSL3_ENC_METHOD TLSv1_enc_data={ | 67 | static SSL3_ENC_METHOD TLSv1_enc_data={ |
72 | tls1_enc, | 68 | tls1_enc, |
@@ -94,6 +90,7 @@ static SSL_METHOD TLSv1_data= { | |||
94 | ssl3_write, | 90 | ssl3_write, |
95 | ssl3_shutdown, | 91 | ssl3_shutdown, |
96 | ssl3_renegotiate, | 92 | ssl3_renegotiate, |
93 | ssl3_renegotiate_check, | ||
97 | ssl3_ctrl, | 94 | ssl3_ctrl, |
98 | ssl3_ctx_ctrl, | 95 | ssl3_ctx_ctrl, |
99 | ssl3_get_cipher_by_char, | 96 | ssl3_get_cipher_by_char, |
@@ -104,47 +101,48 @@ static SSL_METHOD TLSv1_data= { | |||
104 | ssl_bad_method, | 101 | ssl_bad_method, |
105 | tls1_default_timeout, | 102 | tls1_default_timeout, |
106 | &TLSv1_enc_data, | 103 | &TLSv1_enc_data, |
104 | ssl_undefined_function, | ||
105 | ssl3_callback_ctrl, | ||
106 | ssl3_ctx_callback_ctrl, | ||
107 | }; | 107 | }; |
108 | 108 | ||
109 | static long tls1_default_timeout() | 109 | static long tls1_default_timeout(void) |
110 | { | 110 | { |
111 | /* 2 hours, the 24 hours mentioned in the TLSv1 spec | 111 | /* 2 hours, the 24 hours mentioned in the TLSv1 spec |
112 | * is way too long for http, the cache would over fill */ | 112 | * is way too long for http, the cache would over fill */ |
113 | return(60*60*2); | 113 | return(60*60*2); |
114 | } | 114 | } |
115 | 115 | ||
116 | SSL_METHOD *tlsv1_base_method() | 116 | SSL_METHOD *tlsv1_base_method(void) |
117 | { | 117 | { |
118 | return(&TLSv1_data); | 118 | return(&TLSv1_data); |
119 | } | 119 | } |
120 | 120 | ||
121 | int tls1_new(s) | 121 | int tls1_new(SSL *s) |
122 | SSL *s; | ||
123 | { | 122 | { |
124 | if (!ssl3_new(s)) return(0); | 123 | if (!ssl3_new(s)) return(0); |
125 | s->method->ssl_clear(s); | 124 | s->method->ssl_clear(s); |
126 | return(1); | 125 | return(1); |
127 | } | 126 | } |
128 | 127 | ||
129 | void tls1_free(s) | 128 | void tls1_free(SSL *s) |
130 | SSL *s; | ||
131 | { | 129 | { |
132 | ssl3_free(s); | 130 | ssl3_free(s); |
133 | } | 131 | } |
134 | 132 | ||
135 | void tls1_clear(s) | 133 | void tls1_clear(SSL *s) |
136 | SSL *s; | ||
137 | { | 134 | { |
138 | ssl3_clear(s); | 135 | ssl3_clear(s); |
139 | s->version=TLS1_VERSION; | 136 | s->version=TLS1_VERSION; |
140 | } | 137 | } |
141 | 138 | ||
142 | #if 0 | 139 | #if 0 |
143 | long tls1_ctrl(s,cmd,larg,parg) | 140 | long tls1_ctrl(SSL *s, int cmd, long larg, char *parg) |
144 | SSL *s; | 141 | { |
145 | int cmd; | 142 | return(0); |
146 | long larg; | 143 | } |
147 | char *parg; | 144 | |
145 | long tls1_callback_ctrl(SSL *s, int cmd, void *(*fp)()) | ||
148 | { | 146 | { |
149 | return(0); | 147 | return(0); |
150 | } | 148 | } |