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

Method set_random

extra/yassl/src/yassl_int.cpp:850–856  ·  view source on GitHub ↗

store peer's random

Source from the content-addressed store, hash-verified

848
849// store peer's random
850void SSL::set_random(const opaque* random, ConnectionEnd sender)
851{
852 if (sender == client_end)
853 memcpy(secure_.use_connection().client_random_, random, RAN_LEN);
854 else
855 memcpy(secure_.use_connection().server_random_, random, RAN_LEN);
856}
857
858
859// store client pre master secret

Callers 3

sendClientHelloFunction · 0.80
sendServerHelloFunction · 0.80
ProcessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected