summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ocsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/ocsp.c')
-rw-r--r--src/usr.bin/openssl/ocsp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c
index ad657b8a66..60a53f0ca5 100644
--- a/src/usr.bin/openssl/ocsp.c
+++ b/src/usr.bin/openssl/ocsp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp.c,v 1.13 2017/11/29 23:47:18 guenther Exp $ */ 1/* $OpenBSD: ocsp.c,v 1.14 2018/02/07 05:47:55 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -732,7 +732,7 @@ done_resp:
732 732
733 ret = 0; 733 ret = 0;
734 734
735end: 735 end:
736 ERR_print_errors(bio_err); 736 ERR_print_errors(bio_err);
737 X509_free(signer); 737 X509_free(signer);
738 X509_STORE_free(store); 738 X509_STORE_free(store);
@@ -783,7 +783,7 @@ add_ocsp_cert(OCSP_REQUEST ** req, X509 * cert, const EVP_MD * cert_id_md, X509
783 goto err; 783 goto err;
784 return 1; 784 return 1;
785 785
786err: 786 err:
787 BIO_printf(bio_err, "Error Creating OCSP request\n"); 787 BIO_printf(bio_err, "Error Creating OCSP request\n");
788 return 0; 788 return 0;
789} 789}
@@ -819,7 +819,7 @@ add_ocsp_serial(OCSP_REQUEST ** req, char *serial, const EVP_MD * cert_id_md, X5
819 goto err; 819 goto err;
820 return 1; 820 return 1;
821 821
822err: 822 err:
823 BIO_printf(bio_err, "Error Creating OCSP request\n"); 823 BIO_printf(bio_err, "Error Creating OCSP request\n");
824 return 0; 824 return 0;
825} 825}
@@ -977,7 +977,7 @@ make_ocsp_response(OCSP_RESPONSE ** resp, OCSP_REQUEST * req, CA_DB * db,
977 977
978 *resp = OCSP_response_create(OCSP_RESPONSE_STATUS_SUCCESSFUL, bs); 978 *resp = OCSP_response_create(OCSP_RESPONSE_STATUS_SUCCESSFUL, bs);
979 979
980end: 980 end:
981 ASN1_TIME_free(thisupd); 981 ASN1_TIME_free(thisupd);
982 ASN1_TIME_free(nextupd); 982 ASN1_TIME_free(nextupd);
983 OCSP_CERTID_free(ca_id); 983 OCSP_CERTID_free(ca_id);
@@ -1030,7 +1030,7 @@ init_responder(char *port)
1030 } 1030 }
1031 return acbio; 1031 return acbio;
1032 1032
1033err: 1033 err:
1034 BIO_free_all(acbio); 1034 BIO_free_all(acbio);
1035 BIO_free(bufbio); 1035 BIO_free(bufbio);
1036 return NULL; 1036 return NULL;
@@ -1173,7 +1173,7 @@ query_responder(BIO * err, BIO * cbio, char *path,
1173 break; 1173 break;
1174 } 1174 }
1175 } 1175 }
1176err: 1176 err:
1177 if (ctx) 1177 if (ctx)
1178 OCSP_REQ_CTX_free(ctx); 1178 OCSP_REQ_CTX_free(ctx);
1179 1179
@@ -1210,7 +1210,7 @@ process_responder(BIO * err, OCSP_REQUEST * req,
1210 resp = query_responder(err, cbio, path, headers, req, req_timeout); 1210 resp = query_responder(err, cbio, path, headers, req, req_timeout);
1211 if (!resp) 1211 if (!resp)
1212 BIO_printf(bio_err, "Error querying OCSP responder\n"); 1212 BIO_printf(bio_err, "Error querying OCSP responder\n");
1213end: 1213 end:
1214 if (cbio) 1214 if (cbio)
1215 BIO_free_all(cbio); 1215 BIO_free_all(cbio);
1216 if (ctx) 1216 if (ctx)