handle point format list retrieval for clients too (from HEAD)
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 18:20:07 +0000 (18:20 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 18:20:07 +0000 (18:20 +0000)
ssl/s3_lib.c

index 9f5331ef326ad1f4858e25888cbd1e9cdf7e1950..7c535875afb710c79a2a9fc9e75b6503221f757b 100644 (file)
@@ -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;