Rebuild PKCS#9 encoding after adding new attributes
This commit is contained in:
@@ -167,6 +167,9 @@ METHOD(pkcs9_t, add_attribute, void,
|
|||||||
this->attributes->insert_last(this->attributes,
|
this->attributes->insert_last(this->attributes,
|
||||||
attribute_create(oid, value));
|
attribute_create(oid, value));
|
||||||
chunk_free(&value);
|
chunk_free(&value);
|
||||||
|
|
||||||
|
/* rebuild encoding when adding attributes */
|
||||||
|
chunk_free(&this->encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(pkcs9_t, destroy, void,
|
METHOD(pkcs9_t, destroy, void,
|
||||||
|
|||||||
Reference in New Issue
Block a user