Lines Matching refs:aMethod
1491 ns_auth_t *aMethod, in __s_api_getDefaultAuth() argument
1508 if (aMethod == NULL) { in __s_api_getDefaultAuth()
1517 aMethod->saslmech != NS_LDAP_SASL_GSSAPI) in __s_api_getDefaultAuth()
1524 (*authp)->auth = *aMethod; in __s_api_getDefaultAuth()
1526 switch (aMethod->type) { in __s_api_getDefaultAuth()
1534 if ((aMethod->saslmech == NS_LDAP_SASL_DIGEST_MD5) || in __s_api_getDefaultAuth()
1535 (aMethod->saslmech == NS_LDAP_SASL_CRAM_MD5)) { in __s_api_getDefaultAuth()
1538 } else if (aMethod->saslmech != NS_LDAP_SASL_GSSAPI) { in __s_api_getDefaultAuth()
1544 if ((aMethod->tlstype == NS_LDAP_TLS_SIMPLE) || in __s_api_getDefaultAuth()
1545 ((aMethod->tlstype == NS_LDAP_TLS_SASL) && in __s_api_getDefaultAuth()
1546 ((aMethod->saslmech == NS_LDAP_SASL_DIGEST_MD5) || in __s_api_getDefaultAuth()
1547 (aMethod->saslmech == NS_LDAP_SASL_CRAM_MD5)))) { in __s_api_getDefaultAuth()
1551 } else if (aMethod->tlstype == NS_LDAP_TLS_NONE) { in __s_api_getDefaultAuth()
1709 ns_auth_t **aMethod = NULL; in getConnection() local
1763 (void ***)&aMethod, errorp)) != NS_LDAP_SUCCESS) in getConnection()
1765 if (aMethod == NULL) { in getConnection()
1766 aMethod = (ns_auth_t **)calloc(2, sizeof (ns_auth_t *)); in getConnection()
1767 if (aMethod == NULL) in getConnection()
1769 aMethod[0] = (ns_auth_t *)calloc(1, sizeof (ns_auth_t)); in getConnection()
1770 if (aMethod[0] == NULL) { in getConnection()
1771 free(aMethod); in getConnection()
1775 (aMethod[0])->type = NS_LDAP_AUTH_SIMPLE; in getConnection()
1777 (aMethod[0])->type = NS_LDAP_AUTH_SASL; in getConnection()
1778 (aMethod[0])->saslmech = in getConnection()
1780 (aMethod[0])->saslopt = NS_LDAP_SASLOPT_NONE; in getConnection()
1787 (void) __ns_ldap_freeParam((void ***)&aMethod); in getConnection()
1856 for (aNext = aMethod; *aNext != NULL; aNext++) { in getConnection()
1923 (void) __ns_ldap_freeParam((void ***)&aMethod); in getConnection()