internal EngineInfo(GpgMeProtocol protocol, string filename, string homeDir, string version, string reqVersion) { Protocol = protocol; Filename = filename; HomeDir = homeDir; Version = version; ReqVersion = reqVersion; }
/// <summary> /// Ensures the given protocol is available. If it isn't, an exception is thrown. /// </summary> /// <param name="protocol">The <see cref="GpgMeProtocol"/> to check for.</param> /// <exception cref="GpgMeException">Thrown if the given protocol is not available, badly configured, or otherwise unusable.</exception> public static void EnsureProtocol(GpgMeProtocol protocol) { ErrorHandler.Check(GpgMeWrapper.gpgme_engine_check_version(protocol)); }
public static extern void gpgme_ctx_set_engine_info(IntPtr ctx, GpgMeProtocol proto, string file_name, string home_dir);
public static extern GpgMeError gpgme_engine_check_version(GpgMeProtocol protocol);
public static extern string gpgme_get_protocol_name(GpgMeProtocol protocol);
public static extern GpgMeError gpgme_set_protocol(IntPtr ctx, GpgMeProtocol protocol);