Ejemplo n.º 1
0
 internal RopInput(RopBind own, InputCallBack inputCB)
 {
     this.own     = new WeakReference <RopBind>(own);
     this.lib     = own.getLib();
     this.iid     = null;
     this.inputCB = inputCB;
 }
Ejemplo n.º 2
0
 internal RopOutput(RopBind own, OutputCallBack outputCB)
 {
     this.own      = new WeakReference <RopBind>(own);
     this.lib      = own.getLib();
     this.oid      = null;
     this.outputCB = outputCB;
 }
Ejemplo n.º 3
0
        public static void Main(string[] args)
        {
            // A trivial test
            try {
                throw new RopError(0);
            } catch (RopError) {
                Console.WriteLine("Starting:");
            }
            RopBind rop = null;

            try {
                rop = new RopBind();
                Console.WriteLine(rop.version_string_full());
                RopSession ses = rop.create_session("GPG", "GPG");
                Console.WriteLine("Session: " + ses.ToString());
                Console.WriteLine("Done.");
            } catch (RopError ex) {
                Console.WriteLine(ex);
            } finally {
                if (rop != null)
                {
                    rop.Close();
                }
            }
        }
Ejemplo n.º 4
0
 internal RopData(RopBind own, RopHandle hnd, long dataLen)
 {
     this.lib     = own.getLib();
     this.hnd     = hnd;
     this.dataLen = dataLen;
     this.sdata   = null;
     this.bdata   = null;
 }
Ejemplo n.º 5
0
 internal RopIdIterator(RopBind own, RopHandle iiid)
 {
     if (iiid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.lib  = own.getLib();
     this.iiid = iiid;
 }
Ejemplo n.º 6
0
 public RopSignSignature(RopBind own, RopHandle sgid)
 {
     if (sgid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.lib  = own.getLib();
     this.sgid = sgid;
 }
Ejemplo n.º 7
0
 internal RopSymEnc(RopBind own, RopHandle seid)
 {
     if (seid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.own  = new WeakReference <RopBind>(own);
     this.lib  = own.getLib();
     this.seid = seid;
 }
Ejemplo n.º 8
0
 internal RopRecipient(RopBind own, RopHandle rid)
 {
     if (rid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.own = new WeakReference <RopBind>(own);
     this.lib = own.getLib();
     this.rid = rid;
 }
Ejemplo n.º 9
0
 internal RopOpEncrypt(RopBind own, RopHandle opid)
 {
     if (opid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.own  = new WeakReference <RopBind>(own);
     this.lib  = own.getLib();
     this.opid = opid;
 }
Ejemplo n.º 10
0
 public RopVeriSignature(RopBind own, RopHandle sgid)
 {
     if (sgid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.own  = new WeakReference <RopBind>(own);
     this.lib  = own.getLib();
     this.sgid = sgid;
 }
Ejemplo n.º 11
0
 internal RopInput(RopBind own, RopHandle iid)
 {
     if (iid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.own     = new WeakReference <RopBind>(own);
     this.lib     = own.getLib();
     this.iid     = iid;
     this.inputCB = null;
 }
Ejemplo n.º 12
0
 internal RopSession(RopBind own, RopHandle sid)
 {
     if (sid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.own          = new WeakReference <RopBind>(own);
     this.lib          = own.getLib();
     this.sid          = sid;
     this.passProvider = null;
     this.keyProvider  = null;
 }
Ejemplo n.º 13
0
 internal RopUidHandle(RopBind own, RopHandle huid)
 {
     this.own  = new WeakReference <RopBind>(own);
     this.lib  = own.getLib();
     this.huid = huid;
 }