summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r--src/lib/libssl/t1_lib.c24
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
63char *tls1_version_str="TLSv1 part of SSLeay 0.9.0b 29-Jun-1998"; 63char *tls1_version_str="TLSv1" OPENSSL_VERSION_PTEXT;
64 64
65#ifndef NO_PROTO 65#ifndef NO_PROTO
66static long tls1_default_timeout(void); 66static 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
109static long tls1_default_timeout() 110static 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
116SSL_METHOD *tlsv1_base_method() 117SSL_METHOD *tlsv1_base_method(void)
117 { 118 {
118 return(&TLSv1_data); 119 return(&TLSv1_data);
119 } 120 }
120 121
121int tls1_new(s) 122int tls1_new(SSL *s)
122SSL *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
129void tls1_free(s) 129void tls1_free(SSL *s)
130SSL *s;
131 { 130 {
132 ssl3_free(s); 131 ssl3_free(s);
133 } 132 }
134 133
135void tls1_clear(s) 134void tls1_clear(SSL *s)
136SSL *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
143long tls1_ctrl(s,cmd,larg,parg) 141long tls1_ctrl(SSL *s, int cmd, long larg, char *parg)
144SSL *s;
145int cmd;
146long larg;
147char *parg;
148 { 142 {
149 return(0); 143 return(0);
150 } 144 }