ws: return CURLE_NOT_BUILT_IN when websockets not built in

- Change curl_ws_recv & curl_ws_send to return CURLE_NOT_BUILT_IN when
  websockets support is not built in.

Prior to this change they returned CURLE_OK.

Closes #9851
This commit is contained in:
Jay Satiro 2022-11-03 15:52:34 -04:00 committed by Daniel Stenberg
parent b1953c1933
commit 3cbdf4a148
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -732,7 +732,7 @@ CURL_EXTERN CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen,
(void)buflen;
(void)nread;
(void)metap;
return CURLE_OK;
return CURLE_NOT_BUILT_IN;
}
CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer,
@ -746,7 +746,7 @@ CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer,
(void)sent;
(void)framesize;
(void)sendflags;
return CURLE_OK;
return CURLE_NOT_BUILT_IN;
}
CURL_EXTERN struct curl_ws_frame *curl_ws_meta(struct Curl_easy *data)