BIO_set_conn_hostname & BIO_get_ssl not found in libssl-1_1.dll

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

BIO_set_conn_hostname & BIO_get_ssl not found in libssl-1_1.dll

Martin Searancke
I am trying to implement DTLS with PSK security in Delphi using the OpenSSL library.
The C++ examples I am basing this on call "BIO_set_conn_hostname" and "BIO_get_ssl" but these functions do not appear to be in "libssl-1_1.dll". The OpenSSL documentation suggests that these functions should be in version 1.1 but I have interrogated the DLL and they are not there - where should I find them?

Here are the 2 examples I am trying to base my code on:
https://chris-wood.github.io/2016/05/06/OpenSSL-DTLS.html  
https://bitbucket.org/tiebingzhang/tls-psk-server-client-example/src/783092f802383421cfa1088b0e7b804b39d3cf7c/psk_client.c?at=default  

Martin
Reply | Threaded
Open this post in threaded view
|

Re: BIO_set_conn_hostname & BIO_get_ssl not found in libssl-1_1.dll

Viktor Dukhovni
On Wed, Apr 08, 2020 at 11:25:28AM +1200, Martin Searancke wrote:

> The C++ examples I am basing this on call "BIO_set_conn_hostname" and
> "BIO_get_ssl" but these functions do not appear to be in "libssl-1_1.dll".

Both of these are C macros:

    /usr/include/openssl/bio.h:#  define BIO_set_conn_hostname(b,name) BIO_ctrl(...)
    /usr/include/openssl/bio.h:# define BIO_get_ssl(b,sslp) BIO_ctrl(...)

> The OpenSSL documentation suggests that these functions should be in
> version 1.1 but I have interrogated the DLL and they are not there - where
> should I find them?

In the <openssl/bio.h> header file.

--
    Viktor.