Lines Matching defs:uid

43  *   keyserv(1M) performs multiple functions:  it stores secret keys per uid; it
623 __key_set_1_svc(uid, key, status)
624 uid_t uid;
629 (void) fprintf(stderr, "set(%d, %.*s) = ", uid,
632 *status = pk_setkey(uid, key);
641 __key_encrypt_pk_2_svc(uid, arg, res)
642 uid_t uid;
648 (void) fprintf(stderr, "encrypt(%d, %s, %08x%08x) = ", uid,
653 res->status = pk_encrypt(uid, arg->remotename, &(arg->remotekey),
669 __key_decrypt_pk_2_svc(uid, arg, res)
670 uid_t uid;
676 (void) fprintf(stderr, "decrypt(%d, %s, %08x%08x) = ", uid,
681 res->status = pk_decrypt(uid, arg->remotename, &(arg->remotekey),
697 __key_net_put_2_svc(uid, arg, status)
698 uid_t uid;
710 *status = pk_netput(uid, arg);
722 __key_net_get_2_svc(uid, arg, keynetname)
723 uid_t uid;
729 (void) fprintf(stderr, "net_get(%d) = ", uid);
731 keynetname->status = pk_netget(uid, &keynetname->key_netstres_u.knet);
751 __key_get_conv_2_svc(uid, arg, res)
752 uid_t uid;
758 (void) fprintf(stderr, "get_conv(%d, %.*s) = ", uid,
762 res->status = pk_get_conv_key(uid, arg, res);
779 __key_encrypt_1_svc(uid, arg, res)
780 uid_t uid;
786 (void) fprintf(stderr, "encrypt(%d, %s, %08x%08x) = ", uid,
791 res->status = pk_encrypt(uid, arg->remotename, NULL,
807 __key_decrypt_1_svc(uid, arg, res)
808 uid_t uid;
813 (void) fprintf(stderr, "decrypt(%d, %s, %08x%08x) = ", uid,
818 res->status = pk_decrypt(uid, arg->remotename, NULL,
869 __key_getcred_1_svc(uid, name, res)
870 uid_t uid;
877 if (!netname2user(*name, (uid_t *)&cred->uid, (gid_t *)&cred->gid,
887 (void) fprintf(stderr, "uid=%d, gid=%d, grouplen=%d\n",
888 cred->uid, cred->gid, cred->gids.gids_len);
902 __key_set_3_svc(uid_t uid, setkeyarg3 *arg, keystatus *status)
905 uid, arg->algtype, arg->keylen));
906 *status = pk_setkey3(uid, arg);
912 __key_encrypt_3_svc(uid_t uid, cryptkeyarg3 *arg, cryptkeyres3 *res)
917 debug(KEYSERV_DEBUG, ("encrypt_3(%d %d %s)", uid,
919 res->status = pk_encrypt3(uid, arg, &res->cryptkeyres3_u.deskey);
932 __key_decrypt_3_svc(uid_t uid, cryptkeyarg3 *arg, cryptkeyres3 *res)
937 debug(KEYSERV_DEBUG, ("decrypt_3(%d, %d, %s)", uid,
939 res->status = pk_decrypt3(uid, arg, &res->cryptkeyres3_u.deskey);
981 __key_getcred_3_svc(uid_t uid, netnamestr *name, getcredres3 *res)
983 return (__key_getcred_1_svc(uid, name, (getcredres *)res));
987 __key_encrypt_pk_3_svc(uid_t uid, cryptkeyarg3 *arg, cryptkeyres3 *res)
989 debug(KEYSERV_DEBUG, ("encrypt_pk_3(%d, %s)", uid, arg->remotename));
990 res->status = pk_encrypt3(uid, arg, &res->cryptkeyres3_u.deskey);
1004 __key_decrypt_pk_3(uid_t uid, cryptkeyarg3 *arg, cryptkeyres3 *res)
1006 debug(KEYSERV_DEBUG, ("decrypt_pk_3(%d, %s)", uid, arg->remotename));
1007 res->status = pk_decrypt3(uid, arg, &res->cryptkeyres3_u.deskey);
1021 __key_net_put_3_svc(uid_t uid, key_netstarg3 *arg, keystatus *status)
1023 debug(KEYSERV_DEBUG, ("net_put_3 (%d, %x)", uid, arg));
1024 *status = pk_netput3(uid, arg);
1030 __key_net_get_3_svc(uid_t uid, mechtype *arg, key_netstres3 *keynetname)
1032 debug(KEYSERV_DEBUG, ("net_get_3 (%d, %x)", uid, arg));
1033 keynetname->status = pk_netget3(uid,
1051 __key_get_conv_3_svc(uid_t uid, deskeyarg3 *arg, cryptkeyres3 *res)
1053 debug(KEYSERV_DEBUG, ("get_conv_3(%d %x %x)", uid, arg, res));
1054 res->status = pk_get_conv_key3(uid, arg, res);
1062 __key_clear_3_svc(uid_t uid, void *arg, keystatus *status)
1064 debug(KEYSERV_DEBUG, ("clear_3(%d)", uid));
1065 *status = pk_clear3(uid);
1118 uid_t uid;
1289 if (!get_auth(transp, rqstp, &uid)) {
1304 retval = (*local)(uid, &argument, &result);
1322 get_auth(trans, rqstp, uid)
1325 uid_t *uid;
1341 *uid = ((struct authunix_parms *)rqstp->rq_clntcred)->aup_uid;
1342 return (*uid == cred.euid || cred.euid == 0);
1344 *uid = cred.euid;