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