fix(deps): update module github.com/containers/libhvee to v0.2.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2023-06-30 00:28:26 +00:00
committed by GitHub
parent fca3c2ef84
commit fe0de8b9f6
4 changed files with 11 additions and 5 deletions

2
go.mod
View File

@ -16,7 +16,7 @@ require (
github.com/containers/common v0.54.0
github.com/containers/conmon v2.0.20+incompatible
github.com/containers/image/v5 v5.26.0
github.com/containers/libhvee v0.0.5
github.com/containers/libhvee v0.2.0
github.com/containers/ocicrypt v1.1.7
github.com/containers/psgo v1.8.0
github.com/containers/storage v1.47.0

4
go.sum
View File

@ -247,8 +247,8 @@ github.com/containers/conmon v2.0.20+incompatible h1:YbCVSFSCqFjjVwHTPINGdMX1F6J
github.com/containers/conmon v2.0.20+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I=
github.com/containers/image/v5 v5.26.0 h1:P9H4+N/7fTTClnFthIWgJU+0LBkhGlW2tCWR+UNG0Vs=
github.com/containers/image/v5 v5.26.0/go.mod h1:QSW67adLL/B4eYsFPG6TjH5Ye4LiLazPAGWk5oQnUdQ=
github.com/containers/libhvee v0.0.5 h1:5tUiF2eVe8XbVSPD/Os4dIU1gJWoQgtkQHIjQ5X7wpE=
github.com/containers/libhvee v0.0.5/go.mod h1:AYsyMe44w9ylWWEZNW+IOzA7oZ2i/P9TChNljavhYMI=
github.com/containers/libhvee v0.2.0 h1:6h7LdSvBt176oIdMXKkgxdoT/IVP+o/gkwgyjWzvEAo=
github.com/containers/libhvee v0.2.0/go.mod h1:Zr2Qhnl5THW/HQjF1o8HmxXWjvHfJb8fvd0ThTzHMys=
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 h1:Qzk5C6cYglewc+UyGf6lc8Mj2UaPTHy/iF2De0/77CA=
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
github.com/containers/ocicrypt v1.0.1/go.mod h1:MeJDzk1RJHv89LjsH0Sp5KTY3ZYkjXO/C+bKAeWFIrc=

View File

@ -62,6 +62,7 @@ func connectService(namespace string) (*Service, error) {
var err error
var res uintptr
var strResource *uint16
var strLocale *uint16
var service *ole.IUnknown
loc := fmt.Sprintf(`\\.\%s`, namespace)
@ -70,6 +71,11 @@ func connectService(namespace string) (*Service, error) {
return nil, err
}
// Connect with en_US LCID since we do pattern matching against English key values
if strLocale, err = syscall.UTF16PtrFromString("MS_409"); err != nil {
return nil, err
}
myVTable := (*IWbemLocatorVtbl)(unsafe.Pointer(wmiWbemLocator.RawVTable))
res, _, _ = syscall.SyscallN(
myVTable.ConnectServer, // IWbemLocator::ConnectServer(
@ -77,7 +83,7 @@ func connectService(namespace string) (*Service, error) {
uintptr(unsafe.Pointer(strResource)), // [in] const BSTR strNetworkResource,
uintptr(0), // [in] const BSTR strUser,
uintptr(0), // [in] const BSTR strPassword,
uintptr(0), // [in] const BSTR strLocale,
uintptr(unsafe.Pointer(strLocale)), // [in] const BSTR strLocale,
uintptr(WBEM_FLAG_CONNECT_USE_MAX_WAIT), // [in] long lSecurityFlags,
uintptr(0), // [in] const BSTR strAuthority,
uintptr(0), // [in] IWbemContext *pCtx,

2
vendor/modules.txt vendored
View File

@ -258,7 +258,7 @@ github.com/containers/image/v5/transports
github.com/containers/image/v5/transports/alltransports
github.com/containers/image/v5/types
github.com/containers/image/v5/version
# github.com/containers/libhvee v0.0.5
# github.com/containers/libhvee v0.2.0
## explicit; go 1.18
github.com/containers/libhvee/pkg/hypervctl
github.com/containers/libhvee/pkg/kvp/ginsu