Lines Matching refs:context
49 hx509_request_init(hx509_context context, hx509_request *req)
72 hx509_request_set_name(hx509_context context,
79 int ret = hx509_name_copy(context, name, &req->name);
87 hx509_request_get_name(hx509_context context,
92 hx509_set_error_string(context, 0, EINVAL, "Request have no name");
95 return hx509_name_copy(context, req->name, name);
99 hx509_request_set_SubjectPublicKeyInfo(hx509_context context,
108 hx509_request_get_SubjectPublicKeyInfo(hx509_context context,
116 _hx509_request_add_eku(hx509_context context,
138 _hx509_request_add_dns_name(hx509_context context,
153 _hx509_request_add_email(hx509_context context,
170 _hx509_request_to_pkcs10(hx509_context context,
181 hx509_set_error_string(context, 0, EINVAL,
213 ret = _hx509_create_signature(context,
241 _hx509_request_parse(hx509_context context,
253 hx509_set_error_string(context, 0, HX509_UNSUPPORTED_OPERATION,
263 hx509_set_error_string(context, 0, ret, "Failed to map file %s", path);
270 hx509_set_error_string(context, 0, ret, "Failed to decode %s", path);
274 ret = hx509_request_init(context, req);
282 ret = hx509_request_set_SubjectPublicKeyInfo(context, *req,
296 ret = hx509_request_set_name(context, *req, subject);
309 _hx509_request_print(hx509_context context, hx509_request req, FILE *f)
317 hx509_set_error_string(context, 0, ret, "Failed to print name");