gpgme 2.0.24 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/gpgme/extconf.rb +29 -6
- data/ext/gpgme/gpgme_n.c +629 -16
- data/lib/gpgme/constants.rb +138 -31
- data/lib/gpgme/crypto.rb +56 -1
- data/lib/gpgme/ctx.rb +69 -8
- data/lib/gpgme/io_callbacks.rb +6 -1
- data/lib/gpgme/key.rb +4 -3
- data/lib/gpgme/version.rb +1 -1
- data/lib/gpgme.rb +56 -1
- data/ports/archives/gpgme-2.0.0.tar.bz2 +0 -0
- data/ports/archives/libassuan-3.0.2.tar.bz2 +0 -0
- data/ports/archives/libgpg-error-1.55.tar.bz2 +0 -0
- data/test/crypto_test.rb +2 -2
- data/test/ctx_test.rb +1 -4
- data/test/data_test.rb +2 -2
- data/test/encryption_flags_test.rb +65 -0
- data/test/io_callbacks_test.rb +169 -0
- metadata +8 -9
- data/ports/archives/gpgme-1.21.0.tar.bz2 +0 -0
- data/ports/archives/libassuan-2.5.6.tar.bz2 +0 -0
- data/ports/archives/libgpg-error-1.47.tar.bz2 +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fe08b2c986a5e8b47b37c96aec3bca4a490ae41ec56d8b596746e3392632e11
|
|
4
|
+
data.tar.gz: 15191272b4aefcf3df3cfec3d2bccc51eb41863036e8e746bf68a22f6c22e323
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa950f73817ce3afce83d1f0d2fb5ef9c2d1dc7a251f12376c079ef6b685f8d7b83f5242df381b1cac3632e5aa4946f8eb38947ad3d3e1b64ee24b7ddc2c6a5a
|
|
7
|
+
data.tar.gz: a77cf22e0fc1c41936c537a3a47a4c651ec1f8b2d7e9a8a0708d99ffc011b887b339cc57ecf82114370f3a644ce27eb6e6e4483e5277db8af03dc05d89dc854e
|
data/ext/gpgme/extconf.rb
CHANGED
|
@@ -65,11 +65,11 @@ EOS
|
|
|
65
65
|
require 'rubygems'
|
|
66
66
|
require 'mini_portile2'
|
|
67
67
|
|
|
68
|
-
libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.
|
|
68
|
+
libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.55').tap do |recipe|
|
|
69
69
|
recipe.target = File.join(ROOT, "ports")
|
|
70
70
|
recipe.files = [{
|
|
71
71
|
:url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
|
|
72
|
-
:sha256 => '
|
|
72
|
+
:sha256 => '95b178148863f07d45df0cea67e880a79b9ef71f5d230baddc0071128516ef78'
|
|
73
73
|
}]
|
|
74
74
|
recipe.configure_options = [
|
|
75
75
|
'--enable-install-gpg-error-config',
|
|
@@ -86,11 +86,11 @@ EOS
|
|
|
86
86
|
recipe.activate
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
libassuan_recipe = MiniPortile.new('libassuan', '
|
|
89
|
+
libassuan_recipe = MiniPortile.new('libassuan', '3.0.2').tap do |recipe|
|
|
90
90
|
recipe.target = File.join(ROOT, "ports")
|
|
91
91
|
recipe.files = [{
|
|
92
92
|
:url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
|
|
93
|
-
:sha256 => '
|
|
93
|
+
:sha256 => 'd2931cdad266e633510f9970e1a2f346055e351bb19f9b78912475b8074c36f6'
|
|
94
94
|
}]
|
|
95
95
|
recipe.configure_options = [
|
|
96
96
|
'--disable-shared',
|
|
@@ -106,11 +106,21 @@ EOS
|
|
|
106
106
|
recipe.activate
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
pkg_config_paths = [
|
|
110
|
+
File.join(libgpg_error_recipe.lib_path, 'pkgconfig'),
|
|
111
|
+
File.join(libassuan_recipe.lib_path, 'pkgconfig'),
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
# Ensure that the locally-built libraries take precedence. gpgme runs
|
|
115
|
+
# `gpgrt-config libassuan` and could pull in the system libassuan
|
|
116
|
+
# if PKG_CONFIG_PATH is not set properly.
|
|
117
|
+
ENV["PKG_CONFIG_PATH"] = [*pkg_config_paths, ENV["PKG_CONFIG_PATH"]].compact.join(File::PATH_SEPARATOR)
|
|
118
|
+
|
|
119
|
+
gpgme_recipe = MiniPortile.new('gpgme', '2.0.0').tap do |recipe|
|
|
110
120
|
recipe.target = File.join(ROOT, "ports")
|
|
111
121
|
recipe.files = [{
|
|
112
122
|
:url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
|
|
113
|
-
:sha256 => '
|
|
123
|
+
:sha256 => 'ddf161d3c41ff6a3fcbaf4be6c6e305ca4ef1cc3f1ecdfce0c8c2a167c0cc36d'
|
|
114
124
|
}]
|
|
115
125
|
recipe.configure_options = [
|
|
116
126
|
'--disable-shared',
|
|
@@ -215,6 +225,19 @@ End
|
|
|
215
225
|
end
|
|
216
226
|
|
|
217
227
|
have_func('gpgme_op_export_keys')
|
|
228
|
+
have_const('GPGME_ENCRYPT_ALWAYS_TRUST', 'gpgme.h')
|
|
229
|
+
have_const('GPGME_ENCRYPT_NO_ENCRYPT_TO', 'gpgme.h')
|
|
230
|
+
have_const('GPGME_ENCRYPT_PREPARE', 'gpgme.h')
|
|
231
|
+
have_const('GPGME_ENCRYPT_EXPECT_SIGN', 'gpgme.h')
|
|
232
|
+
have_const('GPGME_ENCRYPT_NO_COMPRESS', 'gpgme.h')
|
|
233
|
+
have_const('GPGME_ENCRYPT_SYMMETRIC', 'gpgme.h')
|
|
234
|
+
have_const('GPGME_ENCRYPT_THROW_KEYIDS', 'gpgme.h')
|
|
235
|
+
have_const('GPGME_ENCRYPT_WRAP', 'gpgme.h')
|
|
236
|
+
have_const('GPGME_ENCRYPT_WANT_ADDRESS', 'gpgme.h')
|
|
237
|
+
have_const('GPGME_ENCRYPT_ARCHIVE', 'gpgme.h')
|
|
238
|
+
have_const('GPGME_ENCRYPT_FILE', 'gpgme.h')
|
|
239
|
+
have_const('GPGME_ENCRYPT_ADD_RECP', 'gpgme.h')
|
|
240
|
+
have_const('GPGME_ENCRYPT_CHG_RECP', 'gpgme.h')
|
|
218
241
|
|
|
219
242
|
create_makefile ('gpgme_n')
|
|
220
243
|
|