]> git.ipfire.org Git - thirdparty/curl.git/commit
urldata: use a curl_prot_t type for storing protocol bits
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Sep 2022 07:57:01 +0000 (09:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 13 Sep 2022 09:26:49 +0000 (11:26 +0200)
commitcd5ca80f00d2d9f0fe704de8d16b70a0d2267fd7
tree507aa27c4098a1c00f85e43b75cae9bddcf208a8
parent0f52dd5fd5aa3592691a6f6d64f6acf2a07702c9
urldata: use a curl_prot_t type for storing protocol bits

This internal-use-only storage type can be bumped to a curl_off_t once
we need to use bit 32 as the previous 'unsigned int' can no longer hold
them all then.

The websocket protocols take bit 30 and 31 so they are the last ones
that fit within 32 bits - but cannot properly be exported through APIs
since those use *signed* 32 bit types (long) in places.

Closes #9481
lib/connect.c
lib/setopt.c
lib/url.c
lib/urldata.h