OLD | NEW |
1 /* ssl/s3_meth.c */ | 1 /* ssl/s3_meth.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 * The licence and distribution terms for any publically available version or | 53 * The licence and distribution terms for any publically available version or |
54 * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 * derivative of this code cannot be changed. i.e. this code cannot simply be |
55 * copied and put under another distribution licence | 55 * copied and put under another distribution licence |
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 <openssl/objects.h> | 60 #include <openssl/objects.h> |
61 #include "ssl_locl.h" | 61 #include "ssl_locl.h" |
62 | 62 |
63 static SSL_METHOD *ssl3_get_method(int ver); | 63 static const SSL_METHOD *ssl3_get_method(int ver); |
64 static SSL_METHOD *ssl3_get_method(int ver) | 64 static const SSL_METHOD *ssl3_get_method(int ver) |
65 { | 65 { |
66 if (ver == SSL3_VERSION) | 66 if (ver == SSL3_VERSION) |
67 return(SSLv3_method()); | 67 return(SSLv3_method()); |
68 else | 68 else |
69 return(NULL); | 69 return(NULL); |
70 } | 70 } |
71 | 71 |
72 IMPLEMENT_ssl3_meth_func(SSLv3_method, | 72 IMPLEMENT_ssl3_meth_func(SSLv3_method, |
73 » » » ssl3_accept, | 73 » » » ssl3_accept, |
74 » » » ssl3_connect, | 74 » » » ssl3_connect, |
75 » » » ssl3_get_method) | 75 » » » ssl3_get_method) |
76 | 76 |
77 | 77 |
OLD | NEW |