File: unset_agent_info_windows.go

package info (click to toggle)
golang-github-proglottis-gpgme 0.0~git20181127.3b0be09-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 156 kB
  • sloc: ansic: 124; makefile: 12
file content (14 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (4)
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)
}