Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of deprecated cURL functions in clamsubmit #1352

Open
Kangie opened this issue Aug 29, 2024 · 0 comments
Open

Use of deprecated cURL functions in clamsubmit #1352

Kangie opened this issue Aug 29, 2024 · 0 comments

Comments

@Kangie
Copy link
Contributor

Kangie commented Aug 29, 2024

While it's unlikely that this is going to cause any breakage in the near future, we should look at updating this code so that it doesn't use deprecated functions and cURL will continue working into the future.

var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c: In function ‘main’:
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:474:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  474 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "key", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
In file included from /var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:40:
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:474:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  474 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "key", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:474:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  474 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "key", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:481:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  481 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "acl", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:481:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  481 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "acl", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:481:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  481 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "acl", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:488:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  488 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "policy", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:488:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  488 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "policy", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:488:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  488 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "policy", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:495:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  495 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-meta-original-filename", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:495:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  495 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-meta-original-filename", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:495:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  495 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-meta-original-filename", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:502:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  502 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-credential", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:502:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  502 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-credential", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:502:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  502 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-credential", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:509:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  509 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-algorithm", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:509:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  509 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-algorithm", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:509:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  509 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-algorithm", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:516:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  516 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-date", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:516:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  516 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-date", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:516:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  516 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-date", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:523:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  523 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-signature", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:523:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  523 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-signature", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:523:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  523 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "x-amz-signature", CURLFORM_COPYCONTENTS, json_str, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:525:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  525 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "file", CURLFORM_FILE, filename, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:525:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  525 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "file", CURLFORM_FILE, filename, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:525:5: warning: ‘CURLFORM_FILE’ is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations]
  525 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "file", CURLFORM_FILE, filename, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2529:3: note: declared here
 2529 |   CURLFORM_FILE            CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"),
      |   ^~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:530:5: warning: ‘CURLOPT_HTTPPOST’ is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Wdeprecated-declarations]
  530 |     curl_easy_setopt(aws_curl, CURLOPT_HTTPPOST, post);
      |     ^~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:1203:3: note: declared here
 1203 |   CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24,
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:539:5: warning: ‘curl_formfree’ is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations]
  539 |     curl_formfree(post);
      |     ^~~~~~~~~~~~~
/usr/include/curl/curl.h:2631:1: note: declared here
 2631 | curl_formfree(struct curl_httppost *form);
      | ^~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:559:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  559 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "utf8", CURLFORM_COPYCONTENTS, "\x27\x13", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:559:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  559 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "utf8", CURLFORM_COPYCONTENTS, "\x27\x13", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:559:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  559 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "utf8", CURLFORM_COPYCONTENTS, "\x27\x13", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:560:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  560 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "authenticity_token", CURLFORM_COPYCONTENTS, authenticity_token, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:560:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  560 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "authenticity_token", CURLFORM_COPYCONTENTS, authenticity_token, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:560:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  560 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "authenticity_token", CURLFORM_COPYCONTENTS, authenticity_token, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:561:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  561 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "submissionID", CURLFORM_COPYCONTENTS, submissionID, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:561:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  561 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "submissionID", CURLFORM_COPYCONTENTS, submissionID, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:561:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  561 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "submissionID", CURLFORM_COPYCONTENTS, submissionID, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:562:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  562 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "type", CURLFORM_COPYCONTENTS, malware ? "malware" : "fp", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:562:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  562 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "type", CURLFORM_COPYCONTENTS, malware ? "malware" : "fp", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:562:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  562 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "type", CURLFORM_COPYCONTENTS, malware ? "malware" : "fp", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:563:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  563 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "sendername", CURLFORM_COPYCONTENTS, name, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:563:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  563 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "sendername", CURLFORM_COPYCONTENTS, name, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:563:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  563 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "sendername", CURLFORM_COPYCONTENTS, name, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:564:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  564 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "email", CURLFORM_COPYCONTENTS, email, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:564:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  564 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "email", CURLFORM_COPYCONTENTS, email, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:564:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  564 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "email", CURLFORM_COPYCONTENTS, email, CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:566:9: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  566 |         curl_formadd(&post, &last, CURLFORM_COPYNAME, "shareSample", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |         ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:566:9: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  566 |         curl_formadd(&post, &last, CURLFORM_COPYNAME, "shareSample", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |         ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:566:9: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  566 |         curl_formadd(&post, &last, CURLFORM_COPYNAME, "shareSample", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |         ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:568:9: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  568 |         curl_formadd(&post, &last, CURLFORM_COPYNAME, "virusname", CURLFORM_COPYCONTENTS, fpvname, CURLFORM_END);
      |         ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:568:9: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  568 |         curl_formadd(&post, &last, CURLFORM_COPYNAME, "virusname", CURLFORM_COPYCONTENTS, fpvname, CURLFORM_END);
      |         ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:568:9: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  568 |         curl_formadd(&post, &last, CURLFORM_COPYNAME, "virusname", CURLFORM_COPYCONTENTS, fpvname, CURLFORM_END);
      |         ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:570:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  570 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "description", CURLFORM_COPYCONTENTS, "clamsubmit", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:570:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  570 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "description", CURLFORM_COPYCONTENTS, "clamsubmit", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:570:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  570 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "description", CURLFORM_COPYCONTENTS, "clamsubmit", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:571:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  571 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "notify", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:571:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  571 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "notify", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:571:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  571 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "notify", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:572:5: warning: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  572 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "privacy", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2595:1: note: declared here
 2595 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:572:5: warning: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  572 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "privacy", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2520:3: note: declared here
 2520 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:572:5: warning: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  572 |     curl_formadd(&post, &last, CURLFORM_COPYNAME, "privacy", CURLFORM_COPYCONTENTS, "on", CURLFORM_END);
      |     ^~~~~~~~~~~~
/usr/include/curl/curl.h:2523:3: note: declared here
 2523 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:575:5: warning: ‘CURLOPT_HTTPPOST’ is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Wdeprecated-declarations]
  575 |     curl_easy_setopt(clam_curl, CURLOPT_HTTPPOST, post);
      |     ^~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:1203:3: note: declared here
 1203 |   CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24,
      |   ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-antivirus/clamav-1.4.0/work/clamav-clamav-1.4.0/clamsubmit/clamsubmit.c:620:9: warning: ‘curl_formfree’ is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations]
  620 |         curl_formfree(post);
      |         ^~~~~~~~~~~~~
/usr/include/curl/curl.h:2631:1: note: declared here
 2631 | curl_formfree(struct curl_httppost *form);
      | ^~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant