hx509: Add hx509_enomem()

This commit is contained in:
Nicolas Williams
2020-08-16 16:58:51 -05:00
parent 473e5be741
commit af9bb46a78

View File

@@ -119,6 +119,20 @@ hx509_set_error_string(hx509_context context, int flags, int code,
va_end(ap);
}
/**
* Sets ENOMEM as the error on a hx509 context.
*
* @param context A hx509 context.
*
* @ingroup hx509_error
*/
HX509_LIB_FUNCTION int HX509_LIB_CALL
hx509_enomem(hx509_context context)
{
return heim_enomem(context->hcontext);
}
/**
* Get an error string from context associated with error_code.
*