Lines Matching refs:uid

115 	uid_t uid;
457 mapuid2cache(uid_t uid, struct mechdata *mdp)
460 int hash = HASH_UID(uid);
462 debug(KEYSERV_DEBUG, ("mapuid2cache %d %d %x", uid, hash, mdp));
464 *cpp != NULL && (*cpp)->uid != uid;
473 appendsecretkey3(struct mechentry *mp, uid_t uid, setkeyarg3 *skey)
497 cpp = mapuid2cache(uid, mdp);
509 cp->uid = uid;
529 * Store the vers 3 secretkey for this uid
532 storesecretkey3(uid_t uid, setkeyarg3 *skey)
542 return (appendsecretkey3(mp, uid, skey));
546 * Set the vers 3 secretkey key for this uid
549 pk_setkey3(uid_t uid, setkeyarg3 *skey)
551 if (!storesecretkey3(uid, skey)) {
558 * Set the secretkey key for this uid
561 pk_setkey(uid, skey)
562 uid_t uid;
567 if (!storesecretkey(uid, skey)) {
653 pk_clear3(uid_t uid)
660 debug(KEYSERV_DEBUG, ("pk_clear3 %d", uid));
671 cpp = mapuid2cache(uid, mdp);
700 * secret key associated with uid.
703 pk_encrypt(uid, remote_name, remote_key, key)
704 uid_t uid;
709 return (pk_crypt(uid, remote_name, remote_key, key, DES_ENCRYPT));
714 * secret key associated with uid using vers 3
718 uid_t uid,
723 return (pk_crypt3(uid, arg, key, DES_ENCRYPT));
728 * secret key associated with uid.
731 pk_decrypt(uid, remote_name, remote_key, key)
732 uid_t uid;
737 return (pk_crypt(uid, remote_name, remote_key, key, DES_DECRYPT));
742 * secret key associated with uid using vers 3
746 uid_t uid,
751 return (pk_crypt3(uid, arg, key, DES_DECRYPT));
761 uid_t uid;
772 * Store the keys and netname for this uid
775 store_netname(uid, netstore)
776 uid_t uid;
781 int hash = HASH_UID(uid);
784 for (l = &g_secretkey_netname[hash]; *l != NULL && (*l)->uid != uid;
794 new->uid = uid;
817 appendnetname3(struct mechentry *mp, uid_t uid, key_netstarg3 *net)
836 cpp = mapuid2cache(uid, mdp);
847 cp->uid = uid;
873 pk_netput(uid, netstore)
874 uid_t uid;
878 if (!store_netname(uid, netstore)) {
885 * Store the keys and netname for this uid vers 3
888 store_netname3(uid_t uid, key_netstarg3 *net)
899 if (uid == 0 && CLASSIC_PK_DH(net->keylen, net->algtype)) {
904 if (pk_netput(uid, &netstore) != KEY_SUCCESS) {
910 return (appendnetname3(mp, uid, net));
914 pk_netput3(uid_t uid, key_netstarg3 *netstore)
917 if (!store_netname3(uid, netstore)) {
957 * Fetch the keys and netname for this uid
960 fetch_netname(uid, key_netst)
961 uid_t uid;
965 int hash = HASH_UID(uid);
969 if ((l->uid == uid) && (l->sc_flag == KEY_NAME)) {
1019 getcachekey3(uid_t uid, struct mechentry *mp)
1024 debug(KEYSERV_DEBUG1, ("getcachekey3 %d %x", uid, mp));
1034 cpp = mapuid2cache(uid, mdp);
1043 * Fetch any available cache for this uid (vers 3)
1046 getanycache3(uid_t uid)
1053 debug(KEYSERV_DEBUG, ("getanycache3 %d", uid));
1064 cpp = mapuid2cache(uid, mdp);
1079 fetchcache3(uid_t uid, keylen_t k, algtype_t a)
1084 debug(KEYSERV_DEBUG, ("fetchcache3 %d %d %d", uid, k, a));
1088 if ((cp = getcachekey3(uid, mp)) == NULL) {
1096 * Fetch the keys and netname for this uid vers 3
1099 fetch_netname3(uid_t uid, mechtype *net, key_netstarg3 *ret)
1107 uid, net->keylen, net->algtype));
1109 cp = getanycache3(uid);
1111 cp = fetchcache3(uid, net->keylen, net->algtype);
1136 pk_netget(uid, netstore)
1137 uid_t uid;
1140 if (!fetch_netname(uid, netstore)) {
1147 pk_netget3(uid_t uid, mechtype *net, key_netstarg3 *ret)
1149 if (!fetch_netname3(uid, net, ret)) {
1237 fetchsecretkey(uid, buf)
1238 uid_t uid;
1242 int hash = HASH_UID(uid);
1246 if (l->uid == uid) {
1258 fetchsecretkey3(uid_t uid, keylen_t k, algtype_t a)
1262 debug(KEYSERV_DEBUG, ("fetchsecretkey3 %d %d %d", uid, k, a));
1263 if ((cp = fetchcache3(uid, k, a)) == NULL) {
1274 pk_crypt(uid, remote_name, remote_key, key, mode)
1275 uid_t uid;
1291 if (!fetchsecretkey(uid, xsecret) || xsecret[0] == 0) {
1387 uid_t uid
1417 (cu = fetchcache3(uid, keylen, algtype)) != NULL) {
1420 if ((cachep = cache_retrieve(keylen, algtype, uid,
1428 uid, NULL);
1480 cache_insert(keylen, algtype, uid, cp->deskey,
1495 pk_get_conv_key3(uid_t uid, deskeyarg3 *arg, cryptkeyres3 *res)
1502 uid, arg, res));
1503 if ((xsecret = fetchsecretkey3(uid,
1526 xpublic, xsecret, uid)) == NULL) {
1538 uid_t uid,
1553 uid, arg, key, mode));
1554 if ((xsecret = fetchsecretkey3(uid,
1608 arg->deskey.deskeyarray_len, xpublic, xsecret, uid)) == NULL) {
1641 pk_get_conv_key(uid, pubkey, result)
1642 uid_t uid;
1654 if (!fetchsecretkey(uid, xsecret) || xsecret[0] == 0) {
1730 * Store the secretkey for this uid
1733 storesecretkey(uid, key)
1734 uid_t uid;
1739 int hash = HASH_UID(uid);
1742 for (l = &g_secretkey_netname[hash]; *l != NULL && (*l)->uid != uid;
1755 new->uid = uid;