added parsing of short invites in connect friend wizard (not working yet)

This commit is contained in:
csoler 2019-06-09 15:03:48 +02:00
parent 3a799bae37
commit 4bd5aaa9b2
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
6 changed files with 69 additions and 24 deletions

View file

@ -36,7 +36,7 @@ struct RsPeerDetails;
class RsCertificate
{
public:
typedef enum { RS_CERTIFICATE_OLD_FORMAT, RS_CERTIFICATE_RADIX } Format;
typedef enum { RS_CERTIFICATE_OLD_FORMAT, RS_CERTIFICATE_RADIX, RS_CERTIFICATE_SHORT_RADIX } Format;
/**
* @brief Create certificate object from certificate string
@ -99,8 +99,7 @@ public:
private:
// new radix format
static bool cleanCertificate( const std::string& input,
std::string& output, int&);
static bool cleanRadix64( const std::string& input, std::string& output, int&);
static void scan_ip( const std::string& ip_string, unsigned short port,
unsigned char *destination_memory );