projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remainder of SSL purpose and trust code: trust and purpose setting in
[oweals/openssl.git]
/
ssl
/
t1_srvr.c
diff --git
a/ssl/t1_srvr.c
b/ssl/t1_srvr.c
index 8cf0addcd9e5014276ad3ec45ae1f43bf5efc297..996b7ca8e2ef54a6bc65288d94e9f9aa8e9810e0 100644
(file)
--- a/
ssl/t1_srvr.c
+++ b/
ssl/t1_srvr.c
@@
-57,15
+57,15
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
-#include
"buffer.h"
-#include
"rand.h"
-#include
"objects.h"
-#include
"evp.h"
-#include
"x509.h"
+#include
<openssl/buffer.h>
+#include
<openssl/rand.h>
+#include
<openssl/objects.h>
+#include
<openssl/evp.h>
+#include
<openssl/x509.h>
#include "ssl_locl.h"
#include "ssl_locl.h"
-static SSL_METHOD *tls1_get_server_method(
ver)
-int ver;
+static SSL_METHOD *tls1_get_server_method(
int ver);
+static SSL_METHOD *tls1_get_server_method(int ver)
{
if (ver == TLS1_VERSION)
return(TLSv1_server_method());
{
if (ver == TLS1_VERSION)
return(TLSv1_server_method());
@@
-73,18
+73,18
@@
int ver;
return(NULL);
}
return(NULL);
}
-SSL_METHOD *TLSv1_server_method()
+SSL_METHOD *TLSv1_server_method(
void
)
{
static int init=1;
static SSL_METHOD TLSv1_server_data;
if (init)
{
{
static int init=1;
static SSL_METHOD TLSv1_server_data;
if (init)
{
- init=0;
memcpy((char *)&TLSv1_server_data,(char *)tlsv1_base_method(),
sizeof(SSL_METHOD));
TLSv1_server_data.ssl_accept=ssl3_accept;
TLSv1_server_data.get_ssl_method=tls1_get_server_method;
memcpy((char *)&TLSv1_server_data,(char *)tlsv1_base_method(),
sizeof(SSL_METHOD));
TLSv1_server_data.ssl_accept=ssl3_accept;
TLSv1_server_data.get_ssl_method=tls1_get_server_method;
+ init=0;
}
return(&TLSv1_server_data);
}
}
return(&TLSv1_server_data);
}