TLS
- Fixed loop termination bug. - Chose a better default buffer size.
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
|
|
||||||
#define MAX_BUF 1024
|
#define MAX_BUF 16384
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
static void gnutls_log_function (int level, const char* message)
|
static void gnutls_log_function (int level, const char* message)
|
||||||
@@ -196,7 +196,7 @@ void TLSClient::send (const std::string& data)
|
|||||||
int total = 0;
|
int total = 0;
|
||||||
int remaining = packet.length ();
|
int remaining = packet.length ();
|
||||||
|
|
||||||
while (total < remaining)
|
while (total < packet.length ())
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
do
|
do
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user