Lines Matching defs:con
510 printConnection(FILE *fp, Connection *con)
514 if (con == NULL)
517 (void) fprintf(fp, "tid= %d: connectionID=%d\n", t, con->connectionId);
518 (void) fprintf(fp, "tid= %d: usedBit=%d\n", t, con->usedBit);
519 (void) fprintf(fp, "tid= %d: threadID=%d\n", t, con->threadID);
520 if (con->serverAddr) {
522 t, con->serverAddr);
524 printCred(fp, con->auth);
535 addConnection(Connection *con)
539 if (!con)
542 (void) fprintf(stderr, "Adding connection thrid=%d\n", con->threadID);
578 sessionPool[i] = con;
579 con->usedBit = B_TRUE;
581 con->connectionId = i + CONID_OFFSET;
584 printConnection(stderr, con);
670 __s_api_freeConnection(Connection *con)
672 if (con == NULL)
674 if (con->serverAddr)
675 free(con->serverAddr);
676 if (con->auth)
677 (void) __ns_ldap_freeCred(&(con->auth));
678 if (con->saslMechanisms) {
679 __s_api_free2dArray(con->saslMechanisms);
681 if (con->controls) {
682 __s_api_free2dArray(con->controls);
684 free(con);
817 Connection *con = NULL;
836 if ((id = findConnection(flags, serverAddr, auth, &con)) != -1) {
844 *conp = con;
1100 /* we have created ld, setup con structure */
1103 if ((con = calloc(1, sizeof (Connection))) == NULL) {
1118 con->serverAddr = sinfo.server; /* Store original format */
1123 con->saslMechanisms = sinfo.saslMechanisms;
1124 con->controls = sinfo.controls;
1126 con->auth = __ns_ldap_dupAuth(auth);
1127 if (con->auth == NULL) {
1129 __s_api_freeConnection(con);
1142 con->threadID = thr_self();
1143 con->pid = getpid();
1144 con->serverType = sinfo.serverType;
1146 con->ld = ld;
1149 if (__s_api_conn_mt_add(con, conn_user, errorp) ==
1151 *conp = con;
1155 __s_api_freeConnection(con);
1161 if ((id = addConnection(con)) == -1) {
1163 __s_api_freeConnection(con);
1181 *conp = con;
1869 Connection *con = NULL;
1965 rc = makeConnection(&con, server, cred,
1976 *session = con;
1996 rc = makeConnection(&con, server, &anon,
2004 *session = con;
2044 rc = makeConnection(&con, server, authp,
2053 *session = con;