If not properly used (i.e. before sharing the object), this was not
thread-safe. So better remove it and force users to create immutable
objects.
}
}
-METHOD(pubkey_cert_t, set_subject, void,
- private_pubkey_cert_t *this, identification_t *subject)
-{
- DESTROY_IF(this->subject);
- this->subject = subject->clone(subject);
-}
-
/*
* see header file
*/
.get_ref = _get_ref,
.destroy = _destroy,
},
- .set_subject = _set_subject,
},
.ref = 1,
.key = key,
* Implements certificate_t.
*/
certificate_t interface;
-
- /**
- * Set the subject of the trusted public key.
- *
- * @param subject subject to be set
- */
- void (*set_subject)(pubkey_cert_t *this, identification_t *subject);
};
/**