Move algorithm specific print code from crypto/asn1/t_pkey.c to separate
[openssl.git] / demos / bio / saccept.c
index 81bf35375081c990adaa326686b71cf496300f5e..40cd4daad2939d2768d4048444b09cf3bd3e4482 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"
 
@@ -45,8 +45,13 @@ char *argv[];
 
        SSL_load_error_strings();
 
+#ifdef WATT32
+       dbug_init();
+       sock_init();
+#endif
+
        /* 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 +75,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;