BIO_puts(bio, "No peer certificate\n");
if (peer)
X509_free(peer);
+ ssl_print_point_formats(bio, s);
if (SSL_is_server(s))
- {
- ssl_print_point_formats(bio, s);
ssl_print_curves(bio, s, 1);
- }
else
ssl_print_tmp_key(bio, s);
}
}
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;