projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Harmonise symhacks.h in this branch with lower versions.
[oweals/openssl.git]
/
crypto
/
ocsp
/
ocsp_cl.c
diff --git
a/crypto/ocsp/ocsp_cl.c
b/crypto/ocsp/ocsp_cl.c
index 9b3e6dd8ca2251189ccb70f52ac0f1f77aa0bf5d..9c14d9da273f9869d0b9fcbeb89e6b7e9630f3ce 100644
(file)
--- a/
crypto/ocsp/ocsp_cl.c
+++ b/
crypto/ocsp/ocsp_cl.c
@@
-101,6
+101,8
@@
int OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm)
{
GENERAL_NAME *gen;
gen = GENERAL_NAME_new();
{
GENERAL_NAME *gen;
gen = GENERAL_NAME_new();
+ if (gen == NULL)
+ return 0;
if (!X509_NAME_set(&gen->d.directoryName, nm))
{
GENERAL_NAME_free(gen);
if (!X509_NAME_set(&gen->d.directoryName, nm))
{
GENERAL_NAME_free(gen);
@@
-153,7
+155,6
@@
int OCSP_request_sign(OCSP_REQUEST *req,
goto err;
if (!(req->optionalSignature = sig = OCSP_SIGNATURE_new())) goto err;
goto err;
if (!(req->optionalSignature = sig = OCSP_SIGNATURE_new())) goto err;
- if (!dgst) dgst = EVP_sha1();
if (key)
{
if (!X509_check_private_key(signer, key))
if (key)
{
if (!X509_check_private_key(signer, key))