Skip to content

Fix encryption flags#211

Merged
ueno merged 3 commits intoueno:masterfrom
djberg96:encryption_flags
Feb 10, 2026
Merged

Fix encryption flags#211
ueno merged 3 commits intoueno:masterfrom
djberg96:encryption_flags

Conversation

@djberg96
Copy link
Contributor

Currently the various #ifdef checks for the GPGME_ENCRYPT_XXX constants are failing because they aren't macros, but enum values, so the preprocessor won't pick them up.

This PR updates the extconf.rb file to use have_const checks, and their corresponding HAVE_CONST macros.

I've added some specs, and just to make sure I installed the gem locally and checked for them in irb:

irb(main):001> require 'gpgme'
=> true
irb(main):002> GPGME::ENCRYPT_NO_ENCRYPT_TO
=> 2

Fixes #137

Copy link
Owner

@ueno ueno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@ueno ueno merged commit 1e7f56c into ueno:master Feb 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPGME_ENCRYPT_NO_ENCRYPT_TO not available

2 participants

Comments