Rename SSLeay_add_all_algorithms() et al to
[openssl.git] / demos / bio / saccept.c
index 81bf35375081c990adaa326686b71cf496300f5e..933d6699ee344940c68cdbc6fa6cc39dc14efac4 100644 (file)
@@ -12,8 +12,8 @@
 
 #include <stdio.h>
 #include <signal.h>
-#include "err.h"
-#include "ssl.h"
+#include <openssl/err.h>
+#include <openssl/ssl.h>
 
 #define CERT_FILE      "server.pem"
 
@@ -46,7 +46,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))
@@ -70,7 +70,7 @@ char *argv[];
 
 again:
        /* The first call will setup the accept socket, and the second
-        * will get a socket.  In this loop, the first actuall accept
+        * will get a socket.  In this loop, the first actual accept
         * will occur in the BIO_read() function. */
 
        if (BIO_do_accept(in) <= 0) goto err;