mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-05 10:39:27 +02:00
allow curl to perform "insecure" SSL connections
allow curl to perform "insecure" SSL connections using flag '--insecure' Without this flag, curl exited with error 51: The peer's SSL certificate or SSH MD5 fingerprint was not OK. autoconfig attempts to https URL did not succeed.
This commit is contained in:
parent
5000e17b92
commit
87759cf4da
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ static uintptr_t receive_event(mrmailbox_t* mailbox, int event, uintptr_t data1,
|
||||||
{
|
{
|
||||||
char* ret = NULL;
|
char* ret = NULL;
|
||||||
char* tempFile = mr_get_fine_pathNfilename(mailbox->m_blobdir, "curl.result");
|
char* tempFile = mr_get_fine_pathNfilename(mailbox->m_blobdir, "curl.result");
|
||||||
char* cmd = mr_mprintf("curl --silent --location --fail %s > %s", (char*)data1, tempFile); /* --location = follow redirects */
|
char* cmd = mr_mprintf("curl --silent --location --fail --insecure %s > %s", (char*)data1, tempFile); /* --location = follow redirects */
|
||||||
int error = system(cmd);
|
int error = system(cmd);
|
||||||
if( error == 0 ) { /* -1=system() error, !0=curl errors forced by -f, 0=curl success */
|
if( error == 0 ) { /* -1=system() error, !0=curl errors forced by -f, 0=curl success */
|
||||||
size_t bytes = 0;
|
size_t bytes = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue