return this;
}
-METHOD(pkcs9_t, build_encoding, void,
- private_pkcs9_t *this)
+/**
+ * Build encoding of the attribute list
+ */
+static void build_encoding(private_pkcs9_t *this)
{
enumerator_t *enumerator;
attribute_t *attribute;
METHOD(pkcs9_t, get_encoding, chunk_t,
private_pkcs9_t *this)
{
- if (this->encoding.ptr == NULL)
+ if (!this->encoding.len)
{
build_encoding(this);
}
INIT(this,
.public = {
- .build_encoding = _build_encoding,
.get_encoding = _get_encoding,
.get_attribute = _get_attribute,
.set_attribute = _set_attribute,