Lines Matching refs:hnd
7 CacServerHandle *hnd = NULL;
14 hnd = cac_NewServerHandle(True);
16 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
18 cac_parse_cmd_line(argc, argv, hnd);
20 if(!cac_Connect(hnd, NULL)) {
21 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
34 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
35 fprintf(stderr, "Could not open key %s. Error %s\n", rok.in.name, nt_errstr(hnd->status));
45 if(!cac_RegGetKeySecurity(hnd, mem_ctx, &rks)) {
46 fprintf(stderr, "Could not query security for %s. Error: %s\n", rok.in.name, nt_errstr(hnd->status));
60 if(!cac_RegSetKeySecurity(hnd, mem_ctx, &rss)) {
61 fprintf(stderr, "Could not set security. Error %s\n", nt_errstr(hnd->status));
65 cac_RegClose(hnd, mem_ctx, rok.out.key);
67 cac_FreeHandle(hnd);