Add support for OpenPGP on Windows
This commit is contained in:
parent
e2fd821bb4
commit
281a84a14c
|
@ -176,6 +176,9 @@ private static uint8[] get_uint8_from_data(Data data) {
|
||||||
|
|
||||||
private static void initialize() {
|
private static void initialize() {
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
|
#if _WIN32
|
||||||
|
set_global_flag("w32-inst-dir", "C://Program Files (x86)//GnuPG//bin");
|
||||||
|
#endif
|
||||||
check_version();
|
check_version();
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,9 @@ namespace GPG {
|
||||||
[CCode (cname = "gpgme_check_version")]
|
[CCode (cname = "gpgme_check_version")]
|
||||||
public unowned string check_version(string? required_version = null);
|
public unowned string check_version(string? required_version = null);
|
||||||
|
|
||||||
|
[CCode (cname = "gpgme_set_global_flag")]
|
||||||
|
public int set_global_flag(string name, string value);
|
||||||
|
|
||||||
[Compact]
|
[Compact]
|
||||||
[CCode (cname = "struct _gpgme_key", ref_function = "gpgme_key_ref_vapi", unref_function = "gpgme_key_unref_vapi", free_function = "gpgme_key_release")]
|
[CCode (cname = "struct _gpgme_key", ref_function = "gpgme_key_ref_vapi", unref_function = "gpgme_key_unref_vapi", free_function = "gpgme_key_release")]
|
||||||
public class Key {
|
public class Key {
|
||||||
|
|
Loading…
Reference in a new issue