remove redundant code from demo
This commit is contained in:
parent
cccf27c89a
commit
24f77b34d5
@ -25,14 +25,11 @@ void close_up()
|
|||||||
BIO_free(in);
|
BIO_free(in);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(argc,argv)
|
int main(int argc, char *argv[])
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
char *port=NULL;
|
char *port=NULL;
|
||||||
BIO *ssl_bio,*tmp;
|
BIO *ssl_bio,*tmp;
|
||||||
SSL_CTX *ctx;
|
SSL_CTX *ctx;
|
||||||
SSL *ssl;
|
|
||||||
char buf[512];
|
char buf[512];
|
||||||
int ret=1,i;
|
int ret=1,i;
|
||||||
|
|
||||||
@ -45,11 +42,6 @@ char *argv[];
|
|||||||
|
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
|
|
||||||
#ifdef WATT32
|
|
||||||
dbug_init();
|
|
||||||
sock_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Add ciphers and message digests */
|
/* Add ciphers and message digests */
|
||||||
OpenSSL_add_ssl_algorithms();
|
OpenSSL_add_ssl_algorithms();
|
||||||
|
|
||||||
@ -62,7 +54,6 @@ char *argv[];
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
/* Setup server side SSL bio */
|
/* Setup server side SSL bio */
|
||||||
ssl=SSL_new(ctx);
|
|
||||||
ssl_bio=BIO_new_ssl(ctx,0);
|
ssl_bio=BIO_new_ssl(ctx,0);
|
||||||
|
|
||||||
if ((in=BIO_new_accept(port)) == NULL) goto err;
|
if ((in=BIO_new_accept(port)) == NULL) goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user