Lines Matching refs:port
47 const char *port, *port_end;
94 /* look for start of optional port, path, query, or fragment */
107 /* parse optional port specification starting with ':' */
108 port = "0"; /* default */
110 port = ++p;
111 /* remaining port spec handling is also done for the default values */
112 /* make sure a decimal port number is given */
113 if (!sscanf(port, "%u", &portnum) || portnum > 65535) {
114 ERR_raise_data(ERR_LIB_HTTP, HTTP_R_INVALID_PORT_NUMBER, "%s", port);
117 for (port_end = port; '0' <= *port_end && *port_end <= '9'; port_end++)
119 if (port == p) /* port was given explicitly */
120 p += port_end - port;
151 || !copy_substring(pport, port, port_end)
188 char *scheme, *port;
194 if (!OSSL_parse_url(url, &scheme, puser, phost, &port, pport_num,
206 OPENSSL_free(port);
211 if (strcmp(port, "0") == 0) {
212 /* set default port */
213 OPENSSL_free(port);
214 port = ssl ? OSSL_HTTPS_PORT : OSSL_HTTP_PORT;
215 if (!ossl_assert(sscanf(port, "%d", &portnum) == 1))
220 *pport = OPENSSL_strdup(port);
226 *pport = port;
228 OPENSSL_free(port);