diff options
| author | beck <> | 2014-04-17 13:37:50 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-17 13:37:50 +0000 |
| commit | bddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch) | |
| tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/ocsp/ocsp_ht.c | |
| parent | ecec66222d758996a4ff2671ca5026d9ede5ef76 (diff) | |
| download | openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.gz openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.bz2 openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.zip | |
Change library to use intrinsic memory allocation functions instead of
OPENSSL_foo wrappers. This changes:
OPENSSL_malloc->malloc
OPENSSL_free->free
OPENSSL_relloc->realloc
OPENSSL_freeFunc->free
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp_ht.c')
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_ht.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_ht.c b/src/lib/libcrypto/ocsp/ocsp_ht.c index af5fc16691..17b252d6a8 100644 --- a/src/lib/libcrypto/ocsp/ocsp_ht.c +++ b/src/lib/libcrypto/ocsp/ocsp_ht.c | |||
| @@ -114,8 +114,8 @@ void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx) | |||
| 114 | if (rctx->mem) | 114 | if (rctx->mem) |
| 115 | BIO_free(rctx->mem); | 115 | BIO_free(rctx->mem); |
| 116 | if (rctx->iobuf) | 116 | if (rctx->iobuf) |
| 117 | OPENSSL_free(rctx->iobuf); | 117 | free(rctx->iobuf); |
| 118 | OPENSSL_free(rctx); | 118 | free(rctx); |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req) | 121 | int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req) |
| @@ -157,7 +157,7 @@ OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, | |||
| 157 | static const char post_hdr[] = "POST %s HTTP/1.0\r\n"; | 157 | static const char post_hdr[] = "POST %s HTTP/1.0\r\n"; |
| 158 | 158 | ||
| 159 | OCSP_REQ_CTX *rctx; | 159 | OCSP_REQ_CTX *rctx; |
| 160 | rctx = OPENSSL_malloc(sizeof(OCSP_REQ_CTX)); | 160 | rctx = malloc(sizeof(OCSP_REQ_CTX)); |
| 161 | rctx->state = OHS_ERROR; | 161 | rctx->state = OHS_ERROR; |
| 162 | rctx->mem = BIO_new(BIO_s_mem()); | 162 | rctx->mem = BIO_new(BIO_s_mem()); |
| 163 | rctx->io = io; | 163 | rctx->io = io; |
| @@ -166,7 +166,7 @@ OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, | |||
| 166 | rctx->iobuflen = maxline; | 166 | rctx->iobuflen = maxline; |
| 167 | else | 167 | else |
| 168 | rctx->iobuflen = OCSP_MAX_LINE_LEN; | 168 | rctx->iobuflen = OCSP_MAX_LINE_LEN; |
| 169 | rctx->iobuf = OPENSSL_malloc(rctx->iobuflen); | 169 | rctx->iobuf = malloc(rctx->iobuflen); |
| 170 | if (!rctx->iobuf) | 170 | if (!rctx->iobuf) |
| 171 | return 0; | 171 | return 0; |
| 172 | if (!path) | 172 | if (!path) |
