]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common source files not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Tue, 29 Jan 2019 22:03:18 +0000 (14:03 -0800)
committerOliver Kurth <okurth@vmware.com>
Tue, 29 Jan 2019 22:03:18 +0000 (14:03 -0800)
open-vm-tools/vgauth/lib/impersonate.c
open-vm-tools/vgauth/public/VGAuthAuthentication.h

index 3d204880463929ab4bb8444a49fed277bc5d177d..d453b6bf6b05e6599ae39ad057e8a17e66f44985 100644 (file)
@@ -115,7 +115,7 @@ VGAuth_CreateHandleForUsername(VGAuthContext *ctx,
 
 #ifdef _WIN32
    newHandle->token = token;
-   newHandle->hProfile = NULL;
+   newHandle->hProfile = INVALID_HANDLE_VALUE;
 #endif
 
    newHandle->refCount = 1;
index f578c60aa8a2b0edecf081d1c45e2c91337dcd18..3a5c3471887846319406f93ae03460f9c3274c4e 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2018 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -80,9 +80,22 @@ VGAuthError VGAuth_UserHandleUsername(VGAuthContext *ctx,
                                       char **userName);                // OUT
 
 #ifdef _WIN32
+/*
+ * Special accessor functions for Windows to set and get user and
+ * profile handles.
+ */
+
 VGAuthError VGAuth_UserHandleAccessToken(VGAuthContext *ctx,
                                          VGAuthUserHandle *handle,
                                          HANDLE *authToken);
+
+VGAuthError VGAuth_UserHandleGetUserProfile(VGAuthContext *ctx,
+                                            VGAuthUserHandle *handle,
+                                            HANDLE *hProfile);
+
+VGAuthError VGAuth_UserHandleSetUserProfile(VGAuthContext *ctx,
+                                            VGAuthUserHandle *handle,
+                                            HANDLE hProfile);
 #endif