mirror of
https://github.com/containers/skopeo.git
synced 2025-09-08 10:09:50 +00:00
To support signing images without prompting the user, add CLI flags for providing a passphrase file. Signed-off-by: Valentin Rothberg <rothberg@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)
|
|
}
|