Lines Matching refs:hnd
10 CacServerHandle *hnd = NULL;
23 hnd = cac_NewServerHandle(True);
25 cac_parse_cmd_line(argc, argv, hnd);
27 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
29 if(!cac_Connect(hnd, NULL)) {
30 fprintf(stderr, "Could not connect to server.\n Error: %s.\n errno: %s\n", nt_errstr(hnd->status), strerror(errno));
31 cac_FreeHandle(hnd);
62 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
63 fprintf(stderr, "Could not open key %s\n Error: %s\n", rok.in.name, nt_errstr(hnd->status));
76 while(cac_RegEnumValues(hnd, mem_ctx, &rev)) {
85 if(CAC_OP_FAILED(hnd->status)) {
86 fprintf(stderr, "Could not enumerate values: %s\n", nt_errstr(hnd->status));
92 if(!cac_RegClose(hnd, mem_ctx, rok.out.key)) {
93 fprintf(stderr, "Could not close handle %s\n", nt_errstr(hnd->status));
97 cac_FreeHandle(hnd);