aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/mtrmac/gpgme/unset_agent_info_windows.go
blob: 431ec86d3c2492387bc37e92b2723e7d58e3f9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
}