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

Function err_helper

extra/yassl/src/ssl.cpp:1478–1492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1476
1477
1478unsigned long err_helper(bool peek = false)
1479{
1480 int ysError = GetErrors().Lookup(peek);
1481
1482 // translate cert error for libcurl, it uses OpenSSL hex code
1483 switch (ysError) {
1484 case TaoCrypt::SIG_OTHER_E:
1485 return CERTFICATE_ERROR;
1486 break;
1487 default :
1488 return 0;
1489 }
1490
1491 return 0; // shut up compiler
1492}
1493
1494
1495unsigned long ERR_peek_error()

Callers 2

ERR_peek_errorFunction · 0.85
ERR_get_errorFunction · 0.85

Calls 1

LookupMethod · 0.80

Tested by

no test coverage detected