handle point format list retrieval for clients too (from HEAD)
This commit is contained in:
parent
78b5d89ddf
commit
b52f12b3ba
17
ssl/s3_lib.c
17
ssl/s3_lib.c
@ -3515,17 +3515,14 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg)
|
||||
}
|
||||
|
||||
case SSL_CTRL_GET_EC_POINT_FORMATS:
|
||||
if (!s->server)
|
||||
{
|
||||
SSL_SESSION *sess = s->session;
|
||||
const unsigned char **pformat = parg;
|
||||
if (!sess || !sess->tlsext_ecpointformatlist)
|
||||
return 0;
|
||||
else
|
||||
{
|
||||
SSL_SESSION *sess = s->session;
|
||||
const unsigned char **pformat = parg;
|
||||
if (!sess || !sess->tlsext_ecpointformatlist)
|
||||
return 0;
|
||||
*pformat = sess->tlsext_ecpointformatlist;
|
||||
return (int)sess->tlsext_ecpointformatlist_length;
|
||||
}
|
||||
*pformat = sess->tlsext_ecpointformatlist;
|
||||
return (int)sess->tlsext_ecpointformatlist_length;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user