Commit adf87b2d authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix typo in OCSP ASN1 module, this caused

invalid format in OCSP request signatures.

Add spaces to OCSP HTTP header.

Change X509_NAME_set() there's no reason
why it should return an error if the
destination points to NULL... though it
should if the destination is NULL.
parent 40753f76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -245,7 +245,7 @@ int X509_NAME_set(X509_NAME **xn, X509_NAME *name)
	{
	X509_NAME *in;

	if (*xn == NULL) return(0);
	if (!xn || !name) return(0);

	if (*xn != name)
		{
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@
ASN1_SEQUENCE(OCSP_SIGNATURE) = {
	ASN1_SIMPLE(OCSP_SIGNATURE, signatureAlgorithm, X509_ALGOR),
	ASN1_SIMPLE(OCSP_SIGNATURE, signature, ASN1_BIT_STRING),
	ASN1_SEQUENCE_OF(OCSP_SIGNATURE, certs, X509)
	ASN1_EXP_SEQUENCE_OF(OCSP_SIGNATURE, certs, X509, 0)
} ASN1_SEQUENCE_END(OCSP_SIGNATURE);

IMPLEMENT_ASN1_FUNCTIONS(OCSP_SIGNATURE)
+2 −2
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, char *path, OCSP_REQUEST *req)
	static char req_txt[] =
"POST %s HTTP/1.0\r\n\
Content-Type: application/ocsp-request\r\n\
Content-length: %d\r\n\r\n";
Content-Length: %d\r\n\r\n";

	len = i2d_OCSP_REQUEST(req, NULL);
	if(BIO_printf(b, req_txt, path, len) < 0) {