projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add default operations to EC_METHOD
[oweals/openssl.git]
/
crypto
/
ocsp
/
ocsp_ht.c
diff --git
a/crypto/ocsp/ocsp_ht.c
b/crypto/ocsp/ocsp_ht.c
index 2c92ee7554590edf9d516e807679dfaa1506b84a..f69d4df3b7dd2eec36b283dd8219a07cb5c8a0cc 100644
(file)
--- a/
crypto/ocsp/ocsp_ht.c
+++ b/
crypto/ocsp/ocsp_ht.c
@@
-1,4
+1,3
@@
-/* ocsp_ht.c */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
* 2006.
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
* 2006.
@@
-115,7
+114,7
@@
OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline)
{
OCSP_REQ_CTX *rctx = OPENSSL_zalloc(sizeof(*rctx));
{
OCSP_REQ_CTX *rctx = OPENSSL_zalloc(sizeof(*rctx));
- if (
!rctx
)
+ if (
rctx == NULL
)
return NULL;
rctx->state = OHS_ERROR;
rctx->max_resp_len = OCSP_MAX_RESP_LENGTH;
return NULL;
rctx->state = OHS_ERROR;
rctx->max_resp_len = OCSP_MAX_RESP_LENGTH;
@@
-126,7
+125,7
@@
OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline)
else
rctx->iobuflen = OCSP_MAX_LINE_LEN;
rctx->iobuf = OPENSSL_malloc(rctx->iobuflen);
else
rctx->iobuflen = OCSP_MAX_LINE_LEN;
rctx->iobuf = OPENSSL_malloc(rctx->iobuflen);
- if (
!rctx->iobuf || !rctx->mem
) {
+ if (
rctx->iobuf == NULL || rctx->mem == NULL
) {
OCSP_REQ_CTX_free(rctx);
return NULL;
}
OCSP_REQ_CTX_free(rctx);
return NULL;
}
@@
-232,7
+231,7
@@
OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
OCSP_REQ_CTX *rctx = NULL;
rctx = OCSP_REQ_CTX_new(io, maxline);
OCSP_REQ_CTX *rctx = NULL;
rctx = OCSP_REQ_CTX_new(io, maxline);
- if (
!rctx
)
+ if (
rctx == NULL
)
return NULL;
if (!OCSP_REQ_CTX_http(rctx, "POST", path))
return NULL;
if (!OCSP_REQ_CTX_http(rctx, "POST", path))
@@
-533,7
+532,7
@@
OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
ctx = OCSP_sendreq_new(b, path, req, -1);
ctx = OCSP_sendreq_new(b, path, req, -1);
- if (
!ctx
)
+ if (
ctx == NULL
)
return NULL;
do {
return NULL;
do {