remove redundant code from demo
[openssl.git] / demos / bio / saccept.c
index 2f2dc985fe78548ad8fa2ed61c98c9c3fc862fdf..d3f8442ffd5801488c41493f5e2d705c8dfeb933 100644 (file)
@@ -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;
 
@@ -46,7 +43,7 @@ char *argv[];
        SSL_load_error_strings();
 
        /* Add ciphers and message digests */
-       SSLeay_add_ssl_algorithms();
+       OpenSSL_add_ssl_algorithms();
 
        ctx=SSL_CTX_new(SSLv23_server_method());
        if (!SSL_CTX_use_certificate_file(ctx,CERT_FILE,SSL_FILETYPE_PEM))
@@ -57,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;