In the client hello, I want the client to send a set of invalid cipher suites. On wireshark, this is the kind of output I'm looking for.
To do this, I think I have to edit the cipher list
that is sent from the client to the server. I know that the cipher list
is set for the SSL_CTX
object in line 1768
of ssl/ssl_lib.c
under the SSL_CTX_new()
method, i.e the line below:
ssl_create_cipher_list(ret->method,
&ret->cipher_list,&ret->cipher_list_by_id,
meth->version == SSL2_VERSION ? "SSLv2" : SSL_DEFAULT_CIPHER_LIST);
How do I proceed? I assume I have to modify some code in the ssl_create_cipher_list
method, which is defined on line 1353 in ssl/ssl_ciph.h
, but I'm not able to figure this out.
Any help appreciated!