예제 #1
0
파일: RopIO.cs 프로젝트: joke325/Dotrop
 internal RopInput(RopBind own, InputCallBack inputCB)
 {
     this.own     = new WeakReference <RopBind>(own);
     this.lib     = own.getLib();
     this.iid     = null;
     this.inputCB = inputCB;
 }
예제 #2
0
파일: RopIO.cs 프로젝트: joke325/Dotrop
 internal RopOutput(RopBind own, OutputCallBack outputCB)
 {
     this.own      = new WeakReference <RopBind>(own);
     this.lib      = own.getLib();
     this.oid      = null;
     this.outputCB = outputCB;
 }
예제 #3
0
파일: RopBind.cs 프로젝트: joke325/Dotrop
        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();
                }
            }
        }
예제 #4
0
파일: RopData.cs 프로젝트: joke325/Dotrop
 internal RopData(RopBind own, RopHandle hnd, long dataLen)
 {
     this.lib     = own.getLib();
     this.hnd     = hnd;
     this.dataLen = dataLen;
     this.sdata   = null;
     this.bdata   = null;
 }
예제 #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;
 }
예제 #6
0
파일: RopSign.cs 프로젝트: joke325/Dotrop
 public RopSignSignature(RopBind own, RopHandle sgid)
 {
     if (sgid.IsNull())
     {
         throw new RopError(RopBind.ROP_ERROR_NULL_HANDLE);
     }
     this.lib  = own.getLib();
     this.sgid = sgid;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #10
0
파일: RopSign.cs 프로젝트: joke325/Dotrop
 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;
 }
예제 #11
0
파일: RopIO.cs 프로젝트: joke325/Dotrop
 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;
 }
예제 #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;
 }
예제 #13
0
 internal RopUidHandle(RopBind own, RopHandle huid)
 {
     this.own  = new WeakReference <RopBind>(own);
     this.lib  = own.getLib();
     this.huid = huid;
 }