Lines Matching refs:hnd
9 CacServerHandle *hnd = NULL;
17 hnd = cac_NewServerHandle(True);
20 fscanf(stdin, "%s", hnd->server);
24 if(!cac_Connect(hnd, NULL)) {
25 fprintf(stderr, "Could not connect to server.\n Error: %s\n errno %s\n", nt_errstr(hnd->status), strerror(errno));
26 cac_FreeHandle(hnd);
39 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
40 fprintf(stderr, "Could not open policy handle.\n Error: %s\n", nt_errstr(hnd->status));
41 cac_FreeHandle(hnd);
55 while(cac_LsaEnumPrivileges(hnd, mem_ctx, &ep)) {
65 if(CAC_OP_FAILED(hnd->status)) {
66 fprintf(stderr, "Error while enumerating privileges.\n Error: %s\n", nt_errstr(hnd->status));
71 if(!cac_LsaClosePolicy(hnd, mem_ctx, lsa_pol)) {
72 fprintf(stderr, "Could not close policy handle.\n Error: %s\n", nt_errstr(hnd->status));
75 cac_FreeHandle(hnd);