MCPcopy Create free account
hub / github.com/SmingHub/Sming / getAlert

Function getAlert

Sming/Components/ssl/Axtls/AxError.cpp:85–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85Alert getAlert(int error)
86{
87 if(error == SSL_CLOSE_NOTIFY) {
88 return Alert::CLOSE_NOTIFY;
89 }
90
91 if(error > SSL_ERROR_CONN_LOST && error < SSL_CLOSE_NOTIFY) {
92 return Alert(-error);
93 }
94
95 return Alert::Invalid;
96}
97
98} // namespace Ssl

Callers 1

getAlertMethod · 0.70

Calls 1

AlertEnum · 0.85

Tested by

no test coverage detected