adding some curl helpers

Signed-off-by: Thilo Graf <dbt@novatux.de>

NOTE: this pick makes build broken because of some previous declarations
This commit is contained in:
TangoCash
2018-08-19 21:14:54 +02:00
committed by Thilo Graf
parent 29fe639ad3
commit 153cce9d95
3 changed files with 176 additions and 8 deletions

View File

@@ -68,13 +68,6 @@
#define SMSKEY_TIMEOUT 2000
size_t CurlWriteToString(void *ptr, size_t size, size_t nmemb, void *data)
{
std::string* pStr = (std::string*) data;
pStr->append((char*) ptr, nmemb); // do only add the correct size, do not go until end of data (chunked transfer)
return size*nmemb;
}
SMSKeyInput::SMSKeyInput()
{
resetOldKey();