Lines Matching +defs:key +defs:type

26 	keyid_t keyid;		/* key identifier */
27 int type; /* key type */
30 int keylen; /* key length */
33 #define KEY_TRUSTED 0x001 /* this key is trusted */
48 u_long authkeyexpired; /* key lifetime expirations */
50 u_long authnokey; /* calls to encrypt with no key */
55 * Storage for free key structures. We malloc() such things but
64 * The key cache. We cache the last key we looked at here.
66 keyid_t cache_keyid; /* key identifier */
67 u_char *cache_key; /* key pointer */
68 u_int cache_keylen; /* key length */
69 int cache_type; /* key type */
87 * auth_findkey - find a key in the hash table
108 * auth_havekey - return one if the key is known
132 * authhavekey - return one and cache the key, if known and trusted.
146 * Seach the bin for the key. If found and the key type
148 * a key or key type. In this case consider the key missing.
154 if (sk->type == 0) {
164 * If the key is not found, or if it is found but not trusted,
165 * the key is not considered found.
178 * The key is found and trusted. Initialize the key cache.
181 cache_type = sk->type;
190 * auth_moremem - get some more free key structures
212 * authtrust - declare a key to be trusted/untrusted
223 * Search bin for key; if it does not exist and is untrusted,
281 * Here there is not key, but the key is to be trusted. There
282 * seems to be a disconnect here. Here we allocate a new key,
283 * but do not specify a key type, key or key length.
293 sk->type = 0;
304 * authistrusted - determine whether a key is trusted
339 const u_char *key,
346 * See if we already have the key. If so just stick in the
352 sk->type = keytype;
355 memcpy(sk->k.MD5_key, key, sk->keylen);
357 strncpy((char *)sk->k.MD5_key, (const char *)key,
380 sk->type = keytype;
385 memcpy(sk->k.MD5_key, key, sk->keylen);
387 strncpy((char *)sk->k.MD5_key, (const char *)key,
397 printf("auth_setkey: key %d type %d len %d ", sk->keyid,
398 sk->type, sk->keylen);
400 printf("%c%c", hex[key[j] >> 4],
401 hex[key[j] & 0xf]);
480 * Returns length of authenticator field, zero if key not found.
491 * A zero key identifier means the sender has not verified
509 * Returns one if authenticator valid, zero if invalid or key not found.
521 * A zero key identifier means the sender has not verified