Lines Matching refs:port
61 const char *port, *port_end; in OSSL_parse_url() local
123 port = "0"; /* default */ in OSSL_parse_url()
125 port = ++p; in OSSL_parse_url()
128 if (sscanf(port, "%u", &portnum) <= 0 || portnum > 65535) { in OSSL_parse_url()
129 ERR_raise_data(ERR_LIB_HTTP, HTTP_R_INVALID_PORT_NUMBER, "%s", port); in OSSL_parse_url()
132 for (port_end = port; '0' <= *port_end && *port_end <= '9'; port_end++) in OSSL_parse_url()
134 if (port == p) /* port was given explicitly */ in OSSL_parse_url()
135 p += port_end - port; in OSSL_parse_url()
166 || !copy_substring(pport, port, port_end) in OSSL_parse_url()
203 char *scheme, *port; in OSSL_HTTP_parse_url() local
209 if (!OSSL_parse_url(url, &scheme, puser, phost, &port, pport_num, in OSSL_HTTP_parse_url()
221 OPENSSL_free(port); in OSSL_HTTP_parse_url()
226 if (strcmp(port, "0") == 0) { in OSSL_HTTP_parse_url()
228 OPENSSL_free(port); in OSSL_HTTP_parse_url()
229 port = ssl ? OSSL_HTTPS_PORT : OSSL_HTTP_PORT; in OSSL_HTTP_parse_url()
230 if (!ossl_assert(sscanf(port, "%d", &portnum) == 1)) in OSSL_HTTP_parse_url()
235 *pport = OPENSSL_strdup(port); in OSSL_HTTP_parse_url()
241 *pport = port; in OSSL_HTTP_parse_url()
243 OPENSSL_free(port); in OSSL_HTTP_parse_url()