[openssl-dev] [openssl.org #4061] [PATCH] Request for new API to get role of SSL

Viktor Dukhovni openssl-users at dukhovni.org
Sat Sep 26 16:31:08 UTC 2015


On Sat, Sep 26, 2015 at 04:26:33PM +0000, Matt Caswell via RT wrote:

> On 26/09/15 17:18, Devchandra L Meetei via RT wrote:

> > Is the API introduced recently openssl 1.0.1f does not seem to have it?
> > If so, any plan to backport it?
> 
> This was introduced in 1.0.2. There are no plans to backport it.

However, in 1.0.1, where the structures in question are not opaque,
the OP can just implement it in his own code:

    int my_SSL_is_server(SSL *s)
    {
	return s->server;
    }

-- 
	Viktor.


More information about the openssl-dev mailing list