Lines Matching refs:hnd
9 CacServerHandle *hnd = NULL;
18 hnd = cac_NewServerHandle(True);
20 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
22 cac_parse_cmd_line(argc, argv, hnd);
30 if(!cac_Connect(hnd, NULL)) {
31 fprintf(stderr, "Could not connect to server.\n Error: %s.\n errno: %s\n", nt_errstr(hnd->status), strerror(errno));
32 cac_FreeHandle(hnd);
45 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
46 fprintf(stderr, "Could not open key %s\n Error: %s\n", rok.in.name, nt_errstr(hnd->status));
57 if(!cac_RegQueryValue(hnd, mem_ctx, &rqv)) {
58 fprintf(stderr, "Could not query value. Error: %s\n", nt_errstr(hnd->status));
68 if(!cac_RegClose(hnd, mem_ctx, rok.out.key)) {
69 fprintf(stderr, "Could not close handle %s\n", nt_errstr(hnd->status));
73 cac_FreeHandle(hnd);