summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_pci.c
diff options
context:
space:
mode:
authorbeck <>2014-04-17 13:37:50 +0000
committerbeck <>2014-04-17 13:37:50 +0000
commitbddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch)
tree7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/x509v3/v3_pci.c
parentecec66222d758996a4ff2671ca5026d9ede5ef76 (diff)
downloadopenbsd-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/x509v3/v3_pci.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_pci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_pci.c b/src/lib/libcrypto/x509v3/v3_pci.c
index 0dcfa004fe..9cef94258c 100644
--- a/src/lib/libcrypto/x509v3/v3_pci.c
+++ b/src/lib/libcrypto/x509v3/v3_pci.c
@@ -135,7 +135,7 @@ static int process_pci_value(CONF_VALUE *val,
135 goto err; 135 goto err;
136 } 136 }
137 137
138 tmp_data = OPENSSL_realloc((*policy)->data, 138 tmp_data = realloc((*policy)->data,
139 (*policy)->length + val_len + 1); 139 (*policy)->length + val_len + 1);
140 if (tmp_data) 140 if (tmp_data)
141 { 141 {
@@ -147,7 +147,7 @@ static int process_pci_value(CONF_VALUE *val,
147 } 147 }
148 else 148 else
149 { 149 {
150 OPENSSL_free(tmp_data2); 150 free(tmp_data2);
151 /* realloc failure implies the original data space is b0rked too! */ 151 /* realloc failure implies the original data space is b0rked too! */
152 (*policy)->data = NULL; 152 (*policy)->data = NULL;
153 (*policy)->length = 0; 153 (*policy)->length = 0;
@@ -155,7 +155,7 @@ static int process_pci_value(CONF_VALUE *val,
155 X509V3_conf_err(val); 155 X509V3_conf_err(val);
156 goto err; 156 goto err;
157 } 157 }
158 OPENSSL_free(tmp_data2); 158 free(tmp_data2);
159 } 159 }
160 else if (strncmp(val->value, "file:", 5) == 0) 160 else if (strncmp(val->value, "file:", 5) == 0)
161 { 161 {
@@ -173,7 +173,7 @@ static int process_pci_value(CONF_VALUE *val,
173 { 173 {
174 if (!n) continue; 174 if (!n) continue;
175 175
176 tmp_data = OPENSSL_realloc((*policy)->data, 176 tmp_data = realloc((*policy)->data,
177 (*policy)->length + n + 1); 177 (*policy)->length + n + 1);
178 178
179 if (!tmp_data) 179 if (!tmp_data)
@@ -197,7 +197,7 @@ static int process_pci_value(CONF_VALUE *val,
197 else if (strncmp(val->value, "text:", 5) == 0) 197 else if (strncmp(val->value, "text:", 5) == 0)
198 { 198 {
199 val_len = strlen(val->value + 5); 199 val_len = strlen(val->value + 5);
200 tmp_data = OPENSSL_realloc((*policy)->data, 200 tmp_data = realloc((*policy)->data,
201 (*policy)->length + val_len + 1); 201 (*policy)->length + val_len + 1);
202 if (tmp_data) 202 if (tmp_data)
203 { 203 {