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

Method verifyState

extra/yassl/src/yassl_int.cpp:1300–1313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298
1299
1300void SSL::verifyState(const RecordLayerHeader& rlHeader)
1301{
1302 if (GetError()) return;
1303
1304 if (rlHeader.version_.major_ != 3 || rlHeader.version_.minor_ > 2) {
1305 SetError(badVersion_error);
1306 return;
1307 }
1308
1309 if (states_.getRecord() == recordNotReady ||
1310 (rlHeader.type_ == application_data && // data and handshake
1311 states_.getHandShake() != handShakeReady) ) // isn't complete yet
1312 SetError(record_layer);
1313}
1314
1315
1316void SSL::verifyState(const HandShakeHeader& hsHeader)

Callers 7

DoProcessReplyFunction · 0.80
sendClientHelloFunction · 0.80
sendClientKeyExchangeFunction · 0.80
sendChangeCipherFunction · 0.80
sendServerHelloFunction · 0.80
ProcessMethod · 0.80
SSL_connectFunction · 0.80

Calls 3

SetMessageRecvdMethod · 0.80
get_handshakeTypeMethod · 0.80
get_parmsMethod · 0.80

Tested by

no test coverage detected