Lines Matching refs:conn

98                                        struct connectdata *conn);
104 struct connectdata *conn, bool dead);
210 struct ldapconninfo *ldapc = data->conn->proto.ldapc; in oldap_state()
286 static CURLcode oldap_parse_login_options(struct connectdata *conn) in oldap_parse_login_options() argument
289 struct ldapconninfo *li = conn->proto.ldapc; in oldap_parse_login_options()
290 const char *ptr = conn->options; in oldap_parse_login_options()
317 struct connectdata *conn) in oldap_setup_connection() argument
321 (void)conn; in oldap_setup_connection()
335 struct berval *servercred = data->conn->proto.ldapc->servercred; in oldap_get_message()
349 struct connectdata *conn = data->conn; in oldap_perform_auth() local
350 struct ldapconninfo *li = conn->proto.ldapc; in oldap_perform_auth()
371 struct connectdata *conn = data->conn; in oldap_continue_auth() local
372 struct ldapconninfo *li = conn->proto.ldapc; in oldap_continue_auth()
392 struct ldapconninfo *li = data->conn->proto.ldapc; in oldap_cancel_auth()
405 struct connectdata *conn = data->conn; in oldap_perform_bind() local
406 struct ldapconninfo *li = conn->proto.ldapc; in oldap_perform_bind()
415 binddn = conn->user; in oldap_perform_bind()
416 passwd.bv_val = conn->passwd; in oldap_perform_bind()
433 struct ldapconninfo *li = data->conn->proto.ldapc; in oldap_perform_mechs()
453 struct ldapconninfo *li = data->conn->proto.ldapc; in oldap_perform_sasl()
465 static bool ssl_installed(struct connectdata *conn) in ssl_installed() argument
467 return conn->proto.ldapc->recv != NULL; in ssl_installed()
472 struct connectdata *conn = data->conn; in oldap_ssl_connect() local
473 struct ldapconninfo *li = conn->proto.ldapc; in oldap_ssl_connect()
485 li->recv = conn->recv[FIRSTSOCKET]; in oldap_ssl_connect()
486 li->send = conn->send[FIRSTSOCKET]; in oldap_ssl_connect()
496 struct ldapconninfo *li = data->conn->proto.ldapc; in oldap_perform_starttls()
508 struct connectdata *conn = data->conn; in oldap_connect() local
519 DEBUGASSERT(!conn->proto.ldapc); in oldap_connect()
526 conn->proto.ldapc = li; in oldap_connect()
532 conn->bits.tls_upgraded = FALSE; in oldap_connect()
534 result = oldap_parse_login_options(conn); in oldap_connect()
540 conn->handler->scheme, in oldap_connect()
541 conn->bits.ipv6_ip ? "[" : "", in oldap_connect()
542 conn->host.name, in oldap_connect()
543 conn->bits.ipv6_ip ? "]" : "", in oldap_connect()
544 conn->remote_port); in oldap_connect()
548 rc = ldap_init_fd(conn->sock[FIRSTSOCKET], li->proto, hosturl, &li->ld); in oldap_connect()
574 if(conn->handler->flags & PROTOPT_SSL) in oldap_connect()
597 struct connectdata *conn = data->conn; in oldap_state_mechs_resp() local
598 struct ldapconninfo *li = conn->proto.ldapc; in oldap_state_mechs_resp()
662 struct connectdata *conn = data->conn; in oldap_state_sasl_resp() local
663 struct ldapconninfo *li = conn->proto.ldapc; in oldap_state_sasl_resp()
689 struct connectdata *conn = data->conn; in oldap_state_bind_resp() local
690 struct ldapconninfo *li = conn->proto.ldapc; in oldap_state_bind_resp()
715 struct connectdata *conn = data->conn; in oldap_connecting() local
716 struct ldapconninfo *li = conn->proto.ldapc; in oldap_connecting()
753 (ssl_installed(conn) || data->set.use_ssl <= CURLUSESSL_TRY) && in oldap_connecting()
770 if(!result && ssl_installed(conn)) { in oldap_connecting()
787 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET); in oldap_connecting()
795 else if(ssl_installed(conn)) { in oldap_connecting()
796 conn->bits.tls_upgraded = TRUE; in oldap_connecting()
830 conn->recv[FIRSTSOCKET] = oldap_recv; in oldap_connecting()
840 struct connectdata *conn, in oldap_disconnect() argument
843 struct ldapconninfo *li = conn->proto.ldapc; in oldap_disconnect()
852 if(ssl_installed(conn)) { in oldap_disconnect()
861 Curl_sasl_cleanup(conn, li->sasl.authused); in oldap_disconnect()
862 conn->proto.ldapc = NULL; in oldap_disconnect()
870 struct connectdata *conn = data->conn; in oldap_do() local
871 struct ldapconninfo *li = conn->proto.ldapc; in oldap_do()
878 connkeep(conn, "OpenLDAP do"); in oldap_do()
885 if(ssl_installed(conn)) { in oldap_do()
921 struct connectdata *conn = data->conn; in oldap_done() local
930 struct ldapconninfo *li = conn->proto.ldapc; in oldap_done()
967 struct connectdata *conn = data->conn; in oldap_recv() local
968 struct ldapconninfo *li = conn->proto.ldapc; in oldap_recv()
1166 struct connectdata *conn = data->conn; in ldapsb_tls_read() local
1167 if(conn) { in ldapsb_tls_read()
1168 struct ldapconninfo *li = conn->proto.ldapc; in ldapsb_tls_read()
1186 struct connectdata *conn = data->conn; in ldapsb_tls_write() local
1187 if(conn) { in ldapsb_tls_write()
1188 struct ldapconninfo *li = conn->proto.ldapc; in ldapsb_tls_write()