x509: Skip parsing of acert chargingIdentity, as we don't use it anyway
authorMartin Willi <martin@revosec.ch>
Tue, 4 Feb 2014 14:16:26 +0000 (15:16 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 31 Mar 2014 09:14:58 +0000 (11:14 +0200)
src/libstrongswan/plugins/x509/x509_ac.c

index ab89aba..b7da97d 100644 (file)
@@ -98,11 +98,6 @@ struct private_x509_ac_t {
        time_t notAfter;
 
        /**
        time_t notAfter;
 
        /**
-        * List of charging attributes
-        */
-       ietf_attributes_t *charging;
-
-       /**
         * List of groub attributes
         */
        ietf_attributes_t *groups;
         * List of groub attributes
         */
        ietf_attributes_t *groups;
@@ -416,9 +411,7 @@ static bool parse_certificate(private_x509_ac_t *this)
                                                DBG2(DBG_ASN, "  need to parse accessIdentity");
                                                break;
                                        case OID_CHARGING_IDENTITY:
                                                DBG2(DBG_ASN, "  need to parse accessIdentity");
                                                break;
                                        case OID_CHARGING_IDENTITY:
-                                               DBG2(DBG_ASN, "-- > --");
-                                               this->charging = ietf_attributes_create_from_encoding(object);
-                                               DBG2(DBG_ASN, "-- < --");
+                                               DBG2(DBG_ASN, "  need to parse chargingIdentity");
                                                break;
                                        case OID_GROUP:
                                                DBG2(DBG_ASN, "-- > --");
                                                break;
                                        case OID_GROUP:
                                                DBG2(DBG_ASN, "-- > --");
@@ -837,7 +830,6 @@ METHOD(certificate_t, destroy, void,
                DESTROY_IF(this->holderCert);
                DESTROY_IF(this->signerCert);
                DESTROY_IF(this->signerKey);
                DESTROY_IF(this->holderCert);
                DESTROY_IF(this->signerCert);
                DESTROY_IF(this->signerKey);
-               DESTROY_IF(this->charging);
                DESTROY_IF(this->groups);
                free(this->serialNumber.ptr);
                free(this->authKeyIdentifier.ptr);
                DESTROY_IF(this->groups);
                free(this->serialNumber.ptr);
                free(this->authKeyIdentifier.ptr);