Rebuild PKCS#9 encoding after adding new attributes

This commit is contained in:
Martin Willi
2012-12-19 10:32:07 +01:00
parent 60c9b5da8d
commit 67ca44ccbd
+3
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,