refactored credential builder
allow enumeration of matching builders try a second builder if the first one fails builder clones resources internally on demand caller frees added resources on failure and success stricter handling of non-supported build parts
This commit is contained in:
@@ -229,7 +229,7 @@ static certificate_t *get_cert(private_cert_payload_t *this)
|
||||
return NULL;
|
||||
}
|
||||
return lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509,
|
||||
BUILD_BLOB_ASN1_DER, chunk_clone(this->data),
|
||||
BUILD_BLOB_ASN1_DER, this->data,
|
||||
BUILD_END);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user