Lines Matching refs:public
67 struct dhkey public;
114 keybuf3 *public,
119 keybuf3 *public,
124 keybuf3 *public);
794 * Find the cache item specified by the header, uid, and public key. If
795 * no such uid/public item exists, return a pointer to an empty record.
800 find_cache_item(struct cachekey_header **ch, uid_t uid, struct dhkey *public)
812 public->length == cd->public.length &&
813 memcmp(public->key, cd->public.key,
814 cd->public.length) == 0) {
857 keybuf3 *public,
874 (pk = keybuf3_2_dhkey(public)) == 0 ||
891 memcpy(&(cd->public), pk, DHKEYSIZE(pk));
893 skck = MOVE_ADDR(&(cd->public), DHKEYSIZE(pk));
943 skck_cd = MOVE_ADDR(&(cd->public), DHKEYSIZE(&(cd->public)));
960 cl->public = MOVE_ADDR(cl, sizeof (struct cachekey3_list));
961 cl->public->keybuf3_val = MOVE_ADDR(cl->public, sizeof (keybuf3));
962 cl->secret = MOVE_ADDR(cl->public->keybuf3_val,
968 bin2hex(cd->public.key, (u_char *)cl->public->keybuf3_val,
969 cd->public.length);
970 cl->public->keybuf3_len = cd->public.length*2+1;
991 cache_retrieve_ch(struct cachekey_header *ch, uid_t uid, keybuf3 *public,
1000 (public != 0 && (pk = keybuf3_2_dhkey(public)) == 0)) {
1008 /* Match on public key as well ? */
1010 if (memcmp(cd->public.key, pk->key,
1011 cd->public.length) != 0) {
1016 /* Match on public key => nothing more to do */
1037 * Remove specified item. 'public' == 0 => remove all items for uid.
1041 cache_remove_ch(struct cachekey_header *ch, uid_t uid, keybuf3 *public) {
1049 (public != 0 && (pk = keybuf3_2_dhkey(public)) == 0)) {
1057 /* Match on public key as well ? */
1059 if (memcmp(cd->public.key, pk->key,
1060 cd->public.length) != 0) {
1071 /* Match on public key => nothing more to do */
1209 keybuf3 *public,
1224 cache_insert_ch(c->ch, uid, common, key, public, secret)) != 0;
1237 keybuf3 *public,
1251 cl = cache_retrieve_ch(c->ch, uid, public, key);
1259 cache_remove(keylen_t keylen, algtype_t algtype, uid_t uid, keybuf3 *public)
1272 ret = cache_remove_ch(c->ch, uid, public);