OLD | NEW |
1 /* ssl/t1_clnt.c */ | 1 /* ssl/t1_clnt.c */ |
2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
8 * | 8 * |
9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 * [including the GNU Public Licence.] | 56 * [including the GNU Public Licence.] |
57 */ | 57 */ |
58 | 58 |
59 #include <stdio.h> | 59 #include <stdio.h> |
60 #include "ssl_locl.h" | 60 #include "ssl_locl.h" |
61 #include <openssl/buffer.h> | 61 #include <openssl/buffer.h> |
62 #include <openssl/rand.h> | 62 #include <openssl/rand.h> |
63 #include <openssl/objects.h> | 63 #include <openssl/objects.h> |
64 #include <openssl/evp.h> | 64 #include <openssl/evp.h> |
65 | 65 |
66 static SSL_METHOD *tls1_get_client_method(int ver); | 66 static const SSL_METHOD *tls1_get_client_method(int ver); |
67 static SSL_METHOD *tls1_get_client_method(int ver) | 67 static const 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()); |
71 else | 71 else |
72 return(NULL); | 72 return(NULL); |
73 } | 73 } |
74 | 74 |
75 IMPLEMENT_tls1_meth_func(TLSv1_client_method, | 75 IMPLEMENT_tls1_meth_func(TLSv1_client_method, |
76 ssl_undefined_function, | 76 ssl_undefined_function, |
77 ssl3_connect, | 77 ssl3_connect, |
78 tls1_get_client_method) | 78 tls1_get_client_method) |
79 | 79 |
OLD | NEW |