| 1405 | } |
| 1406 | |
| 1407 | uint8 CUpDownClient::GetObfuscationStatus() const |
| 1408 | { |
| 1409 | uint8 ret = OBST_UNDEFINED; |
| 1410 | if (thePrefs::IsClientCryptLayerSupported()) { |
| 1411 | if (SupportsCryptLayer()) { |
| 1412 | if ((RequestsCryptLayer() || thePrefs::IsClientCryptLayerRequested()) && HasObfuscatedConnectionBeenEstablished()) { |
| 1413 | ret = OBST_ENABLED; |
| 1414 | } else { |
| 1415 | ret = OBST_SUPPORTED; |
| 1416 | } |
| 1417 | } else { |
| 1418 | ret = OBST_NOT_SUPPORTED; |
| 1419 | } |
| 1420 | } else { |
| 1421 | ret = OBST_DISABLED; |
| 1422 | } |
| 1423 | return ret; |
| 1424 | } |
| 1425 | |
| 1426 | // IgnoreNoNeeded = will switch to files of which this source has no needed parts (if no better files found) |
| 1427 | // ignoreSuspensions = ignore timelimit for A4Af jumping |
no outgoing calls