diff options
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp_lib.c')
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_lib.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_lib.c b/src/lib/libcrypto/ocsp/ocsp_lib.c index 056bd27665..3f6007f40a 100644 --- a/src/lib/libcrypto/ocsp/ocsp_lib.c +++ b/src/lib/libcrypto/ocsp/ocsp_lib.c | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | * are met: | 15 | * are met: |
| 16 | * | 16 | * |
| 17 | * 1. Redistributions of source code must retain the above copyright | 17 | * 1. Redistributions of source code must retain the above copyright |
| 18 | * notice, this list of conditions and the following disclaimer. | 18 | * notice, this list of conditions and the following disclaimer. |
| 19 | * | 19 | * |
| 20 | * 2. Redistributions in binary form must reproduce the above copyright | 20 | * 2. Redistributions in binary form must reproduce the above copyright |
| 21 | * notice, this list of conditions and the following disclaimer in | 21 | * notice, this list of conditions and the following disclaimer in |
| @@ -115,11 +115,11 @@ OCSP_cert_id_new(const EVP_MD *dgst, X509_NAME *issuerName, | |||
| 115 | OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_UNKNOWN_NID); | 115 | OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_UNKNOWN_NID); |
| 116 | goto err; | 116 | goto err; |
| 117 | } | 117 | } |
| 118 | if (!(alg->algorithm=OBJ_nid2obj(nid))) | 118 | if (!(alg->algorithm = OBJ_nid2obj(nid))) |
| 119 | goto err; | 119 | goto err; |
| 120 | if ((alg->parameter=ASN1_TYPE_new()) == NULL) | 120 | if ((alg->parameter = ASN1_TYPE_new()) == NULL) |
| 121 | goto err; | 121 | goto err; |
| 122 | alg->parameter->type=V_ASN1_NULL; | 122 | alg->parameter->type = V_ASN1_NULL; |
| 123 | 123 | ||
| 124 | if (!X509_NAME_digest(issuerName, dgst, md, &i)) | 124 | if (!X509_NAME_digest(issuerName, dgst, md, &i)) |
| 125 | goto digerr; | 125 | goto digerr; |
| @@ -139,6 +139,7 @@ OCSP_cert_id_new(const EVP_MD *dgst, X509_NAME *issuerName, | |||
| 139 | goto err; | 139 | goto err; |
| 140 | } | 140 | } |
| 141 | return cid; | 141 | return cid; |
| 142 | |||
| 142 | digerr: | 143 | digerr: |
| 143 | OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_DIGEST_ERR); | 144 | OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_DIGEST_ERR); |
| 144 | err: | 145 | err: |
| @@ -216,7 +217,7 @@ OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pssl) | |||
| 216 | 217 | ||
| 217 | /* Check for trailing part of path */ | 218 | /* Check for trailing part of path */ |
| 218 | p = strchr(p, '/'); | 219 | p = strchr(p, '/'); |
| 219 | if (!p) | 220 | if (!p) |
| 220 | *ppath = BUF_strdup("/"); | 221 | *ppath = BUF_strdup("/"); |
| 221 | else { | 222 | else { |
| 222 | *ppath = BUF_strdup(p); | 223 | *ppath = BUF_strdup(p); |
