mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
made Accepted option in Transfers to send tunnel requests for both encrypted and clear tunnels
This commit is contained in:
parent
aa62136f17
commit
f7a1348370
2 changed files with 6 additions and 3 deletions
|
@ -876,7 +876,7 @@ bool ftController::FileRequest(const std::string& fname, const RsFileHash& hash
|
||||||
// if policy is STRICT
|
// if policy is STRICT
|
||||||
// - disable clear, enforce encryption
|
// - disable clear, enforce encryption
|
||||||
// else
|
// else
|
||||||
// - if not specified, use clear
|
// - if not specified, use both
|
||||||
//
|
//
|
||||||
if(mDefaultEncryptionPolicy == RS_FILE_CTRL_ENCRYPTION_POLICY_STRICT)
|
if(mDefaultEncryptionPolicy == RS_FILE_CTRL_ENCRYPTION_POLICY_STRICT)
|
||||||
{
|
{
|
||||||
|
@ -884,7 +884,10 @@ bool ftController::FileRequest(const std::string& fname, const RsFileHash& hash
|
||||||
flags &= ~RS_FILE_REQ_UNENCRYPTED ;
|
flags &= ~RS_FILE_REQ_UNENCRYPTED ;
|
||||||
}
|
}
|
||||||
else if(!(flags & ( RS_FILE_REQ_ENCRYPTED | RS_FILE_REQ_UNENCRYPTED )))
|
else if(!(flags & ( RS_FILE_REQ_ENCRYPTED | RS_FILE_REQ_UNENCRYPTED )))
|
||||||
|
{
|
||||||
|
flags |= RS_FILE_REQ_ENCRYPTED ;
|
||||||
flags |= RS_FILE_REQ_UNENCRYPTED ;
|
flags |= RS_FILE_REQ_UNENCRYPTED ;
|
||||||
|
}
|
||||||
|
|
||||||
if(size == 0) // we treat this special case because
|
if(size == 0) // we treat this special case because
|
||||||
{
|
{
|
||||||
|
|
|
@ -145,7 +145,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="_e2e_encryption_CB">
|
<widget class="QComboBox" name="_e2e_encryption_CB">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Anonymous tunnels can be end-o-end encrypted. In order to maintain backward compatibility, this can be made optional (choosing &quot;Accepted&quot;), but in the end, all Retroshare nodes will be switched to &quot;Enforced&quot;, meaning that all anonymous transfers will be end-to-end encrypted.</p></body></html></string>
|
<string><html><head/><body><p>Anonymous tunnels can be end-o-end encrypted. In order to maintain backward compatibility, this can be made optional (choosing &quot;Accepted&quot;), but in the end, all Retroshare nodes will be switched to &quot;Enforced&quot;, meaning that all anonymous transfers will be end-to-end encrypted. With &quot;Accepted&quot;, it is likely that you will transfer using twice as many tunnels, since there is no way to know that an encrypted and a clear tunnel actually transfer from the same source.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue