(_hx509_request_to_pkcs10): PKCS10 needs to have a subject
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19702 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -156,6 +156,12 @@ _hx509_request_to_pkcs10(hx509_context context,
|
||||
int ret;
|
||||
size_t size;
|
||||
|
||||
if (req->name == NULL) {
|
||||
hx509_set_error_string(context, 0, EINVAL,
|
||||
"PKCS10 needs to have a subject");
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
memset(&r, 0, sizeof(r));
|
||||
memset(request, 0, sizeof(*request));
|
||||
|
||||
|
Reference in New Issue
Block a user