Lines Matching refs:service
191 * addr_strings - helper function to get host and service names
197 * @service: a pointer to a pointer to a memory area to store the
198 * service name or numeric representation. Unused if NULL.
204 char **hostname, char **service)
247 if (service != NULL)
248 *service = OPENSSL_strdup(serv);
253 if (service != NULL) {
256 *service = OPENSSL_strdup(serv);
261 || (service != NULL && *service == NULL)) {
266 if (service != NULL) {
267 OPENSSL_free(*service);
268 *service = NULL;
289 char *service = NULL;
291 if (addr_strings(ap, numeric, NULL, &service))
292 return service;
464 * host:service => *host = "host", *service = "service"
465 * host:* => *host = "host", *service = NULL
466 * host: => *host = "host", *service = NULL
467 * :service => *host = NULL, *service = "service"
468 * *:service => *host = NULL, *service = "service"
474 * host => *host = "host", *service untouched
477 * service => *host untouched, *service = "service"
480 int BIO_parse_hostserv(const char *hostserv, char **host, char **service,
544 if (p != NULL && service != NULL) {
547 *service = NULL;
549 *service = OPENSSL_strndup(p, pl);
550 if (*service == NULL)
623 int BIO_lookup(const char *host, const char *service,
627 return BIO_lookup_ex(host, service, lookup_type, family, socktype, 0, res);
631 * BIO_lookup_ex - look up the host and service you want to connect to.
633 * @service: the service you want to connect to.
645 * This will do a lookup of the host and service that you want to connect to.
652 int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
713 switch ((gai_ret = getaddrinfo(host, service, &hints, res))) {
839 if (service == NULL) {
845 long portnum = strtol(service, &endp, 10);
869 if (endp != service && *endp == '\0'
874 } else if (endp == service) {
875 se = getservbyname(service, proto);