| 1476 | |
| 1477 | |
| 1478 | unsigned 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 | |
| 1495 | unsigned long ERR_peek_error() |
no test coverage detected