diff options
| author | markus <> | 2002-09-05 12:51:50 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 12:51:50 +0000 |
| commit | 15b5d84f9da2ce4bfae8580e56e34a859f74ad71 (patch) | |
| tree | bf939e82d7fd73cc8a01cf6959002209972091bc /src/lib/libssl/t1_srvr.c | |
| parent | 027351f729b9e837200dae6e1520cda6577ab930 (diff) | |
| download | openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.gz openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.bz2 openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.zip | |
import openssl-0.9.7-beta1
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/t1_srvr.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libssl/t1_srvr.c b/src/lib/libssl/t1_srvr.c index 8cf0addcd9..996b7ca8e2 100644 --- a/src/lib/libssl/t1_srvr.c +++ b/src/lib/libssl/t1_srvr.c | |||
| @@ -57,15 +57,15 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include "buffer.h" | 60 | #include <openssl/buffer.h> |
| 61 | #include "rand.h" | 61 | #include <openssl/rand.h> |
| 62 | #include "objects.h" | 62 | #include <openssl/objects.h> |
| 63 | #include "evp.h" | 63 | #include <openssl/evp.h> |
| 64 | #include "x509.h" | 64 | #include <openssl/x509.h> |
| 65 | #include "ssl_locl.h" | 65 | #include "ssl_locl.h" |
| 66 | 66 | ||
| 67 | static SSL_METHOD *tls1_get_server_method(ver) | 67 | static SSL_METHOD *tls1_get_server_method(int ver); |
| 68 | int ver; | 68 | static SSL_METHOD *tls1_get_server_method(int ver) |
| 69 | { | 69 | { |
| 70 | if (ver == TLS1_VERSION) | 70 | if (ver == TLS1_VERSION) |
| 71 | return(TLSv1_server_method()); | 71 | return(TLSv1_server_method()); |
| @@ -73,18 +73,18 @@ int ver; | |||
| 73 | return(NULL); | 73 | return(NULL); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | SSL_METHOD *TLSv1_server_method() | 76 | SSL_METHOD *TLSv1_server_method(void) |
| 77 | { | 77 | { |
| 78 | static int init=1; | 78 | static int init=1; |
| 79 | static SSL_METHOD TLSv1_server_data; | 79 | static SSL_METHOD TLSv1_server_data; |
| 80 | 80 | ||
| 81 | if (init) | 81 | if (init) |
| 82 | { | 82 | { |
| 83 | init=0; | ||
| 84 | memcpy((char *)&TLSv1_server_data,(char *)tlsv1_base_method(), | 83 | memcpy((char *)&TLSv1_server_data,(char *)tlsv1_base_method(), |
| 85 | sizeof(SSL_METHOD)); | 84 | sizeof(SSL_METHOD)); |
| 86 | TLSv1_server_data.ssl_accept=ssl3_accept; | 85 | TLSv1_server_data.ssl_accept=ssl3_accept; |
| 87 | TLSv1_server_data.get_ssl_method=tls1_get_server_method; | 86 | TLSv1_server_data.get_ssl_method=tls1_get_server_method; |
| 87 | init=0; | ||
| 88 | } | 88 | } |
| 89 | return(&TLSv1_server_data); | 89 | return(&TLSv1_server_data); |
| 90 | } | 90 | } |
