Lines Matching refs:type

90 static int auth_onoff(const char *type, boolean_t on);
136 * Traverse the Authenticator array until we find the authentication type
138 * Authenticator type array.
140 * Returns: 0 - type not found (error)
144 findauthenticator(int type, int way)
148 while (ap->type && (ap->type != type || ap->way != way))
150 return (ap->type ? ap : NULL);
154 * For each authentication type in the Authenticator array,
166 while (ap->type) {
168 i_support |= typemask(ap->type);
171 (">>>%s: I support auth type %d %d\r\n"),
172 Name, ap->type, ap->way);
179 * Search the Authenticator array for the authentication type 'name',
180 * and disable this type by updating the i_wont_support bitfield.
195 gettext("%s : invalid authentication type\n"),
200 * Search the Authenticator array for the authentication type given
201 * by the character string 'type', and return its integer bitmask
205 * 0 - type not found (error)
208 getauthmask(const char *type, uint_t *maskp)
212 if (!strcasecmp(type, AUTHTYPE_NAME(0))) {
218 if (!strcasecmp(type, AUTHTYPE_NAME(x))) {
227 auth_enable(char *type)
229 return (auth_onoff(type, B_TRUE));
233 auth_disable(char *type)
235 return (auth_onoff(type, B_FALSE));
242 * - a valid authentication type, turns support on / off
250 auth_onoff(const char *type, boolean_t on)
255 if (!strcasecmp(type, "?") || !strcasecmp(type, "help")) {
257 gettext("auth enable 'type'\n") :
258 gettext("auth disable 'type'\n"));
260 gettext("Where 'type' is one of:\n"));
262 for (ap = authenticators; ap->type; ap++) {
263 if ((mask & (i = typemask(ap->type))) != 0)
266 (void) printf("\t%s\n", AUTHTYPE_NAME(ap->type));
271 if (!getauthmask(type, &mask)) {
273 gettext("%s: invalid authentication type\n"), type);
304 * each authentication type, depencing on the i_wont_support bitfield.
320 for (ap = authenticators; ap->type; ap++) {
321 if ((mask & (i = typemask(ap->type))) != 0)
324 (void) printf("%s: %s\n", AUTHTYPE_NAME(ap->type),
325 (i_wont_support & typemask(ap->type)) ?
393 (void) printf(gettext(">>>%s: Using type %d\r\n"),