X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=demos%2Fbio%2Fsconnect.c;h=87b380b258cb8f5b0c3574ec5aa07ac37a3fde0b;hb=864170286aac222b31d8946317bfc5eae5fe09a1;hp=8a667f5911781ea5ee3ef796f10f050cd0869327;hpb=7dfb0b774e6592dcbfe47015168a0ac8b44e2a17;p=oweals%2Fopenssl.git diff --git a/demos/bio/sconnect.c b/demos/bio/sconnect.c index 8a667f5911..87b380b258 100644 --- a/demos/bio/sconnect.c +++ b/demos/bio/sconnect.c @@ -9,8 +9,9 @@ */ #include #include -#include "err.h" -#include "ssl.h" +#include +#include +#include extern int errno; @@ -35,7 +36,7 @@ char *argv[]; SSL_load_error_strings(); /* Setup all the global SSL stuff */ - SSLeay_add_ssl_algorithms(); + OpenSSL_add_ssl_algorithms(); ssl_ctx=SSL_CTX_new(SSLv23_client_method()); /* Lets make a SSL structure */ @@ -48,7 +49,7 @@ char *argv[]; /* Lets use a connect BIO under the SSL BIO */ out=BIO_new(BIO_s_connect()); - BIO_set_hostname(out,host); + BIO_set_conn_hostname(out,host); BIO_set_nbio(out,1); out=BIO_push(ssl_bio,out);