From: Dr. Stephen Henson Date: Wed, 26 Dec 2012 18:20:07 +0000 (+0000) Subject: handle point format list retrieval for clients too (from HEAD) X-Git-Tag: OpenSSL_1_0_2-beta1~486 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b52f12b3ba7d3b5b0663cf2f06496d1130926c33;p=oweals%2Fopenssl.git handle point format list retrieval for clients too (from HEAD) --- diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 9f5331ef32..7c535875af 100644 --- a/ssl/s3_lib.c +++ b/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;