/* tlsv1_set_cert - Set certificate @cred: TLSv1 credentials from tlsv1_cred_alloc() @cert: File or reference name for X.509 certificate in PEM or DER format @cert_blob: cert as inlined data or NULL if not used @cert_blob_len: cert_blob length Returns: 0 on success, -1 on failure  */
int tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len)
/* tlsv1_set_cert - Set certificate @cred: TLSv1 credentials from tlsv1_cred_alloc() @cert: File or reference name for X.509 certificate in PEM or DER format @cert_blob: cert as inlined data or NULL if not used @cert_blob_len: cert_blob length Returns: 0 on success, -1 on failure  */
int tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len)
{
	return tlsv1_set_cert_chain(&cred->cert, cert,
				    cert_blob, cert_blob_len);
}