updated x509/CRL/AC API to align with public key, authKeyIdentifier is a chunk
authorMartin Willi <martin@strongswan.org>
Mon, 24 Aug 2009 12:10:26 +0000 (14:10 +0200)
committerMartin Willi <martin@strongswan.org>
Wed, 26 Aug 2009 09:23:52 +0000 (11:23 +0200)
src/libstrongswan/credentials/certificates/ac.h
src/libstrongswan/credentials/certificates/crl.h
src/libstrongswan/credentials/certificates/x509.h

index fb99b47..e617d56 100644 (file)
@@ -55,21 +55,21 @@ struct ac_t {
         * @return                      chunk pointing to serialNumber
         */
        chunk_t (*get_holderSerial)(ac_t *this);
-
+       
        /**
         * Get the issuer of the holder certificate.
         *
         * @return                      holderIssuer as identification_t*
         */
        identification_t* (*get_holderIssuer)(ac_t *this);
-
+       
        /**
         * Get the thauthorityKeyIdentifier.
         *
-        * @return                      authKeyIdentifier as identification_t*
+        * @return                      authKeyIdentifier as chunk_t, to internal data
         */
-       identification_t* (*get_authKeyIdentifier)(ac_t *this);
-
+       chunk_t (*get_authKeyIdentifier)(ac_t *this);
+       
        /**
         * @brief Checks if two attribute certificates belong to the same holder
         *
index 3fef0d7..44390c5 100644 (file)
@@ -67,9 +67,9 @@ struct crl_t {
        /**
         * Get the the authorityKeyIdentifier.
         *
-        * @return                      authKeyIdentifier as identification_t*
+        * @return                      authKeyIdentifier chunk, point to internal data
         */
-       identification_t* (*get_authKeyIdentifier)(crl_t *this);
+       chunk_t (*get_authKeyIdentifier)(crl_t *this);
        
        /**
         * Create an enumerator over all revoked certificates.
index eedab78..0e63d35 100644 (file)
@@ -76,9 +76,9 @@ struct x509_t {
        /**
         * Get the the authorityKeyIdentifier.
         *
-        * @return                      authKeyIdentifier as identification_t*
+        * @return                      authKeyIdentifier as chunk_t, internal data
         */
-       identification_t* (*get_authKeyIdentifier)(x509_t *this);
+       chunk_t (*get_authKeyIdentifier)(x509_t *this);
        
        /**
         * Create an enumerator over all subjectAltNames.