Example #1
0
 internal EngineInfo(GpgMeProtocol protocol, string filename, string homeDir, string version, string reqVersion)
 {
     Protocol   = protocol;
     Filename   = filename;
     HomeDir    = homeDir;
     Version    = version;
     ReqVersion = reqVersion;
 }
Example #2
0
 /// <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));
 }
Example #3
0
 public static extern void gpgme_ctx_set_engine_info(IntPtr ctx, GpgMeProtocol proto, string file_name, string home_dir);
Example #4
0
 public static extern GpgMeError gpgme_engine_check_version(GpgMeProtocol protocol);
Example #5
0
 public static extern string gpgme_get_protocol_name(GpgMeProtocol protocol);
Example #6
0
 public static extern GpgMeError gpgme_set_protocol(IntPtr ctx, GpgMeProtocol protocol);