auth_attr.c 217 B

12345678910111213
  1. #include <u.h>
  2. #include <libc.h>
  3. #include <auth.h>
  4. #include <authsrv.h>
  5. #include "authlocal.h"
  6. Attr*
  7. auth_attr(AuthRpc *rpc)
  8. {
  9. if(auth_rpc(rpc, "attr", nil, 0) != ARok)
  10. return nil;
  11. return _parseattr(rpc->arg);
  12. }