[seahorse] pkcs11: Fix mismatches of length types



commit e9a8634d8848da590a97f2f23de7bae07657c7b9
Author: Daiki Ueno <dueno src gnome org>
Date:   Wed Jul 29 12:21:05 2015 +0900

    pkcs11: Fix mismatches of length types
    
    The get_der_data vfunc of GcrCertificate reports the length of data in
    size_t, while the Vala generated code uses int and causes ASN.1 parsing
    error if sizeof(size_t) != sizeof(int).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752990

 pkcs11/pkcs11-certificate.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/pkcs11-certificate.vala b/pkcs11/pkcs11-certificate.vala
index 93a5891..03e626c 100644
--- a/pkcs11/pkcs11-certificate.vala
+++ b/pkcs11/pkcs11-certificate.vala
@@ -197,6 +197,7 @@ public class Certificate : Gck.Object, Gcr.Comparable, Gcr.Certificate,
                this.notify_property("attributes");
        }
 
+       [CCode (array_length_type = "gsize")]
        public unowned uint8[] get_der_data() {
                if (this._der == null)
                        return EMPTY;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]