Rebuild PKCS#9 encoding after adding new attributes

This commit is contained in:
Martin Willi 2012-11-23 16:38:25 +01:00
parent 60c9b5da8d
commit 67ca44ccbd

View File

@ -167,6 +167,9 @@ METHOD(pkcs9_t, add_attribute, void,
this->attributes->insert_last(this->attributes,
attribute_create(oid, value));
chunk_free(&value);
/* rebuild encoding when adding attributes */
chunk_free(&this->encoding);
}
METHOD(pkcs9_t, destroy, void,