MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / sendClientHello

Function sendClientHello

extra/yassl/src/handshake.cpp:854–872  ·  view source on GitHub ↗

send client_hello, no buffering

Source from the content-addressed store, hash-verified

852
853// send client_hello, no buffering
854void sendClientHello(SSL& ssl)
855{
856 ssl.verifyState(serverNull);
857 if (ssl.GetError()) return;
858
859 ClientHello ch(ssl.getSecurity().get_connection().version_,
860 ssl.getSecurity().get_connection().compression_);
861 RecordLayerHeader rlHeader;
862 HandShakeHeader hsHeader;
863 output_buffer out;
864
865 buildClientHello(ssl, ch);
866 ssl.set_random(ch.get_random(), client_end);
867 buildHeaders(ssl, hsHeader, rlHeader, ch);
868 buildOutput(out, rlHeader, hsHeader, ch);
869 hashHandShake(ssl, out);
870
871 ssl.Send(out.get_buffer(), out.get_size());
872}
873
874
875// send client key exchange

Callers 1

SSL_connectFunction · 0.85

Calls 11

buildClientHelloFunction · 0.85
buildHeadersFunction · 0.85
buildOutputFunction · 0.85
hashHandShakeFunction · 0.85
verifyStateMethod · 0.80
set_randomMethod · 0.80
get_randomMethod · 0.80
SendMethod · 0.80
get_sizeMethod · 0.80
GetErrorMethod · 0.45
get_bufferMethod · 0.45

Tested by

no test coverage detected