mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 19:05:32 +00:00
This fixes CVE-2020-8945 by incorporating proglottis/gpgme#23 . Other changes included by the rebase: - Support for gpgme_off_t (~no-op on Linux) - Wrapping a few more GPGME functions (irrelevant if we don't call them) Given how invasive the CVE fix is (affecting basically all binding code), it seems safer to just update the package (and be verifiably equivalent with upstream) than to backport and try to back out the few other changes. Performed by updating vendor conf, $ vndr github.com/mtrmac/gpgme and manually backing out unrelated deletions of files. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
15 lines
222 B
Go
15 lines
222 B
Go
package gpgme
|
|
|
|
// #include <stdlib.h>
|
|
import "C"
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
// unsetenv is not available in mingw
|
|
func unsetenvGPGAgentInfo() {
|
|
v := C.CString("GPG_AGENT_INFO=")
|
|
defer C.free(unsafe.Pointer(v))
|
|
C.putenv(v)
|
|
}
|