Beispiel #1
0
        private void UpdateFromMem(IntPtr sigPtr)
        {
            var newsig = new _gpgme_new_signature();

            Marshal.PtrToStructure(sigPtr, newsig);

            Type            = (SignatureMode)newsig.type;
            PubkeyAlgorithm = (KeyAlgorithm)newsig.pubkey_algo;
            HashAlgorithm   = (HashAlgorithm)newsig.hash_algo;
            Fingerprint     = Gpgme.PtrToStringUTF8(newsig.fpr);
            SignatureClass  = newsig.sig_class;
            _timestamp      = (long)newsig.timestamp;

            if (!newsig.next.Equals(IntPtr.Zero))
            {
                Next = new NewSignature(newsig.next);
            }
        }
        private void UpdateFromMem(IntPtr sigPtr)
        {
            _gpgme_new_signature newsig = new _gpgme_new_signature();

            Marshal.PtrToStructure(sigPtr, newsig);

            type        = (SignatureMode)newsig.type;
            pubkey_algo = (KeyAlgorithm)newsig.pubkey_algo;
            hash_algo   = (HashAlgorithm)newsig.hash_algo;
            fpr         = Gpgme.PtrToStringUTF8(newsig.fpr);
            sig_class   = (long)newsig.sig_class;
            timestamp   = (long)newsig.timestamp;

            if (!newsig.next.Equals(IntPtr.Zero))
            {
                next = new NewSignature(newsig.next);
            }
        }