From a5e3153a36524c1689573cd04adc2125f879412f Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 24 Aug 2009 14:10:26 +0200 Subject: [PATCH] updated x509/CRL/AC API to align with public key, authKeyIdentifier is a chunk --- src/libstrongswan/credentials/certificates/ac.h | 10 +++++----- src/libstrongswan/credentials/certificates/crl.h | 4 ++-- src/libstrongswan/credentials/certificates/x509.h | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/libstrongswan/credentials/certificates/ac.h b/src/libstrongswan/credentials/certificates/ac.h index fb99b4756..e617d56b0 100644 --- a/src/libstrongswan/credentials/certificates/ac.h +++ b/src/libstrongswan/credentials/certificates/ac.h @@ -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 * diff --git a/src/libstrongswan/credentials/certificates/crl.h b/src/libstrongswan/credentials/certificates/crl.h index 3fef0d710..44390c524 100644 --- a/src/libstrongswan/credentials/certificates/crl.h +++ b/src/libstrongswan/credentials/certificates/crl.h @@ -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. diff --git a/src/libstrongswan/credentials/certificates/x509.h b/src/libstrongswan/credentials/certificates/x509.h index eedab78f7..0e63d357f 100644 --- a/src/libstrongswan/credentials/certificates/x509.h +++ b/src/libstrongswan/credentials/certificates/x509.h @@ -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.