Lines Matching refs:connect_info
1173 wprint_connect_info_t *connect_info = (wprint_connect_info_t *)user_data; in ipp_server_cert_cb() local
1175 if (connect_info->validate_certificate) { in ipp_server_cert_cb()
1179 … error = connect_info->validate_certificate(connect_info, credential->data, credential->datalen); in ipp_server_cert_cb()
1185 http_t *ipp_cups_connect(const wprint_connect_info_t *connect_info, char *printer_uri, in ipp_cups_connect() argument
1190 cupsSetServerCertCB(ipp_server_cert_cb, (void *)connect_info); in ipp_cups_connect()
1192 if ((connect_info->uri_path == NULL) || (strlen(connect_info->uri_path) == 0)) { in ipp_cups_connect()
1195 uri_path = connect_info->uri_path; in ipp_cups_connect()
1198 int ippPortNumber = ((connect_info->port_num == IPP_PORT) ? ippPort() : connect_info->port_num); in ipp_cups_connect()
1200 if (strstr(connect_info->uri_scheme,IPPS_PREFIX) != NULL) { in ipp_cups_connect()
1201 … curl_http = httpConnectEncrypt(connect_info->printer_addr, ippPortNumber, HTTP_ENCRYPTION_ALWAYS); in ipp_cups_connect()
1205 … curl_http = httpConnectEncrypt(connect_info->printer_addr, ippPortNumber, HTTP_ENCRYPT_REQUIRED); in ipp_cups_connect()
1208 …curl_http = httpConnectEncrypt(connect_info->printer_addr, ippPortNumber, HTTP_ENCRYPTION_IF_REQUE… in ipp_cups_connect()
1211 httpSetTimeout(curl_http, (double)connect_info->timeout / 1000, NULL, 0); in ipp_cups_connect()
1212 httpAssembleURIf(HTTP_URI_CODING_ALL, printer_uri, uriLength, connect_info->uri_scheme, NULL, in ipp_cups_connect()
1213 connect_info->printer_addr, ippPortNumber, uri_path); in ipp_cups_connect()
1216 LOGD("ipp_cups_connect failed addr=%s port=%d", connect_info->printer_addr, ippPortNumber); in ipp_cups_connect()