Add support for printing out and retrieving EC point formats extension.
This commit is contained in:
13
ssl/s3_lib.c
13
ssl/s3_lib.c
@@ -3530,6 +3530,19 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
case SSL_CTRL_GET_EC_POINT_FORMATS:
|
||||
if (!s->server)
|
||||
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;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user