Lines Matching defs:mechs
61 extern mechanism_t **mechs;
1845 * in the "list" of nis+ mechs so that the 192bit key always gets loaded so
1853 * Return ptr to mechs array on success, else NULL on memory errs.
1858 mechanism_t **mechs = __nis_get_mechanisms(FALSE);
1863 if (mechs) {
1864 /* got some valid mechs and possibly the AUTH_DES compat one */
1865 for (i = 0; mechs[i]; i++) {
1866 if (AUTH_DES_COMPAT_CHK(mechs[i]))
1867 return (mechs);
1874 if (mechs)
1875 __nis_release_mechanisms(mechs);
1885 mechsbak = mechs;
1886 /* mechs == NULL and i == 0 is valid "no mechs configed" case */
1887 if ((mechs = (mechanism_t **)realloc(mechs,
1894 mechs[i] = desmech;
1895 mechs[i+1] = NULL;
1897 return (mechs);
1907 if (!(mechs = getmechwrap()))
1915 for (mechpp = mechs; *mechpp != NULL; mechpp++) {
1930 * set of mechs for getsubopt()
1949 for (mechpp = mechs; *mechpp != NULL; mechpp++) {