]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common source files not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Tue, 22 Aug 2023 18:11:41 +0000 (11:11 -0700)
committerKaty Feng <fkaty@vmware.com>
Tue, 22 Aug 2023 18:11:41 +0000 (11:11 -0700)
open-vm-tools/lib/foundryMsg/foundryMsg.c
open-vm-tools/lib/include/vixCommands.h
open-vm-tools/lib/include/vixOpenSource.h

index 869458d962306624cb2ee917c963c4705ff0b04b..96ba86241ff36e059ee835b83d384a81152943a1 100644 (file)
@@ -637,7 +637,8 @@ VixMsg_AllocRequestMsg(size_t msgHeaderAndBodyLength,    // IN
       || (VIX_USER_CREDENTIAL_HOST_CONFIG_HASHED_SECRET == credentialType)
       || (VIX_USER_CREDENTIAL_TICKETED_SESSION == credentialType)
       || (VIX_USER_CREDENTIAL_SSPI == credentialType)
-      || (VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN == credentialType)) {
+      || (VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN == credentialType)
+      || (VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN_HOST_VERIFIED == credentialType)) {
       /*
        * All of these are optional.
        */
@@ -690,7 +691,8 @@ VixMsg_AllocRequestMsg(size_t msgHeaderAndBodyLength,    // IN
          || (VIX_USER_CREDENTIAL_HOST_CONFIG_HASHED_SECRET == credentialType)
          || (VIX_USER_CREDENTIAL_TICKETED_SESSION == credentialType)
          || (VIX_USER_CREDENTIAL_SSPI == credentialType)
-         || (VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN == credentialType)) {
+         || (VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN == credentialType)
+         || (VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN_HOST_VERIFIED == credentialType)) {
       char *destPtr = (char *) commandRequest;
 
       destPtr += commandRequest->commonHeader.headerLength;
index 4ef61966d9814b22b560052547ae128266a3bbf6..8371f3d8fc5b5e605f586bddcdf30dca9a7ec5a5 100644 (file)
@@ -76,6 +76,11 @@ extern "C" {
 
 #define VIX_SHARED_SECRET_CONFIG_USER_NAME          "__VMware_Vix_Shared_Secret_1__"
 
+/*
+ * Base64 encoded value of string %HOST_VERIFIED_SIGNATURE%
+ */
+#define VIX_BASE64_ENCODED_HOST_VERIFIED_SIGNATURE_VALUE    "JUhPU1RfVkVSSUZJRURfU0lHTkFUVVJFJQA="
+
 
 /*
  * This is the port for the server side remote Vix component
index 517b2f78deed257ef578d6e4dd460e4bd9986746..7eef83e6c489d81e82de5d74cdfb60ba04acd952 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2007-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-2021, 2023 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
@@ -547,6 +547,11 @@ Bool Vix_XMLFindStringElementText(const char *pattern,
 Bool Vix_XMLResultIsEscaped(const char *resultXML,
                             const char *dataParentTag);
 
+Bool Vix_XMLModifyStringElementText(const char *pattern,
+                                    char *str,
+                                    const char *replaceStr,
+                                    char **resultStr);
+
 Bool Vix_IsValidString(const char *str);
 #endif   // VIX_HIDE_FROM_JAVA