mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-24 08:41:26 -04:00
fixed proper display of crypto params for UDP connections
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6725 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1af7d88d56
commit
9d8d773c3c
6 changed files with 53 additions and 16 deletions
|
@ -26,11 +26,13 @@
|
|||
#include "pqi/pqi.h"
|
||||
#include "pqi/pqiperson.h"
|
||||
#include "pqi/pqipersongrp.h"
|
||||
#include "pqi/pqissl.h"
|
||||
#include "services/p3disc.h"
|
||||
|
||||
const int pqipersonzone = 82371;
|
||||
#include "util/rsdebug.h"
|
||||
#include "util/rsstring.h"
|
||||
#include "retroshare/rspeers.h"
|
||||
|
||||
/****
|
||||
* #define PERSON_DEBUG
|
||||
|
@ -468,6 +470,41 @@ int pqiperson::getQueueSize(bool in)
|
|||
return activepqi -> getQueueSize(in);
|
||||
}
|
||||
|
||||
bool pqiperson::getCryptoParams(RsPeerCryptoParams& params)
|
||||
{
|
||||
if(active && activepqi != NULL)
|
||||
return activepqi->getCryptoParams(params) ;
|
||||
else
|
||||
{
|
||||
params.connexion_state = 0 ;
|
||||
params.cipher_name.clear() ;
|
||||
params.cipher_bits_1 = 0 ;
|
||||
params.cipher_bits_2 = 0 ;
|
||||
params.cipher_version.clear() ;
|
||||
|
||||
return false ;
|
||||
}
|
||||
}
|
||||
|
||||
bool pqiconnect::getCryptoParams(RsPeerCryptoParams& params)
|
||||
{
|
||||
pqissl *ssl = dynamic_cast<pqissl*>(ni) ;
|
||||
|
||||
if(ssl != NULL)
|
||||
{
|
||||
ssl->getCryptoParams(params) ;
|
||||
return true ;
|
||||
}
|
||||
else
|
||||
{
|
||||
params.connexion_state = 0 ;
|
||||
params.cipher_name.clear() ;
|
||||
params.cipher_bits_1 = 0 ;
|
||||
params.cipher_bits_2 = 0 ;
|
||||
params.cipher_version.clear() ;
|
||||
return false ;
|
||||
}
|
||||
}
|
||||
|
||||
float pqiperson::getRate(bool in)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue