summaryrefslogtreecommitdiffstats
path: root/demos/bio
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-11-18 14:47:25 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-11-18 14:47:25 +0000
commit24f77b34d574cb02bdd8e2f37a8c12965ddd2a1f (patch)
tree117e767e04f4cc8df4c19ab0e96cd4769c373a71 /demos/bio
parentcccf27c89a0c93f3199fcc7bff97f12b63d79243 (diff)
remove redundant code from demo
Diffstat (limited to 'demos/bio')
-rw-r--r--demos/bio/saccept.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/demos/bio/saccept.c b/demos/bio/saccept.c
index 40cd4daad2..d3f8442ffd 100644
--- a/demos/bio/saccept.c
+++ b/demos/bio/saccept.c
@@ -25,14 +25,11 @@ void close_up()
BIO_free(in);
}
-int main(argc,argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
{
char *port=NULL;
BIO *ssl_bio,*tmp;
SSL_CTX *ctx;
- SSL *ssl;
char buf[512];
int ret=1,i;
@@ -45,11 +42,6 @@ char *argv[];
SSL_load_error_strings();
-#ifdef WATT32
- dbug_init();
- sock_init();
-#endif
-
/* Add ciphers and message digests */
OpenSSL_add_ssl_algorithms();
@@ -62,7 +54,6 @@ char *argv[];
goto err;
/* Setup server side SSL bio */
- ssl=SSL_new(ctx);
ssl_bio=BIO_new_ssl(ctx,0);
if ((in=BIO_new_accept(port)) == NULL) goto err;