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