diff options
| author | tb <> | 2025-05-09 12:50:59 +0000 |
|---|---|---|
| committer | tb <> | 2025-05-09 12:50:59 +0000 |
| commit | 408ef0f57afffc0126e90e96873f2e37d00ea680 (patch) | |
| tree | 9dbe767dbc30e3ba7fe3a65196bbaad16f0dcbb1 /src | |
| parent | 2a0f3895acaf23f878605da0faa4df7e3d62bbe3 (diff) | |
| download | openbsd-408ef0f57afffc0126e90e96873f2e37d00ea680.tar.gz openbsd-408ef0f57afffc0126e90e96873f2e37d00ea680.tar.bz2 openbsd-408ef0f57afffc0126e90e96873f2e37d00ea680.zip | |
openssl ocsp: switch from X509V3error() to perror()
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/openssl/ocsp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c index d35940a7ae..01d28aa1f0 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.26 2024/08/31 18:39:25 tb Exp $ */ | 1 | /* $OpenBSD: ocsp.c,v 1.27 2025/05/09 12:50:59 tb 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 | */ |
| @@ -194,18 +194,18 @@ x509v3_add_value(const char *name, const char *value, | |||
| 194 | int ret = 0; | 194 | int ret = 0; |
| 195 | 195 | ||
| 196 | if ((conf_value = calloc(1, sizeof(*conf_value))) == NULL) { | 196 | if ((conf_value = calloc(1, sizeof(*conf_value))) == NULL) { |
| 197 | X509V3error(ERR_R_MALLOC_FAILURE); | 197 | perror("calloc"); |
| 198 | goto err; | 198 | goto err; |
| 199 | } | 199 | } |
| 200 | if (name != NULL) { | 200 | if (name != NULL) { |
| 201 | if ((conf_value->name = strdup(name)) == NULL) { | 201 | if ((conf_value->name = strdup(name)) == NULL) { |
| 202 | X509V3error(ERR_R_MALLOC_FAILURE); | 202 | perror("strdup"); |
| 203 | goto err; | 203 | goto err; |
| 204 | } | 204 | } |
| 205 | } | 205 | } |
| 206 | if (value != NULL) { | 206 | if (value != NULL) { |
| 207 | if ((conf_value->value = strdup(value)) == NULL) { | 207 | if ((conf_value->value = strdup(value)) == NULL) { |
| 208 | X509V3error(ERR_R_MALLOC_FAILURE); | 208 | perror("strdup"); |
| 209 | goto err; | 209 | goto err; |
| 210 | } | 210 | } |
| 211 | } | 211 | } |
| @@ -213,12 +213,12 @@ x509v3_add_value(const char *name, const char *value, | |||
| 213 | if ((extlist = *out_extlist) == NULL) | 213 | if ((extlist = *out_extlist) == NULL) |
| 214 | extlist = sk_CONF_VALUE_new_null(); | 214 | extlist = sk_CONF_VALUE_new_null(); |
| 215 | if (extlist == NULL) { | 215 | if (extlist == NULL) { |
| 216 | X509V3error(ERR_R_MALLOC_FAILURE); | 216 | perror("sk_CONF_VALUE_new_null"); |
| 217 | goto err; | 217 | goto err; |
| 218 | } | 218 | } |
| 219 | 219 | ||
| 220 | if (!sk_CONF_VALUE_push(extlist, conf_value)) { | 220 | if (!sk_CONF_VALUE_push(extlist, conf_value)) { |
| 221 | X509V3error(ERR_R_MALLOC_FAILURE); | 221 | perror("sk_CONF_VALUE_push"); |
| 222 | goto err; | 222 | goto err; |
| 223 | } | 223 | } |
| 224 | conf_value = NULL; | 224 | conf_value = NULL; |
