Home
last modified time | relevance | path

Searched refs:connect_info (Results 1 – 7 of 7) sorted by relevance

/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c1173 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()
[all …]
Dippstatus_capabilities.c105 const wprint_connect_info_t *connect_info) { in _init() argument
119 caps->http = ipp_cups_connect(connect_info, caps->printer_caps.printerUri, in _init()
Dippstatus_monitor.c79 static void _init(const ifc_status_monitor_t *this_p, const wprint_connect_info_t *connect_info) { in _init() argument
100 monitor->http = ipp_cups_connect(connect_info, monitor->printer_uri, in _init()
/packages/services/BuiltInPrintService/jni/lib/
Dlib_wprint.c730 static int _validate_certificate(wprint_connect_info_t *connect_info, uint8 *data, int data_len) { in _validate_certificate() argument
731 _job_queue_t *jq = connect_info->user; in _validate_certificate()
733 connect_info->uri_scheme, connect_info->printer_addr, connect_info->port_num, in _validate_certificate()
734 connect_info->uri_path, data_len, jq->job_handle); in _validate_certificate()
761 wprint_connect_info_t connect_info; in _initialize_status_ifc() local
762 connect_info.printer_addr = jq->printer_addr; in _initialize_status_ifc()
763 connect_info.uri_path = jq->printer_uri; in _initialize_status_ifc()
764 connect_info.port_num = jq->port_num; in _initialize_status_ifc()
766 connect_info.uri_scheme = IPPS_PREFIX; in _initialize_status_ifc()
767 connect_info.user = jq; in _initialize_status_ifc()
[all …]
DwprintJNI.c1188 wprint_connect_info_t connect_info; in Java_com_android_bips_ipp_Backend_nativeGetCapabilities() local
1190 connect_info.printer_addr = copyToNewString(env, address); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1191 connect_info.uri_path = copyToNewString(env, httpResource); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1192 connect_info.uri_scheme = copyToNewString(env, uriScheme); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1193 connect_info.port_num = port; in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1194 connect_info.timeout = timeout; in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1195 connect_info.validate_certificate = NULL; in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1197 LOGI("nativeGetCapabilities for %s JNIenv is %p", connect_info.printer_addr, env); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1200 result = wprintGetCapabilities(&connect_info, &caps); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1202 if (connect_info.printer_addr) free((char *) connect_info.printer_addr); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
[all …]
/packages/services/BuiltInPrintService/jni/include/
Dlib_wprint.h219 …int (*validate_certificate)(struct wprint_connect_info_st *connect_info, uint8 *data, int data_len…
288 status_t wprintGetCapabilities(const wprint_connect_info_t *connect_info,
Difc_printer_capabilities.h31 const wprint_connect_info_t *connect_info);