mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 14:06:20 +00:00
Explicitly clear fragment from HTTP URL
This commit is contained in:
@@ -1767,6 +1767,12 @@ omemo_parse_aesgcm_url(const char* aesgcm_url,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clear fragment from HTTPS URL as it's not required for download.
|
||||||
|
ret = curl_url_set(url, CURLUPART_FRAGMENT, NULL, curl_flags);
|
||||||
|
if (ret) {
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
ret = curl_url_set(url, CURLUPART_SCHEME, "https", curl_flags);
|
ret = curl_url_set(url, CURLUPART_SCHEME, "https", curl_flags);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
@@ -101,5 +101,6 @@ char* omemo_on_message_send(ProfWin* win, const char* const message, gboolean re
|
|||||||
char* omemo_on_message_recv(const char* const from, uint32_t sid, const unsigned char* const iv, size_t iv_len, GList* keys, const unsigned char* const payload, size_t payload_len, gboolean muc, gboolean* trusted);
|
char* omemo_on_message_recv(const char* const from, uint32_t sid, const unsigned char* const iv, size_t iv_len, GList* keys, const unsigned char* const payload, size_t payload_len, gboolean muc, gboolean* trusted);
|
||||||
|
|
||||||
char* omemo_encrypt_file(FILE* in, FILE* out, off_t file_size, int* gcry_res);
|
char* omemo_encrypt_file(FILE* in, FILE* out, off_t file_size, int* gcry_res);
|
||||||
gcry_error_t omemo_decrypt_file(FILE* in, FILE* out, off_t file_size, const char* fragment); void omemo_free(void* a);
|
gcry_error_t omemo_decrypt_file(FILE* in, FILE* out, off_t file_size, const char* fragment);
|
||||||
|
void omemo_free(void* a);
|
||||||
int omemo_parse_aesgcm_url(const char* aesgcm_url, char** https_url, char** fragment);
|
int omemo_parse_aesgcm_url(const char* aesgcm_url, char** https_url, char** fragment);
|
||||||
|
|||||||
Reference in New Issue
Block a user