diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c index 5da066949236ea104c6a38fe8dd05c8375b4a460..60b067611c9a69235115b8f01475daa0f1a5255b 100644 --- a/crypto/asn1/x_name.c +++ b/crypto/asn1/x_name.c @@ -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) { diff --git a/crypto/ocsp/ocsp_asn.c b/crypto/ocsp/ocsp_asn.c index cfe3118dc7f16f3622f098603417cb625615ff79..0616b0ebe5ae8e0765da0421ed0eb153dc3ad494 100644 --- a/crypto/ocsp/ocsp_asn.c +++ b/crypto/ocsp/ocsp_asn.c @@ -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) diff --git a/crypto/ocsp/ocsp_ht.c b/crypto/ocsp/ocsp_ht.c index 58774b3f4667ccebd25c1b475973d388b7e3fd73..a0fd825dbf3c9406479aedda87b236d0d3e6d1e0 100644 --- a/crypto/ocsp/ocsp_ht.c +++ b/crypto/ocsp/ocsp_ht.c @@ -80,8 +80,8 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, char *path, OCSP_REQUEST *req) int len, retcode; 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-Type: application/ocsp-request\r\n\ +Content-Length: %d\r\n\r\n"; len = i2d_OCSP_REQUEST(req, NULL); if(BIO_printf(b, req_txt, path, len) < 0) {