cookie: constify struct pointers

Closes #21589
This commit is contained in:
Viktor Szakats 2026-05-13 14:28:27 +02:00
parent 96dbcf6921
commit 616e8ea6d8
No known key found for this signature in database
2 changed files with 12 additions and 11 deletions

View file

@ -109,7 +109,7 @@ struct connectdata;
* are only used if the header boolean is TRUE.
*/
bool Curl_secure_context(struct connectdata *conn, const char *host);
bool Curl_secure_context(const struct connectdata *conn, const char *host);
CURLcode Curl_cookie_add(struct Curl_easy *data,
struct CookieInfo *ci,
bool httpheader,
@ -118,7 +118,8 @@ CURLcode Curl_cookie_add(struct Curl_easy *data,
const char *domain,
const char *path,
bool secure) WARN_UNUSED_RESULT;
CURLcode Curl_cookie_getlist(struct Curl_easy *data, struct connectdata *conn,
CURLcode Curl_cookie_getlist(struct Curl_easy *data,
const struct connectdata *conn,
bool *okay, const char *host,
struct Curl_llist *list) WARN_UNUSED_RESULT;
void Curl_cookie_clearall(struct CookieInfo *ci);