Skip to content

Commit

Permalink
Comment out a few constants to make this build with gpgme 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrmac committed Jun 1, 2016
1 parent 3cc2932 commit e883484
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gpgme.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const (
ProtocolAssuan Protocol = C.GPGME_PROTOCOL_ASSUAN
ProtocolG13 Protocol = C.GPGME_PROTOCOL_G13
ProtocolUIServer Protocol = C.GPGME_PROTOCOL_UISERVER
ProtocolSpawn Protocol = C.GPGME_PROTOCOL_SPAWN
ProtocolDefault Protocol = C.GPGME_PROTOCOL_DEFAULT
ProtocolUnknown Protocol = C.GPGME_PROTOCOL_UNKNOWN
// ProtocolSpawn Protocol = C.GPGME_PROTOCOL_SPAWN // Unavailable in 1.4.3
ProtocolDefault Protocol = C.GPGME_PROTOCOL_DEFAULT
ProtocolUnknown Protocol = C.GPGME_PROTOCOL_UNKNOWN
)

type PinEntryMode int
Expand All @@ -69,7 +69,7 @@ const (
EncryptNoEncryptTo EncryptFlag = C.GPGME_ENCRYPT_NO_ENCRYPT_TO
EncryptPrepare EncryptFlag = C.GPGME_ENCRYPT_PREPARE
EncryptExceptSign EncryptFlag = C.GPGME_ENCRYPT_EXPECT_SIGN
EncryptNoCompress EncryptFlag = C.GPGME_ENCRYPT_NO_COMPRESS
// EncryptNoCompress EncryptFlag = C.GPGME_ENCRYPT_NO_COMPRESS // Unavailable in 1.4.3
)

type HashAlgo int
Expand All @@ -83,7 +83,7 @@ const (
KeyListModeExtern KeyListMode = C.GPGME_KEYLIST_MODE_EXTERN
KeyListModeSigs KeyListMode = C.GPGME_KEYLIST_MODE_SIGS
KeyListModeSigNotations KeyListMode = C.GPGME_KEYLIST_MODE_SIG_NOTATIONS
KeyListModeWithSecret KeyListMode = C.GPGME_KEYLIST_MODE_WITH_SECRET
// KeyListModeWithSecret KeyListMode = C.GPGME_KEYLIST_MODE_WITH_SECRET // Unavailable in 1.4.3
KeyListModeEphemeral KeyListMode = C.GPGME_KEYLIST_MODE_EPHEMERAL
KeyListModeModeValidate KeyListMode = C.GPGME_KEYLIST_MODE_VALIDATE
)
Expand Down

0 comments on commit e883484

Please sign in to comment.